Answers for "GetComponentsInChildren as list"

1

GetComponentsInChildren to list

List<Collider> collidersToTurnOff = new List<Collider>(); 
 void Awake()
 {
 	GetComponentsInChildren(collidersToTurnOff); 
 }
Posted by: Guest on November-22-2020
1

GetComponent to list

List<Collider> collidersToTurnOff = new List<Collider>();
 void Awake()
 {
	 GetComponentsInChildren(collidersToTurnOff); 
 }
Posted by: Guest on November-22-2020

Browse Popular Code Answers by Language