コード例 #1
0
 void OnDrag()
 {
     if (RootCanvas.InteractDrag(mouseButton, GlobalMousePosition, mouseDeltaPos))
     {
         return;
     }
     if (mouseButton == EMouseButton.middle || mouseButton == EMouseButton.right)
     {
         Rect rect = GraphCanvas.LocalRect;
         rect.position        += mouseDeltaPos / (GraphCanvas.GlobalScale > 0 ? GraphCanvas.GlobalScale : 1);
         GraphCanvas.LocalRect = rect;
     }
 }