Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

construct

This function is impure, it might potentially try to access anything in the world. If you are using it in the context of a script system, it might cause access errors.

Attempts to construct the given type, given an arbitrary map of values.

Arguments

NameTypeDocumentation
registrationScriptTypeRegistration | ScriptComponentRegistration | ScriptResourceRegistrationThe type to construct.
payloadHashMap<String, ScriptValue>The values to use to construct the type.

Returns

NameTypeDocumentation
referenceReflectReferenceThe constructed type.