UnityEngine.UI.Selectable.FindSelectableOnUp C# (CSharp) Method

FindSelectableOnUp() public method

public FindSelectableOnUp ( ) : Selectable
return Selectable
        public virtual Selectable FindSelectableOnUp()
        {
            if (this.m_Navigation.mode == Navigation.Mode.Explicit)
            {
                return this.m_Navigation.selectOnUp;
            }
            if ((this.m_Navigation.mode & Navigation.Mode.Vertical) != Navigation.Mode.None)
            {
                return this.FindSelectable((Vector3) (base.transform.rotation * Vector3.up));
            }
            return null;
        }

Usage Example

 static public int FindSelectableOnUp(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.Selectable self = (UnityEngine.UI.Selectable)checkSelf(l);
         var ret = self.FindSelectableOnUp();
         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.Selectable::FindSelectableOnUp