Method SetVertices
SetVertices(RideID, RideVector3[])
Sets the vertex positions of the Mesh, using a part of the input array. This method behaves as if you called SetVertices with an array that is a slice of the whole array, starting at start index and being of a given length.The resulting Mesh has length amount of vertices.
Declaration
void SetVertices(RideID mesh, RideVector3[] inVertices)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
RideVector3[] | inVertices | Per-vertex positions. |
SetVertices(RideID, RideVector3[], Int32, Int32)
Sets the vertex positions of the Mesh, using a part of the input array. This method behaves as if you called SetVertices with an array that is a slice of the whole array, starting at start index and being of a given length.The resulting Mesh has length amount of vertices.
Declaration
void SetVertices(RideID mesh, RideVector3[] inVertices, int start, int length)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
RideVector3[] | inVertices | Per-vertex positions. |
System.Int32 | start | Index of the first element to take from the input array. |
System.Int32 | length | Number of elements to take from the input array. |
SetVertices(RideID, List<RideVector3>)
Sets the vertex positions of the Mesh, using a part of the input array. This method behaves as if you called SetVertices with an array that is a slice of the whole array, starting at start index and being of a given length.The resulting Mesh has length amount of vertices.
Declaration
void SetVertices(RideID mesh, List<RideVector3> inVertices)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
List<RideVector3> | inVertices | Per-vertex positions. |
SetVertices(RideID, List<RideVector3>, Int32, Int32)
Sets the vertex positions of the Mesh, using a part of the input array. This method behaves as if you called SetVertices with an array that is a slice of the whole array, starting at start index and being of a given length.The resulting Mesh has length amount of vertices.
Declaration
void SetVertices(RideID mesh, List<RideVector3> inVertices, int start, int length)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
List<RideVector3> | inVertices | Per-vertex positions. |
System.Int32 | start | Index of the first element to take from the input array. |
System.Int32 | length | Number of elements to take from the input array. |