Unity-RestrictPropertyToInterface Example: [SerializeField, MustBeAssignableFrom(typeof(IDraggableObjectFactory))] MonoBehaviour objectFactory; [SerializeField, MustBeAssignableFrom(typeof(IDragSource))] MonoBehaviour source;