Component:MeshRenderer

From Resonite Wiki
Revision as of 23:02, 24 December 2024 by 989onan (talk | contribs) (Reformat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
MeshRenderer component as seen in the Scene Inspector

The MeshRenderer component is used for rendering static 3D meshes in the world, and applying materials to that mesh.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Mesh Mesh The mesh to be rendered. Can be a StaticMesh or a Procedural Mesh
Materials list of Material A list of materials to be applied to the mesh
MaterialPropertyBlocks list of MaterialPropertyBlock A list of material property blocks to apply to the materials on this mesh. Usually used for performance reasons where using multiple similar materials would take more resources.
ShadowCastMode ShadowCastMode How this object will cast shadows onto the world, or if it only draws a shadow.
MotionVectorMode MotionVectorMode See Motion vector mode.
SortingOrder Int Whether to render this before or after other renderers with geometry in the same location.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
SplitSubmeshes() Action Will split this mesh into additional submeshes, each having only one material.
MergeByMaterial() Action Will merge all submeshes that use the same material.

Usage

Examples

See Also