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