WuhuIslandTesting/Library/PackageCache/com.stresslevelzero.marrow.sdk@1.2.0/Scripts/SLZ.Marrow/SLZ.Marrow.Utilities/TempSelectionBase.cs
2025-01-07 02:06:59 +01:00

25 lines
No EOL
585 B
C#

using UnityEngine;
namespace SLZ.Marrow.Utilities
{
[SelectionBase]
public class TempSelectionBase : MonoBehaviour
{
private static bool hideInInspector = true;
public void ApplyHideFlags()
{
if (hideInInspector)
hideFlags = HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild | HideFlags.HideInInspector;
else
hideFlags = HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild;
}
public void Destroy()
{
DestroyImmediate(this);
}
}
}