CodePudding user response:
Well, I encapsulates thehttps://github.com/pinzeweifen/demo/blob/master/Unity/Editor/QEditorEvent.cs
Public static bool IsMouseDown ()
{
Return Event. Current. Type==EventType. MouseDown;
}
Public static bool IsMouseUp ()
{
Return Event. Current. Type==EventType. MouseUp;
}
Public static bool IsMouseMove ()
{
Return Event. Current. Type==EventType. MouseMove;
}