FairyGUI.Container.GetChild C# (CSharp) Method

GetChild() public method

public GetChild ( string name ) : DisplayObject
name string
return DisplayObject
        public DisplayObject GetChild(string name)
        {
            int cnt = _children.Count;
            for (int i = 0; i < cnt; ++i)
            {
                if (_children[i].name == name)
                    return _children[i];
            }

            return null;
        }

Usage Example

Example #1
0
 static public int GetChild(IntPtr l)
 {
     try {
         FairyGUI.Container self = (FairyGUI.Container)checkSelf(l);
         System.String      a1;
         checkType(l, 2, out a1);
         var ret = self.GetChild(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Container::GetChild