ActiveToggles() 공개 메소드

Returns the toggles in this group that are active.

public ActiveToggles ( ) : IEnumerable
리턴 IEnumerable
 static public int ActiveToggles(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.ToggleGroup self = (UnityEngine.UI.ToggleGroup)checkSelf(l);
         var ret = self.ActiveToggles();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
예제 #2
0
    static int ActiveToggles(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UnityEngine.UI.ToggleGroup          obj = (UnityEngine.UI.ToggleGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.ToggleGroup");
        IEnumerable <UnityEngine.UI.Toggle> o   = obj.ActiveToggles();

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
예제 #3
0
 static public int ActiveToggles(IntPtr l)
 {
     try {
         UnityEngine.UI.ToggleGroup self = (UnityEngine.UI.ToggleGroup)checkSelf(l);
         var ret = self.ActiveToggles();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ActiveToggles(IntPtr l)
 {
     try{
         UnityEngine.UI.ToggleGroup          self = (UnityEngine.UI.ToggleGroup)checkSelf(l);
         IEnumerable <UnityEngine.UI.Toggle> ret  = self.ActiveToggles();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
예제 #5
0
 static int ActiveToggles(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.UI.ToggleGroup obj = (UnityEngine.UI.ToggleGroup)ToLua.CheckObject <UnityEngine.UI.ToggleGroup>(L, 1);
         System.Collections.Generic.IEnumerable <UnityEngine.UI.Toggle> o = obj.ActiveToggles();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int QPYX_ActiveToggles_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.UI.ToggleGroup QPYX_obj_YXQP = (UnityEngine.UI.ToggleGroup)ToLua.CheckObject <UnityEngine.UI.ToggleGroup>(L_YXQP, 1);
         System.Collections.Generic.IEnumerable <UnityEngine.UI.Toggle> QPYX_o_YXQP = QPYX_obj_YXQP.ActiveToggles();
         ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 public Toggle GetActive(ToggleGroup group)
 {
     return group.ActiveToggles ().FirstOrDefault ();
 }