VoxelInstanceLibraryItem

Inherits: Resource

Settings for a model that can be used by VoxelInstancer

Properties:

Type Name Default
int cast_shadow 1
int collision_layer 1
int collision_mask 1
VoxelInstanceGenerator generator
int lod_index 0
Material material_override
Mesh mesh
Mesh mesh_lod1
Mesh mesh_lod2
Mesh mesh_lod3
String name ""
bool persistent false

Methods:

Return Signature
Array get_collision_shapes ( ) const
Mesh get_mesh ( int mesh_lod_index ) const
void set_collision_shapes ( Array shape_infos )
void set_mesh ( Mesh mesh, int mesh_lod_index )
void setup_from_template ( Node node )

Constants:

  • MAX_MESH_LODS = 4

Property Descriptions

Method Descriptions

Generated on May 31, 2021