Method InstantiateResource
InstantiateResource(String, RideVector3, RideQuaternion)
Instantiates a gameobject from the asset library
Declaration
RideID 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 |
---|---|
RideID | The gameobject. RideID.NULL if failed |