Skip to content

Commit 8fb97cf

Browse files
committed
Update Odin attributes
1 parent ce9d390 commit 8fb97cf

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Runtime/ScriptableSceneCollection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public sealed class ScriptableSceneCollection : ScriptableObject, ISerialization
3838
private string prettyName;
3939

4040
#if ODIN_INSPECTOR
41-
[Sirenix.OdinInspector.FoldoutGroup("Features", Expanded = true)]
41+
[Sirenix.OdinInspector.FoldoutGroup("General", Expanded = true)]
4242
#else
43-
[Header("Features")]
43+
[Header("General")]
4444
#endif
4545
[Tooltip("Optional transition used to transition into and out of this collection")]
4646
[SerializeField]
@@ -49,7 +49,7 @@ public sealed class ScriptableSceneCollection : ScriptableObject, ISerialization
4949
#if ODIN_INSPECTOR
5050
[Sirenix.OdinInspector.PropertySpace]
5151
[Sirenix.OdinInspector.ListDrawerSettings(DefaultExpandedState = true)]
52-
[Sirenix.OdinInspector.FoldoutGroup("Features", Expanded = true)]
52+
[Sirenix.OdinInspector.FoldoutGroup("General", Expanded = true)]
5353
#endif
5454
[Tooltip("List of Scriptable Scenes to be loaded with this collection")]
5555
[SerializeField]

Runtime/ScriptableSceneController.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private enum CollectionLoadMode
6868
#if ODIN_INSPECTOR
6969
[Sirenix.OdinInspector.FoldoutGroup("Debug", Expanded = true)]
7070
[Sirenix.OdinInspector.ShowInInspector]
71+
[Sirenix.OdinInspector.ReadOnly]
7172
#endif
7273
private ScriptableSceneCollection loadedCollection;
7374

@@ -91,6 +92,11 @@ private enum CollectionLoadMode
9192
/// <summary>
9293
/// Currently loading collection.
9394
/// </summary>
95+
#if ODIN_INSPECTOR
96+
[Sirenix.OdinInspector.FoldoutGroup("Debug", Expanded = true)]
97+
[Sirenix.OdinInspector.ShowInInspector]
98+
[Sirenix.OdinInspector.ReadOnly]
99+
#endif
94100
public ScriptableSceneCollection LoadingCollection { get; private set; }
95101

96102
private void Awake()

0 commit comments

Comments
 (0)