Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a drop target that validates an asset type and assigns its persistent identity to a property.

API: engine
Project: Inno.Editor.Panel.Inspector

public Inno.Editor.Panel.Inspector.AssetReferenceDropTarget.AssetReferenceDropTarget(System.Type expectedType, System.Action<System.Guid> assign)

Parameter expectedType: The runtime asset type accepted by the property.

Parameter assign: The callback that writes an accepted persistent identity to the property.

Exception T:System.ArgumentNullException: Thrown when either argument is null.