Click or drag to resize

ModGameAssetReferenceInstantiate Method (Vector3, Quaternion)

Attempts to instatiate the referenced game asset at the specified location. Note that a valid game asset must be selected from the editor.

Namespace:  UMod
Assembly:  UMod-Interface (in UMod-Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Object Instantiate(
	Vector3 position = null,
	Quaternion rotation = null
)

Parameters

position (Optional)
Type: Vector3
The position to instantiate the game asset instance at
rotation (Optional)
Type: Quaternion
The rotation to give to the created instance

Return Value

Type: Object
An object instantiated from the referenced game asset
Exceptions
ExceptionCondition
InvalidOperationExceptionA game asset reference has not been set (Game asset reference is set to '(None'))
MissingReferenceExceptionThe referenced game asset could not be resolved at runtime. This usually indicates a problem asset sharing configuration in the game project
See Also