Method CreateFromResource
CreateFromResource(String)
Declaration
RideID CreateFromResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceName |
Returns
Type | Description |
---|---|
RideID |
CreateFromResource(String, RideVector3, RideQuaternion)
Create a runtime object based off of a resource object in the project
Declaration
RideID CreateFromResource(string resourceName, RideVector3 position, RideQuaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceName | The name of the resource object 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 |