m ProbablePrime moved page MeshRenderer (Component) to Component:MeshRenderer: Creating component Namespace |
Automated: update Fields, Categories |
||
Line 10: | Line 10: | ||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Mesh|Mesh| The mesh to be rendered. Can be a [[StaticMesh (Component)|StaticMesh]] or a [[:Category:Components:Assets:Procedural Meshes|Procedural Mesh]] | |Mesh|{{RootFieldType|AssetRef`1|[[Type:Mesh|Mesh]]}}|TypeAdv0=true| The mesh to be rendered. Can be a [[StaticMesh (Component)|StaticMesh]] or a [[:Category:Components:Assets:Procedural Meshes|Procedural Mesh]] | ||
|Materials|Material| A list of materials to be applied to the mesh | |Materials|{{RootFieldType|SyncAssetList`1|[[Type:Material|Material]]}}|TypeAdv1=true| A list of materials to be applied to the mesh | ||
|MaterialPropertyBlocks|MaterialPropertyBlock| | |MaterialPropertyBlocks|{{RootFieldType|SyncAssetList`1|[[Type:MaterialPropertyBlock|MaterialPropertyBlock]]}}|TypeAdv2=true| | ||
|ShadowCastMode|ShadowCastMode| How this object will cast shadows onto the world, or if it <i>only</i> draws a shadow. | |ShadowCastMode|ShadowCastMode| How this object will cast shadows onto the world, or if it <i>only</i> draws a shadow. | ||
|SortingOrder|Int| | |MotionVectorMode|MotionVectorMode| | ||
|SortingOrder|Int| | |||
}} | }} | ||
Line 37: | Line 38: | ||
== Related Components == <!--T:5--> | == Related Components == <!--T:5--> | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}| | [[Category:Components{{#translation:}}|Mesh Renderer]] | ||
[[Category:Components:Rendering{{#translation:}}| | [[Category:Components:Rendering{{#translation:}}|Mesh Renderer]] | ||
[[Category:Renderer]] | [[Category:Renderer]] |
Revision as of 21:04, 3 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image ![](/images/thumb/d/d1/MeshRendererComponent.png/510px-MeshRendererComponent.png)
MeshRenderer component as seen in the Scene Inspector
![](/images/thumb/d/d1/MeshRendererComponent.png/510px-MeshRendererComponent.png)
Intoduction
The MeshRenderer component is used for rendering static 3D meshes in the world, and applying materials to that mesh.
Usage
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. Some components stop their functionality when this field is disabled, but some don't. |
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 | |
ShadowCastMode
|
ShadowCastMode | How this object will cast shadows onto the world, or if it only draws a shadow. |
MotionVectorMode
|
MotionVectorMode | |
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 |