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