Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MeshRenderer

Renders meshes inserted by the MeshFilter or TextMesh.
Read time 8 minutesLast updated 2 days ago

Definition

public class MeshRenderer : Renderer

Properties

Property

Description

additionalVertexStreamsVertex attributes in this mesh will override or add attributes of the primary mesh in the MeshRenderer.
enlightenVertexStreamVertex attributes that override the primary mesh when the MeshRenderer uses lightmaps in the Realtime Global Illumination system.
receiveGIDetermines how the object will receive global illumination. (Editor only)
scaleInLightmapSpecifies the relative lightmap resolution of this object. (Editor only)
stitchLightmapSeamsWhen enabled, seams in baked lightmaps will get smoothed. (Editor only)
subMeshStartIndexIndex of the first sub-mesh to use from the Mesh associated with this MeshRenderer (Read Only).

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.