コード例 #1
0
 public static void MenuEvents(Event @event)
 {
     if (@event.button == 0)
     {
         _drawing = true;
         PointBuffer.AddLast(new Point(@event.mousePosition, _strokeId));
         PDollarEditorWindow.Repaint();
     }
 }
コード例 #2
0
        public static void Load()
        {
            var path = EditorUtility.OpenFilePanel("Load Gesture", Application.dataPath, "asset");

            path = TextUtil.GetRelativePath(path);
            var gesture = AssetDatabase.LoadAssetAtPath <Gesture>(path);

            DumpPointsToBuffer(gesture.Points);
            PDollarEditorWindow.Repaint();
        }
コード例 #3
0
 public static void Hide()
 {
     _visible = false;
     PDollarEditorWindow.Repaint();
 }
コード例 #4
0
 public static void Show(Vector2 position)
 {
     Position = position;
     _visible = true;
     PDollarEditorWindow.Repaint();
 }