mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Add: HierarchyObject.Mode.None
This commit is contained in:
parent
821e3d2046
commit
867862d0a5
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user