godot_voxel/doc/classes/VoxelInstancer.xml

38 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelInstancer" inherits="Spatial" version="3.5">
<brief_description>
Spawns items on top of voxel surfaces.
</brief_description>
<description>
Add-on to voxel nodes, allowing to spawn elements on the surface. These elements are rendered with hardware instancing, can have collisions, and also be persistent. It must be child of a voxel node. At the moment it only supports `VoxelLodTerrain`.
</description>
<tutorials>
</tutorials>
<methods>
<method name="debug_get_block_count" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="debug_get_instance_counts" qualifiers="const">
<return type="Dictionary" />
<description>
</description>
</method>
</methods>
<members>
<member name="library" type="VoxelInstanceLibrary" setter="set_library" getter="get_library">
</member>
<member name="up_mode" type="int" setter="set_up_mode" getter="get_up_mode" enum="VoxelInstancer.UpMode" default="0">
</member>
</members>
<constants>
<constant name="MAX_LOD" value="8">
</constant>
<constant name="UP_MODE_POSITIVE_Y" value="0" enum="UpMode">
</constant>
<constant name="UP_MODE_SPHERE" value="1" enum="UpMode">
</constant>
</constants>
</class>