SetMeshData(Mesh, int, Renderer)
Sets the relevant graphics state fields according to data from the provided submesh and renderer.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public void SetMeshData(Mesh mesh, int submesh, Renderer renderer = null)
Parameters
Mesh to get the submesh data and GraphicsStateCollection.GraphicsState.topology from.
Submesh index within to get the GraphicsStateCollection.GraphicsState.vertexAttributes from.
meshRenderer to get the GraphicsStateCollection.GraphicsState.forceCullMode and GraphicsStateCollection.GraphicsState.negativeScale data from.