UnityEditor.AvatarPreview.HandleViewTool C# (CSharp) Méthode

HandleViewTool() protected méthode

protected HandleViewTool ( Event evt, EventType eventType, int id, Rect previewRect ) : void
evt UnityEngine.Event
eventType EventType
id int
previewRect UnityEngine.Rect
Résultat void
        protected void HandleViewTool(Event evt, EventType eventType, int id, Rect previewRect)
        {
            switch (eventType)
            {
                case EventType.MouseDown:
                    this.HandleMouseDown(evt, id, previewRect);
                    break;

                case EventType.MouseUp:
                    this.HandleMouseUp(evt, id);
                    break;

                case EventType.MouseDrag:
                    this.HandleMouseDrag(evt, id, previewRect);
                    break;

                case EventType.ScrollWheel:
                    this.DoAvatarPreviewZoom(evt, HandleUtility.niceMouseDeltaZoom * (!evt.shift ? 0.5f : 2f));
                    break;
            }
        }