The MeshComponent is used to add a MeshInstance to an entity.
Description
The MeshComponent is used to add a MeshInstance to an entity.
Usage
- Attach the component to a game entity.
- Adjust the properties to customize the appearance of the water.
Dependencies
Requires the use of the Anitya server for downloading mesh models.
Model has to be in glb format.
Properties
mesh
- Type:
ASSET_REF
- Description: Represents the mesh attached to the entity.
generate_collider
- Type:
BOOL
- Description: Determines if the mesh should have a physics collider.
collider_type
- Type:
INT
- Description: Represents the collision shape type of the mesh.
material
- Type:
ASSET_REF
- Description: Represents the override material of the attached mesh.