using System; using UnityEngine; /// /// Attribute to specify the type of the field serialized by the SerializeReference attribute in the inspector. /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] public sealed class SubclassSelectorAttribute : PropertyAttribute { #if UNITY_2021_3_OR_NEWER // NOTE: Use managedReferenceValue getter to invoke instance method in SubclassSelectorDrawer. public bool UseToStringAsLabel { get; set; } #endif }