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

API: scripting
Project: Inno.Editor.Panel.Inspector
Scope: Editor

public InnoEditor.Inspection.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.