Skip to main content

VoxelDataResource

Client Server

Constructors​

VoxelDataResource VoxelDataResource(Asset voxelFile)​

VoxelDataResource VoxelDataResource()​

Methods​

Vec3 center, Vec3 size GetLocalBounds()​

get center (in local space) and approximate dimensions of the voxel data

Vec3 center, Vec3 size GetPreciseLocalBounds()​

get center (in local space) and dimensions of the voxel data

VoxelDataResource Duplicate()​

nil RebuildLighting()​

Properties​

boolean isEditable​

returns false if loaded as aevv

boolean isSaved​

returns true if data was modified

boolean hasAnyVoxels​

number volumePerc​

Approximate. Quickly count non-zero blocks of voxel object. Block size is 8x8x8. Block can be fully filled or just 1 voxel

integer volume​

number scaleToStatic​

number loadLodScale​

integer voxelSize​