Tri-Inspector/Editor.Extras/Processors/HideInPlayModeProcessor.cs

16 lines
438 B
C#
Raw Normal View History

2022-01-07 10:40:32 -05:00
using TriInspector.Processors;
using TriInspector;
using UnityEngine;
[assembly: RegisterTriPropertyHideProcessor(typeof(HideInPlayModeProcessor))]
2022-01-07 10:40:32 -05:00
namespace TriInspector.Processors
{
public class HideInPlayModeProcessor : TriPropertyHideProcessor<HideInPlayModeAttribute>
{
public override bool IsHidden(TriProperty property)
{
2022-08-03 04:18:28 -04:00
return Application.isPlaying != Attribute.Inverse;
}
}
}