20 lines
416 B
C#
20 lines
416 B
C#
using UnityEngine;
|
|
|
|
namespace EditorAttributes
|
|
{
|
|
/// <summary>
|
|
/// Attribute to hide a field when outside of play mode
|
|
/// </summary>
|
|
public class HideInEditModeAttribute : PropertyAttribute
|
|
{
|
|
/// <summary>
|
|
/// Attribute to hide a field when outside of play mode
|
|
/// </summary>
|
|
public HideInEditModeAttribute()
|
|
#if UNITY_2023_3_OR_NEWER
|
|
: base(true)
|
|
#endif
|
|
{ }
|
|
}
|
|
}
|