Ejemplo n.º 1
0
        void OnEnable()
        {
            _settings = LoadSettings();

            _editorStateLableStyle.fontSize         = 24;
            _editorStateLableStyle.alignment        = TextAnchor.MiddleCenter;
            _editorStateLableStyle.padding          = new RectOffset(10, 10, 10, 10);
            _editorStateLableStyle.normal.textColor = Color.gray;
        }
Ejemplo n.º 2
0
        void OnGUI()
        {
            if (_settings == null)
            {
                _settings = LoadSettings();
                if (_settings == null)
                {
                    Debug.LogWarning("_setting are not loaded yet");
                    return;
                }
            }

            DrawToolbar();
            DrawWindowContent();
        }