Skip to main content

Render

The Render Component enables an entity to render a primitive shape or a render asset.

Render Component

Properties

PropertyDescription
TypeThe type of the graphical object to be rendered. Can be: Asset, Box, Capsule, Cone, Cylinder, Plane, Sphere.
AssetAsset type only. The render asset to be rendered by this render component. Only a single render asset can be assigned to a render component.
Root BoneAsset type only (skinned meshes). The entity to be used as the root bone for any skinned meshes that are rendered by this component.
Cast ShadowsIf enabled, the mesh instances rendered by this component will cast shadows onto other mesh instances in the scene.
Cast Lightmap ShadowsIf enabled, the mesh instances rendered by this component will cast shadows into lightmaps.
Receive ShadowsIf enabled, the mesh instances rendered by this component will receive shadows cast by other mesh instances in the scene.
StaticIf the entity referencing this render component never moves, check this box as a hint to the engine to make certain optimizations.
LightmappedIf enabled, this component's mesh instances do not receive lighting from dynamic lights. Instead they receive lighting generated by lightmap-baking lights.
Lightmap Size MultiplierA multiplier applied to the calculated lightmap size for this mesh. Increase for higher resolution lightmaps. Only shown when Lightmapped is enabled.
Custom AABBIf enabled, allows specifying a custom axis-aligned bounding box for visibility culling instead of using the automatically calculated one. This is an optimization for skinned characters to avoid per-frame bounding box computations based on bone positions.
AABB CenterThe center position of the custom bounding box. Only shown when Custom AABB is enabled.
AABB Half ExtentsThe half-extents (half width, height, depth) of the custom bounding box. Only shown when Custom AABB is enabled.
Batch GroupThe batch group that this component's mesh instances belong to.
LayersThe layers to render this component's mesh instances into.
MaterialsThe material assets that will be used to render the mesh instances of this component. Each material corresponds to the respective mesh instance.

See Also

Scripting Interface

You can control a Render Component's properties using a Script Component. The Render Component's scripting interface is here.