Ejemplo n.º 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");
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        public SceneHistoryDrawer()
            : base()
        {
            _history = new SceneHistory ();
            _history.Load ();

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