Skip to content

Commit

Permalink
Update Odin attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvinas01 committed Oct 3, 2023
1 parent ce9d390 commit 8fb97cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/ScriptableSceneCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public sealed class ScriptableSceneCollection : ScriptableObject, ISerialization
private string prettyName;

#if ODIN_INSPECTOR
[Sirenix.OdinInspector.FoldoutGroup("Features", Expanded = true)]
[Sirenix.OdinInspector.FoldoutGroup("General", Expanded = true)]
#else
[Header("Features")]
[Header("General")]
#endif
[Tooltip("Optional transition used to transition into and out of this collection")]
[SerializeField]
Expand All @@ -49,7 +49,7 @@ public sealed class ScriptableSceneCollection : ScriptableObject, ISerialization
#if ODIN_INSPECTOR
[Sirenix.OdinInspector.PropertySpace]
[Sirenix.OdinInspector.ListDrawerSettings(DefaultExpandedState = true)]
[Sirenix.OdinInspector.FoldoutGroup("Features", Expanded = true)]
[Sirenix.OdinInspector.FoldoutGroup("General", Expanded = true)]
#endif
[Tooltip("List of Scriptable Scenes to be loaded with this collection")]
[SerializeField]
Expand Down
6 changes: 6 additions & 0 deletions Runtime/ScriptableSceneController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private enum CollectionLoadMode
#if ODIN_INSPECTOR
[Sirenix.OdinInspector.FoldoutGroup("Debug", Expanded = true)]
[Sirenix.OdinInspector.ShowInInspector]
[Sirenix.OdinInspector.ReadOnly]
#endif
private ScriptableSceneCollection loadedCollection;

Expand All @@ -91,6 +92,11 @@ private enum CollectionLoadMode
/// <summary>
/// Currently loading collection.
/// </summary>
#if ODIN_INSPECTOR
[Sirenix.OdinInspector.FoldoutGroup("Debug", Expanded = true)]
[Sirenix.OdinInspector.ShowInInspector]
[Sirenix.OdinInspector.ReadOnly]
#endif
public ScriptableSceneCollection LoadingCollection { get; private set; }

private void Awake()
Expand Down

0 comments on commit 8fb97cf

Please sign in to comment.