UnityEngine.UI.ToggleGroup.ActiveToggles C# (CSharp) Method

ActiveToggles() public method

Returns the toggles in this group that are active.

public ActiveToggles ( ) : IEnumerable
return IEnumerable
        public IEnumerable<Toggle> ActiveToggles()
        {
            if (<>f__am$cache1 == null)
            {
                <>f__am$cache1 = new Func<Toggle, bool>(null, (IntPtr) <ActiveToggles>m__1);

Usage Example

 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
 }
All Usage Examples Of UnityEngine.UI.ToggleGroup::ActiveToggles