Пример #1
0
 private void OnDisable()
 {
     EditorPrefsExt.SetEnum(_sourceTypeKey, _sourceType);
     EditorPrefs.SetInt(_materialIdKey, _materialId);
     EditorPrefs.SetString(_propertyNameKey, _propertyName);
     EditorPrefsExt.SetAsset(_customTextureKey, _customTexture);
     EditorPrefs.SetInt(_filterModeKey, _filterMode);
     EditorPrefs.SetBool(_repeatingKey, _repeating);
     EditorPrefsExt.SetColor(_colorKey, _color);
     EditorPrefsExt.SetEnum(_channelFlagKey, _channelFlag);
 }
Пример #2
0
 private void OnDisable()
 {
     EditorPrefs.SetBool(_drawGridKey, _drawGrid);
     EditorPrefs.SetInt(_lineThicknessKey, _lineThickness);
     EditorPrefsExt.SetColor(_lineColorKey, _lineColor);
     EditorPrefs.SetBool(_drawOutlineKey, _drawOutline);
     EditorPrefsExt.SetColor(_outlineColorKey, _outlineColor);
     EditorPrefs.SetBool(_drawVertexKey, _drawVertex);
     EditorPrefs.SetInt(_vertexSizeKey, _vertexSize);
     EditorPrefs.SetBool(_drawVertexOutlineKey, _drawVertexOutline);
     EditorPrefsExt.SetColor(_vertexOutlineColorKey, _vertexOutlineColor);
 }