using UnityEngine; using System; namespace SerializableCallback { /// Add to fields of your class extending SerializableCallbackBase<T,...> to limit which types can be assigned to it. public class TargetConstraintAttribute : PropertyAttribute { /// /// https://github.com/Siccity/SerializableCallback /// public Type targetType; /// Add to fields of your class extending SerializableCallbackBase<T,...> to limit which types can be assigned to it. /// public TargetConstraintAttribute(Type targetType) { this.targetType = targetType; } } }