IGameAssetsInstantiateT Method (String, Vector3, Quaternion) |
Attempts to instantiate an asset with the specified name or path 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)
SyntaxT Instantiate<T>(
string nameOrPath,
Vector3 position,
Quaternion rotation
)
where T : Object
Parameters
- nameOrPath
- Type: SystemString
The name or path 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:
TAn instantiated object as the specified generic type or null if the asset could not be instantiated
See Also