Method CreateFromScene
CreateFromScene(String, RideVector3, RideQuaternion)
Create a runtime object based off of an object from the scene
Declaration
RideID CreateFromScene(string sceneObjectName, RideVector3 position, RideQuaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | sceneObjectName | The name of the object in the scene to duplicate |
RideVector3 | position | The world position |
RideQuaternion | rotation | The world rotation |
Returns
Type | Description |
---|---|
RideID | The id of the object. RideID.Null if creation failed |