UnityEngine.GameObject.GetComponentInChildren C# (CSharp) Метод

GetComponentInChildren() публичный Метод

public GetComponentInChildren ( ) : T
Результат T
		public T GetComponentInChildren(){}
		public Component[] GetComponents(Type type){}

Same methods

GameObject::GetComponentInChildren ( Type type ) : Component

Usage Example

Пример #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