Ejemplo n.º 1
0
    private void OnGUI()
    {
        if (!enabled)
        {
            DrawDisabled();
            return;
        }

        if (Application.isPlaying)
        {
            return;
        }

        HOTweenEditorGUI.GUIStart(this, src, undoManager, labelsWidth, fieldsWidth);

        GUILayout.Space(4);
        GUILayout.Label("HOTween v" + HOTween.VERSION + " | Editor v" + HOTweenEditor.VERSION, HOGUIStyle.miniLabel);
        winScroll = GUILayout.BeginScrollView(winScroll);
        GUILayout.Space(2);

        HOTweenEditorGUI.DrawPanel();

        GUILayout.EndScrollView();
        GUILayout.Space(20); // Needed to avoid bottom Unity bar to hide something (stack panels bug).

        HOTweenEditorGUI.GUIEnd();
    }
    override public void OnInspectorGUI()
    {
        HOTweenEditorGUI.GUIStart(this, src, undoManager, LabelsWidth, FieldsWidth);

        GUILayout.Space(4);
        GUILayout.Label("HOTween v" + HOTween.VERSION + " | Editor v" + HOTweenEditor.VERSION, HOGUIStyle.miniLabel);
        GUILayout.Space(2);

        HOTweenEditorGUI.DrawPanel();

        HOTweenEditorGUI.GUIEnd();
    }