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

55 lines
1.6 KiB
Markdown

# VoxelInstancer
Inherits: [Spatial](https://docs.godotengine.org/en/stable/classes/class_spatial.html)
Spawns items on top of voxel surfaces.
## 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.
## Properties:
Type | Name | Default
----------------------- | ---------------------- | --------
`VoxelInstanceLibrary` | [library](#i_library) |
`int` | [up_mode](#i_up_mode) | 0
<p></p>
## Methods:
Return | Signature
--------------------------------------------------------------------- | ------------------------------------------------------------
[int](https://docs.godotengine.org/en/stable/classes/class_int.html) | [debug_get_block_count](#i_debug_get_block_count) ( ) const
<p></p>
## Enumerations:
enum **UpMode**:
- **UP_MODE_POSITIVE_Y** = **0**
- **UP_MODE_SPHERE** = **1**
## Constants:
- **MAX_LOD** = **8**
## Property Descriptions
- [VoxelInstanceLibrary](VoxelInstanceLibrary.md)<span id="i_library"></span> **library**
- [int](https://docs.godotengine.org/en/stable/classes/class_int.html)<span id="i_up_mode"></span> **up_mode** = 0
## Method Descriptions
- [int](https://docs.godotengine.org/en/stable/classes/class_int.html)<span id="i_debug_get_block_count"></span> **debug_get_block_count**( )
_Generated on Feb 16, 2021_