UnityEngine.EventSystems.PointerInputModule.MouseButtonEventData.ReleasedThisFrame C# (CSharp) Method

ReleasedThisFrame() public method

Was the button released this frame?

public ReleasedThisFrame ( ) : bool
return bool
            public bool ReleasedThisFrame()
            {
                return ((this.buttonState == PointerEventData.FramePressState.Released) || (this.buttonState == PointerEventData.FramePressState.PressedAndReleased));
            }
        }

Usage Example

 static public int ReleasedThisFrame(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.EventSystems.PointerInputModule.MouseButtonEventData self = (UnityEngine.EventSystems.PointerInputModule.MouseButtonEventData)checkSelf(l);
         var ret = self.ReleasedThisFrame();
         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.EventSystems.PointerInputModule.MouseButtonEventData::ReleasedThisFrame
PointerInputModule.MouseButtonEventData