Tri-Inspector/Editor.Extras/Processors/HIdeInEditModeProcessor.cs
2022-08-03 11:38:52 +03:00

16 lines
438 B
C#

using TriInspector.Processors;
using TriInspector;
using UnityEngine;
[assembly: RegisterTriPropertyHideProcessor(typeof(HideInEditModeProcessor))]
namespace TriInspector.Processors
{
public class HideInEditModeProcessor : TriPropertyHideProcessor<HideInEditModeAttribute>
{
public override bool IsHidden(TriProperty property)
{
return Application.isPlaying == Attribute.Inverse;
}
}
}