HideInEditMode Attribute
Attribute to hide a field when outside of play mode:
using UnityEngine;
using EditorAttributes;
public class AttributesExample : MonoBehaviour
{
[SerializeField, HideInEditMode] private int field;
}
Useful when you want to show certain fields only when playing.