Click or drag to resize

IGameAssetsInstantiateT Method (Int32, Vector3, Quaternion)

Attempts to instantiate an asset with the specified id as the generic type with the given position and rotation. The asset will be loaded before instantiation if necessary.

Namespace:  UMod
Assembly:  UMod-Interface (in UMod-Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
T Instantiate<T>(
	int assetID,
	Vector3 position,
	Quaternion rotation
)
where T : Object

Parameters

assetID
Type: SystemInt32
The id of the asset to instantiate
position
Type: Vector3
The position to give the object
rotation
Type: Quaternion
The rotation to give the object

Type Parameters

T
The generic type to return the asset as

Return Value

Type: T
An instantiated object as the specified genric type or null if the asset could not be instantiated
See Also