Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 365 Bytes

File metadata and controls

14 lines (9 loc) · 365 Bytes

Unity-RestrictPropertyToInterface

Example:

[SerializeField, MustBeAssignableFrom(typeof(IDraggableObjectFactory))]
MonoBehaviour objectFactory;

[SerializeField, MustBeAssignableFrom(typeof(IDragSource))]
MonoBehaviour source;