FairyGUI.GComponent.GetFirstChildInView C# (CSharp) Method

GetFirstChildInView() public method

public GetFirstChildInView ( ) : int
return int
        public virtual int GetFirstChildInView()
        {
            int cnt = _children.Count;
            for (int i = 0; i < cnt; ++i)
            {
                GObject child = _children[i];
                if (IsChildInView(child))
                    return i;
            }
            return -1;
        }

Usage Example

Esempio n. 1
0
 static public int GetFirstChildInView(IntPtr l)
 {
     try {
         FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l);
         var ret = self.GetFirstChildInView();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GComponent::GetFirstChildInView