An array of 3 numbers that represents the center of the AABB to be used.
An array of 3 numbers that represents the half extents of the AABB to be used.
The id
of the model asset rendered by this model component.
The batch group id that this model belongs to. The engine will attempt to batch models in the same batch group.
If true, the model rendered by this component will cast shadows onto other models in the scene.
If true, this model will cast shadows when rendering lightmaps.
Whether the component is enabled.
Mark model as non-movable (optimization).
An array of layer id's that this model belongs to. When a model belongs to multiple layers it will be rendered multiple times.
If true, this model will be lightmapped after using lightmapper.bake().
Changing this value will affect resolution of lightmaps for this model.
A dictionary that maps a material asset to each mesh instance. Each key is the mesh instance index and each value is the asset id
.
The id
of the material asset that will be used to render the model (only applies to primitives).
If true, the model rendered by this component will receive shadows cast by other models in the scene.
The type of the model to be rendered. Can be: asset, box, capsule, cone, cylinder, sphere.
Model Component Properties.