From 867862d0a52510eee389205d9ded697463abb1ad Mon Sep 17 00:00:00 2001 From: AnnulusGames Date: Fri, 16 Feb 2024 21:20:29 +0900 Subject: [PATCH] Add: HierarchyObject.Mode.None --- .../Alchemy/Editor/Hierarchy/HierarchyObjectProcessor.cs | 2 +- Alchemy/Assets/Alchemy/Runtime/Hierarchy/HierarchyObject.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyObjectProcessor.cs b/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyObjectProcessor.cs index 9142416..31a0713 100644 --- a/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyObjectProcessor.cs +++ b/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyObjectProcessor.cs @@ -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; } diff --git a/Alchemy/Assets/Alchemy/Runtime/Hierarchy/HierarchyObject.cs b/Alchemy/Assets/Alchemy/Runtime/Hierarchy/HierarchyObject.cs index afb106c..93e956c 100644 --- a/Alchemy/Assets/Alchemy/Runtime/Hierarchy/HierarchyObject.cs +++ b/Alchemy/Assets/Alchemy/Runtime/Hierarchy/HierarchyObject.cs @@ -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;