UnityEngine.GameObject.GetComponentInChildren C# (CSharp) Method

GetComponentInChildren() public method

public GetComponentInChildren ( Type type ) : Component
type System.Type
return Component
		public Component GetComponentInChildren(Type type){}
		public T GetComponentInChildren(){}

Same methods

GameObject::GetComponentInChildren ( ) : T

Usage Example

Esempio n. 1
0
 private void Awake()
 {
     titleControls = GameObject.Find ("Canvas");
     btnStart = titleControls.GetComponentInChildren<Button> ();
     btnStart.onClick.AddListener (() => btnOnclick ());
     inputField = titleControls.GetComponentInChildren<InputField> ();
 }
All Usage Examples Of UnityEngine.GameObject::GetComponentInChildren