예제 #1
0
        public SceneEntityDrawer(string name) : base()
        {
            _buttonContainer = new ButtonContainer(name, true);
            _column1         = GUILayout.Width(128);

            _channel       = EditorPreferenceHandler.GetChannel(this, name);
            _enableEditing = _channel.GetBool("edit");
        }
예제 #2
0
        public SceneHistoryDrawer() : base()
        {
            _history = new SceneHistory();
            _history.Load();

            _channel       = EditorPreferenceHandler.GetChannel(this, CLASS_NAME);
            _restoreOnStop = _channel.GetBool(RESTORE_VAR);
            _textCol1      = GUILayout.Width(100);
        }
예제 #3
0
        /// <summary>
        /// Gets the default value.
        /// </summary>
        /// <returns><c>true</c>, if default value was gotten, <c>false</c> otherwise.</returns>
        /// <param name="name">Name.</param>
        private bool GetDefaultValue(string name)
        {
            if (_saveInPreferences)
            {
                return(_channel.GetBool(name));
            }

            return(true);
        }
        public SceneHistoryDrawer()
            : base()
        {
            _history = new SceneHistory ();
            _history.Load ();

            _channel = EditorPreferenceHandler.GetChannel (this, CLASS_NAME);
            _restoreOnStop = _channel.GetBool (RESTORE_VAR);
            _textCol1 = GUILayout.Width (100);
        }