SetMeshData(Mesh, int, Renderer)
Sets the relevant graphics state fields according to data from the provided submesh and renderer.
阅读时间1 分钟最后更新于 1 个月前
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.