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

16 lines
455 B
C#

using TriInspector.Processors;
using TriInspector;
using UnityEngine;
[assembly: RegisterTriPropertyDisableProcessor(typeof(DisableInPlayModeProcessor))]
namespace TriInspector.Processors
{
public class DisableInPlayModeProcessor : TriPropertyDisableProcessor<DisableInPlayModeAttribute>
{
public override bool IsDisabled(TriProperty property)
{
return Application.isPlaying != Attribute.Inverse;
}
}
}