Method InstantiateSceneObject
InstantiateSceneObject(String, RideVector3, RideQuaternion)
Creates a new object that is based on an object in the runtime engine's scene
Declaration
RideID InstantiateSceneObject(string objectName, RideVector3 position, RideQuaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectName | The name of the object in the scene |
RideVector3 | position | World position of the newly created object |
RideQuaternion | rotation | World rotation of the newly created object |
Returns
Type | Description |
---|---|
RideID | A newly created gameobject |