public override void OnToolGUI(EditorWindow window)
        {
            PlaytimePainterSceneViewEditor.OnSceneGuiCombined();

            var p = PlaytimePainterSceneViewEditor.painter;

            if (p)
            {
                p.FeedEvents(Event.current);
            }
        }
Exemplo n.º 2
0
        public virtual void OnSceneGUI()
        {
#if !UNITY_2019_1_OR_NEWER
            var p = PlaytimePainterSceneViewEditor.painter;

            if (PlaytimePainter.IsCurrentTool && p && !UnityEditorInternal.InternalEditorUtility.GetIsInspectorExpanded(p))
            {
                PlaytimePainter.IsCurrentTool = false;
            }

            PlaytimePainterSceneViewEditor.OnSceneGuiCombined();
#endif
        }
        public override void OnToolGUI(EditorWindow window)
        {
            PlaytimePainterSceneViewEditor.OnSceneGuiCombined();

            var p = PlaytimePainterSceneViewEditor.painter;

            if (Event.current.type == EventType.ScrollWheel)
            {
                Debug.Log("Got scroll wheel event");
            }

            if (p)
            {
                p.FeedEvents(Event.current);
            }
        }