(2 intermediate revisions by one other user not shown)
Line 1:
Line 1:
<languages></languages>
<languages></languages>
<translate>
<translate>
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=MeshRendererComponent.png
|Image=MeshRendererComponent.png
Line 13:
Line 12:
|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]]
|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|{{RootFieldType|SyncAssetList`1|[[Type:Material|Material]]}}|TypeAdv1=true| 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|{{RootFieldType|SyncAssetList`1|[[Type:MaterialPropertyBlock|MaterialPropertyBlock]]}}|TypeAdv2=true| 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.
|MaterialPropertyBlocks|{{RootFieldType|SyncAssetList`1|[[Type:MaterialPropertyBlock|MaterialPropertyBlock]]}}|TypeAdv2=true| 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 <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.
|MotionVectorMode|MotionVectorMode| See Motion vector mode.
|MotionVectorMode|MotionVectorMode| See Motion vector mode.
|SortingOrder|Int| Whether to render this before or after other renderers with geometry in the same location.
|SortingOrder|Int| Whether to render this before or after other renderers with geometry in the same location.
}}
}}
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|SplitSubmeshes()|[[Type:Action|Action]]| Will split this mesh into additional submeshes, each having only one material.
|SplitSubmeshes:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Will split this mesh into additional submeshes, each having only one material.
|MergeByMaterial()|[[Type:Action|Action]]| Will merge all submeshes that use the same material.
|MergeByMaterial:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Will merge all submeshes that use the same material.
|SplitSubmeshes:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the split submeshes button is touched.
|MergeByMaterial:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the merge by material button is touched.
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.