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: scripting
Project: Inno.Editor.Panel.Inspector
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Inspection.EngineObjectReferenceDropTarget.EngineObjectReferenceDropTarget(System.Type expectedType, System.Action<InnoEngine.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.