FairyGUI.Relations.Contains C# (CSharp) Method

Contains() public method

public Contains ( GObject target ) : bool
target GObject
return bool
        public bool Contains(GObject target)
        {
            int cnt = _items.Count;
            for (int i = 0; i < cnt; i++)
            {
                RelationItem item = _items[i];
                if (item.target == target)
                    return true;
            }
            return false;
        }

Usage Example

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