FairyGUI.GComponent.GetChildIndex C# (CSharp) Method

GetChildIndex() public method

Returns the index of a child within the container, or "-1" if it is not found.
public GetChildIndex ( GObject child ) : int
child GObject A child object
return int
        public int GetChildIndex(GObject child)
        {
            return _children.IndexOf(child);
        }

Usage Example

示例#1
0
 static public int GetChildIndex(IntPtr l)
 {
     try {
         FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l);
         FairyGUI.GObject    a1;
         checkType(l, 2, out a1);
         var ret = self.GetChildIndex(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GComponent::GetChildIndex