UnityEngine.Component.GetComponentInChildren C# (CSharp) Method

GetComponentInChildren() public method

public GetComponentInChildren ( Type t ) : Component
t Type
return Component
		public Component GetComponentInChildren(Type t){}
		public T GetComponentInChildren(){}

Same methods

Component::GetComponentInChildren ( ) : T

Usage Example

コード例 #1
0
 static public int GetComponentInChildren(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 3)
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.Type           a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             var ret = self.GetComponentInChildren(a1, a2);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.Type           a1;
             checkType(l, 2, out a1);
             var ret = self.GetComponentInChildren(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UnityEngine.Component::GetComponentInChildren