Synced
AssetReferenceDropTarget.Constructor
Section titled “AssetReferenceDropTarget.Constructor”
- Creates a drop target that validates an asset type and assigns its persistent identity to a property.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Panel.Inspector
Declaration
Section titled “Declaration”public Inno.Editor.Panel.Inspector.AssetReferenceDropTarget.AssetReferenceDropTarget(System.Type expectedType, System.Action<System.Guid> assign)Parameters
Section titled “Parameters”Parameter expectedType: The runtime asset type accepted by the property.
Parameter assign: The callback that writes an accepted persistent identity to the property.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when either argument is null.