using UnityEngine; using System; /// Add to fields of your class extending SerializableCallbackBase to limit which types can be assigned to it. public class TargetConstraintAttribute : PropertyAttribute { public Type targetType; /// Add to fields of your class extending SerializableCallbackBase to limit which types can be assigned to it. public TargetConstraintAttribute(Type targetType) { this.targetType = targetType; } }