UnityEngine.GameObject.GetComponentInChildren C# (CSharp) Méthode

GetComponentInChildren() public méthode

public GetComponentInChildren ( Type type ) : Component
type System.Type
Résultat Component
		public Component GetComponentInChildren(Type type){}
		public T GetComponentInChildren(){}

Same methods

GameObject::GetComponentInChildren ( ) : T

Usage Example

 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