Method InstantiateResource
InstantiateResource(String, RideVector3, RideQuaternion)
Instantiates a gameobject from the asset library
Declaration
public GameObject InstantiateResource(string resourcePath, RideVector3 position, RideQuaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourcePath | The path to the asset |
RideVector3 | position | The world position of the instantiaged object |
RideQuaternion | rotation | The world rotation of the instantiated object |
Returns
Type | Description |
---|---|
GameObject | The gameobject. TSSid.NULL if failed |