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

16 lines
455 B
C#

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