godot_voxel/doc/source/api/VoxelInstanceLibraryItem.md
2021-02-16 20:54:45 +00:00

5.4 KiB

VoxelInstanceLibraryItem

Inherits: Resource

Settings for a model that can be used by VoxelInstancer

Properties:

Type Name Default
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 Feb 16, 2021