Add: HierarchyObject.Mode.None

This commit is contained in:
AnnulusGames 2024-02-16 21:20:29 +09:00
parent 821e3d2046
commit 867862d0a5
2 changed files with 4 additions and 3 deletions

View File

@ -45,7 +45,7 @@ namespace Alchemy.Editor
static HierarchyObjectMode GetHierarchyObjectMode(HierarchyObject obj)
{
return obj.HierarchyObjectMode != HierarchyObject.Mode.UseSettings
? (HierarchyObjectMode)obj.HierarchyObjectMode
? (HierarchyObjectMode)(obj.HierarchyObjectMode - 1)
: AlchemySettings.GetOrCreateSettings().HierarchyObjectMode;
}

View File

@ -9,8 +9,9 @@ namespace Alchemy.Hierarchy
public enum Mode
{
UseSettings = 0,
RemoveInPlayMode = 1,
RemoveInBuild = 2
None = 1,
RemoveInPlayMode = 2,
RemoveInBuild = 3
}
[SerializeField] Mode hierarchyObjectMode = Mode.UseSettings;