Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

EngineObjectReferenceDropTarget.Constructor

Section titled “EngineObjectReferenceDropTarget.Constructor”
  • Creates a drop target that validates and assigns an engine object to a serialized property.

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

public Inno.Editor.Panel.Inspector.EngineObjectReferenceDropTarget.EngineObjectReferenceDropTarget(System.Type expectedType, System.Action<Inno.Scene.EngineObject> assign)

Parameter expectedType: The engine object type accepted by the property.

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

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