MeshRenderer
Renders meshes inserted by the MeshFilter or TextMesh.
Read time 8 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Renderer
public class MeshRenderer : Renderer
Properties
Property | Description |
|---|---|
| additionalVertexStreams | Vertex attributes in this mesh will override or add attributes of the primary mesh in the MeshRenderer. |
| enlightenVertexStream | Vertex attributes that override the primary mesh when the MeshRenderer uses lightmaps in the Realtime Global Illumination system. |
| receiveGI | Determines how the object will receive global illumination. (Editor only) |
| scaleInLightmap | Specifies the relative lightmap resolution of this object. (Editor only) |
| stitchLightmapSeams | When enabled, seams in baked lightmaps will get smoothed. (Editor only) |
| subMeshStartIndex | Index of the first sub-mesh to use from the Mesh associated with this MeshRenderer (Read Only). |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |