FairyGUI.Transition.SetTarget C# (CSharp) Method

SetTarget() public method

public SetTarget ( string label, GObject newTarget ) : void
label string
newTarget GObject
return void
        public void SetTarget(string label, GObject newTarget)
        {
            int cnt = _items.Count;
            for (int i = 0; i < cnt; i++)
            {
                TransitionItem item = _items[i];
                if (item.label == label)
                    item.targetId = newTarget.id;
            }
        }

Usage Example

 static public int SetTarget(IntPtr l)
 {
     try {
         FairyGUI.Transition self = (FairyGUI.Transition)checkSelf(l);
         System.String       a1;
         checkType(l, 2, out a1);
         FairyGUI.GObject a2;
         checkType(l, 3, out a2);
         self.SetTarget(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Transition::SetTarget