Difference between revisions of "MeshRenderer (Component)"

From Neos Wiki
Jump to navigation Jump to search
m
(Marked this version for translation)
Line 6: Line 6:
 
|Name=MeshRenderer
 
|Name=MeshRenderer
 
}}
 
}}
== Intoduction ==
+
== Intoduction == <!--T:1-->
 
The '''MeshRenderer''' component is used for rendering static 3D meshes in the world, and applying materials to that mesh.
 
The '''MeshRenderer''' component is used for rendering static 3D meshes in the world, and applying materials to that mesh.
 
== Usage ==
 
== Usage ==
Line 31: Line 31:
 
| Will merge all submeshes that use the same material
 
| Will merge all submeshes that use the same material
 
|}
 
|}
== Examples ==
+
== Examples == <!--T:2-->
 
== Related Components ==
 
== Related Components ==
 
</translate>
 
</translate>
 
[[Category:Components{{#translation:}}|MeshRenderer (Component){{#translation:}}]]
 
[[Category:Components{{#translation:}}|MeshRenderer (Component){{#translation:}}]]
 
[[Category:Components:Rendering{{#translation:}}|MeshRenderer (Component){{#translation:}}]]
 
[[Category:Components:Rendering{{#translation:}}|MeshRenderer (Component){{#translation:}}]]

Revision as of 06:57, 13 February 2023

Other languages:
English • ‎日本語

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


MeshRenderer component as seen in the Scene Inspector

Intoduction

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

Usage

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 Material A list of materials to be applied to the mesh
MaterialPropertyBlocks MaterialPropertyBlock
ShadowCastMode ShadowCastMode How this object will cast shadows onto the world, or if it only draws a shadow.
SortingOrder Int

Behavior

Special Functions

Custom UI Elements
Name Description
Split into separate meshes by material Will split this mesh into additional submeshes, each having only one material
Merge submeshes with same material Will merge all submeshes that use the same material

Examples

Related Components