Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruma-K committed Dec 22, 2023
1 parent 6c4ab12 commit 8274faf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Assets/Demo/PaletteStore.asset
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MonoBehaviour:
- _value: {r: 1, g: 1, b: 1, a: 1}
- _id: 4d4ede3c-e38a-45f4-8dd2-db084f5ac4a6
_name:
_value: Key Color 1
_value: Key Color/Key Color 1
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand All @@ -62,7 +62,7 @@ MonoBehaviour:
- _value: {r: 0.22352941, g: 0.1882353, b: 0.11372549, a: 1}
- _id: 5adfd18e-5fc5-4bc8-958a-4be3f6ec59b6
_name:
_value: Key Color 2
_value: Key Color/Key Color 2
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand All @@ -74,7 +74,7 @@ MonoBehaviour:
- _value: {r: 0.11372549, g: 0.18431373, b: 0.22352941, a: 1}
- _id: ace06488-c485-4f64-a359-64ab534f0454
_name:
_value: Button Contents
_value: Buttons/Contents/Button Contents
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand All @@ -86,7 +86,7 @@ MonoBehaviour:
- _value: {r: 1, g: 1, b: 1, a: 1}
- _id: 813656bc-9c9a-432d-a465-98344fd8b8b1
_name:
_value: Sub Button Background
_value: Buttons/Background/Sub Button Background
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand All @@ -98,7 +98,7 @@ MonoBehaviour:
- _value: {r: 0.23921569, g: 0.2509804, b: 0.3137255, a: 1}
- _id: f0b6741e-8aab-4614-901d-d938f23a1ed8
_name:
_value: Option Button Background
_value: Buttons/Background/Option Button Background
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand All @@ -110,7 +110,7 @@ MonoBehaviour:
- _value: {r: 0, g: 0, b: 0, a: 1}
- _id: 3de325d8-9dc3-4304-aef6-df868625e6f2
_name:
_value: Option Button Contents
_value: Buttons/Contents/Option Button Contents
_values:
_keys:
- ca0a054c-cd1f-415c-8946-eb80b0a46c86
Expand Down
7 changes: 2 additions & 5 deletions Assets/uPalette/Editor/Core/Shared/UPaletteProjectSettings.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.Serialization;
using uPalette.Runtime.Core;

namespace uPalette.Editor.Core.Shared
Expand All @@ -11,10 +10,8 @@ public sealed class UPaletteProjectSettings : ScriptableSingleton<UPaletteProjec
[SerializeField]
private NameEnumsFileGenerateMode _nameEnumsFileGenerateMode = NameEnumsFileGenerateMode.Manual;

[SerializeField] private bool _containsFolderNameToNameEnums = true;

[FormerlySerializedAs("_useFolderMode")] [SerializeField]
private bool useFolderViewInPaletteEditor = true;
[SerializeField] private bool _containsFolderNameToNameEnums;
[SerializeField] private bool useFolderViewInPaletteEditor = true;

[SerializeField] private DefaultAsset _nameEnumsFolder;
[SerializeField] private MonoScript _nameEnumsFile;
Expand Down
2 changes: 2 additions & 0 deletions ProjectSettings/uPaletteSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
_nameEnumsFileGenerateMode: 1
_containsFolderNameToNameEnums: 0
useFolderViewInPaletteEditor: 1
_nameEnumsFolder: {fileID: 102900000, guid: 4ad2c7723fdb568439ce3781da4f1c82, type: 3}
_nameEnumsFile: {fileID: 11500000, guid: 5035d55d29af14937b3d4ea95e4d0097, type: 3}
_automaticRuntimeDataLoading: 1

0 comments on commit 8274faf

Please sign in to comment.