VoxelInstanceLibraryMultiMeshItem¶
Inherits: VoxelInstanceLibraryItem
Instancer model using MultiMesh to render.
Description:¶
This model is suited for rendering very large amounts of simple instances, such as grass and rocks.
Properties:¶
Type | Name | Default |
---|---|---|
PackedFloat32Array | _mesh_lod_distance_ratios | PackedFloat32Array(0.2, 0.35, 0.6, 1) |
int | cast_shadow | 1 |
int | collision_layer | 1 |
int | collision_mask | 1 |
Array | collision_shapes | [] |
int | gi_mode | 1 |
bool | hide_beyond_max_lod | false |
Material | material_override | |
Mesh | mesh | |
float | mesh_lod0_distance_ratio | 0.2 |
Mesh | mesh_lod1 | |
float | mesh_lod1_distance_ratio | 0.35 |
Mesh | mesh_lod2 | |
float | mesh_lod2_distance_ratio | 0.6 |
Mesh | mesh_lod3 | |
float | mesh_lod3_distance_ratio | 1.0 |
int | render_layer | 1 |
PackedScene | scene |
Methods:¶
Return | Signature |
---|---|
StringName[] | get_collider_group_names ( ) const |
Mesh | get_mesh ( int mesh_lod_index ) const |
void | set_collider_group_names ( StringName[] names ) |
void | set_mesh ( Mesh mesh, int mesh_lod_index ) |
void | setup_from_template ( Node node ) |
Constants:¶
- MAX_MESH_LODS = 4
Property Descriptions¶
PackedFloat32Array _mesh_lod_distance_ratios = PackedFloat32Array(0.2, 0.35, 0.6, 1)¶
(This property has no documentation)
int cast_shadow = 1¶
(This property has no documentation)
int collision_layer = 1¶
(This property has no documentation)
int collision_mask = 1¶
(This property has no documentation)
Array collision_shapes = []¶
Alternating list of CollisionShape and Transform3D. Shape comes first, followed by its local transform relative to the instance. Setting up collision shapes in the editor may require using a scene instead.
int gi_mode = 1¶
(This property has no documentation)
bool hide_beyond_max_lod = false¶
(This property has no documentation)
Material material_override¶
(This property has no documentation)
Mesh mesh¶
(This property has no documentation)
float mesh_lod0_distance_ratio = 0.2¶
(This property has no documentation)
Mesh mesh_lod1¶
(This property has no documentation)
float mesh_lod1_distance_ratio = 0.35¶
(This property has no documentation)
Mesh mesh_lod2¶
(This property has no documentation)
float mesh_lod2_distance_ratio = 0.6¶
(This property has no documentation)
Mesh mesh_lod3¶
(This property has no documentation)
float mesh_lod3_distance_ratio = 1.0¶
(This property has no documentation)
int render_layer = 1¶
(This property has no documentation)
PackedScene scene¶
(This property has no documentation)
Method Descriptions¶
StringName[] get_collider_group_names( )¶
Gets the list of group names that are added to collider nodes.
Mesh get_mesh( int mesh_lod_index )¶
(This method has no documentation)
void set_collider_group_names( StringName[] names )¶
Sets the list of group names that will be added to collider nodes generated for each instance.
void set_mesh( Mesh mesh, int mesh_lod_index )¶
(This method has no documentation)
void setup_from_template( Node node )¶
(This method has no documentation)
Generated on Aug 27, 2024