mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
16 lines
455 B
C#
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;
|
|
}
|
|
}
|
|
} |