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