using TriInspector.Processors; using TriInspector; using UnityEngine; [assembly: RegisterTriPropertyHideProcessor(typeof(HideInPlayModeProcessor))] [assembly: RegisterTriPropertyHideProcessor(typeof(ShowInPlayModeProcessor))] namespace TriInspector.Processors { public class HideInPlayModeProcessor : TriPropertyHideProcessor { public override bool IsHidden(TriProperty property) { return Application.isPlaying; } } public class ShowInPlayModeProcessor : TriPropertyHideProcessor { public override bool IsHidden(TriProperty property) { return !Application.isPlaying; } } }