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

16 lines
455 B
C#
Raw Normal View History

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)
{
2022-08-03 04:18:28 -04:00
return Application.isPlaying == Attribute.Inverse;
}
}
}