mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
16 lines
438 B
C#
16 lines
438 B
C#
using TriInspector.Processors;
|
|
using TriInspector;
|
|
using UnityEngine;
|
|
|
|
[assembly: RegisterTriPropertyHideProcessor(typeof(HideInPlayModeProcessor))]
|
|
|
|
namespace TriInspector.Processors
|
|
{
|
|
public class HideInPlayModeProcessor : TriPropertyHideProcessor<HideInPlayModeAttribute>
|
|
{
|
|
public override bool IsHidden(TriProperty property)
|
|
{
|
|
return Application.isPlaying != Attribute.Inverse;
|
|
}
|
|
}
|
|
} |