Skip to main content

Model (Legacy)

warning

The Model Component is deprecated. It has been replaced by the Render Component.

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

Model Component

Properties

PropertyDescription
TypeThe type of the model to be rendered. Can be: Asset, Box, Capsule, Cone, Cylinder, Plane, Sphere.
ModelAsset type only. The model asset rendered by this model component. Only a single model can be rendered per model component.
MaterialPrimitive types only. The material asset used to render the primitive shape.
Cast ShadowsIf enabled, the model rendered by this component will cast shadows onto other models in the scene.
Cast Lightmap ShadowsIf enabled, the model rendered by this component will cast shadows into lightmaps.
Receive ShadowsIf enabled, the model rendered by this component will receive shadows cast by other models in the scene.
StaticIf the model never moves, check this box as a hint to the engine to make certain optimizations.
LightmappedIf enabled, this model does not receive lighting from dynamic lights. Instead it receives lighting generated by lightmap lights.
Lightmap Size MultiplierA multiplier applied to the calculated lightmap size for this model. 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.
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 model belongs to. More on Batching here.
LayersThe layers to render this model into.

See Also

Scripting Interface

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

Customizing Materials

You can learn how to customize the materials of your model here.