godot_voxel/doc/api/Voxel.md

1.2 KiB

Class: Voxel

Inherits: Resource

Godot version: 3.2

Online Tutorials:

Constants:

» GeometryType.GEOMETRY_NONE = 0

» GeometryType.GEOMETRY_CUBE = 1

» GeometryType.GEOMETRY_MAX = 2

» ChannelMode.CHANNEL_TYPE = 0

» ChannelMode.CHANNEL_ISOLEVEL = 1

» ChannelMode.CHANNEL_DATA = 2

Properties:

» Color color

set_color (value) setter

get_color () getter

» int Voxel.GeometryType.geometry_type

set_geometry_type (value) setter

get_geometry_type () getter

» int material_id

set_material_id (value) setter

get_material_id () getter

» bool transparent

set_transparent (value) setter

is_transparent () getter

» String voxel_name

set_voxel_name (value) setter

get_voxel_name () getter

Methods:

» int get_id ( ) const

» Voxel set_color ( Color color )

» Voxel set_id ( int id )

» Voxel set_material_id ( int id )

» Voxel set_transparent ( bool transparent=true )

» Voxel set_voxel_name ( String name )

Signals:


Generated on Aug 26, 2019