private void OnDisable()
 {
     EditorPrefs.SetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_PATH_KEYS), path);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SPREAD_KEYS), spread);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SIZE_KEYS), size);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FILE_TYPE_KEYS), (int)fileType);
 }
 private void OnEnable()
 {
     path     = EditorPrefs.GetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_PATH_KEYS), "Assets/");
     spread   = EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SPREAD_KEYS), 30);
     size     = EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SIZE_KEYS), 512);
     fileType = (ImageFileType)EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FILE_TYPE_KEYS), 0);
 }
 private void OnDisable()
 {
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SRC_KEYS), (int)source);
     EditorPrefs.SetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_PATH_KEYS), path);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SIZE_KEYS), size);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FILE_TYPE_KEYS), (int)fileType);
     EditorPrefs.SetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_TEXTURE_TYPE_KEYS), (int)textureType);
 }
 private void OnEnable()
 {
     source      = (TextureExporter.Source)EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SRC_KEYS), 0);
     path        = EditorPrefs.GetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_PATH_KEYS), "Assets/");
     size        = EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_SIZE_KEYS), 512);
     fileType    = (ImageFileType)EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FILE_TYPE_KEYS), 0);
     textureType = (TextureExporter.TextureType)EditorPrefs.GetInt(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_TEXTURE_TYPE_KEYS), 0);
 }
예제 #5
0
 private void OnDisable()
 {
     EditorPrefs.SetFloat(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_DISTRIBUTION_THRESHOLD_KEYS), densityMultiplier);
     EditorPrefs.SetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FOLLOW_NORMALS_KEYS), followNormals);
     EditorPrefs.SetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEEP_OLD_OBJECTS_KEYS), keepOldObjects);
 }
예제 #6
0
 private void OnEnable()
 {
     densityMultiplier = EditorPrefs.GetFloat(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_DISTRIBUTION_THRESHOLD_KEYS), 0.5f);
     followNormals     = EditorPrefs.GetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_FOLLOW_NORMALS_KEYS), false);
     keepOldObjects    = EditorPrefs.GetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEEP_OLD_OBJECTS_KEYS), false);
 }
예제 #7
0
 private void OnDisable()
 {
     EditorPrefs.SetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS), path);
 }
예제 #8
0
 private void OnEnable()
 {
     path = EditorPrefs.GetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS), "Assets/");
 }