Skip to main content

VoxelData

Client Server

Component that holds voxel data. The actual data itself is in the data property. The data will only render if the object also has a VoxelRender component.

Metamethods

boolean __eq(VoxelData a, VoxelData b)

Methods

nil Mirror(Vec3 worldPos, Vec3 worldNormal)

Vec3 center, Vec3 size GetAABounds()

Returns the world-space axis-aligned bounds (center, size). Affected by the object's rotation, and reports size (0,0,0) when receiveTransform=false.

Vec3 center, Quat rot, Vec3 size GetBounds()

boolean success, string usedPath SetPath(string path)

Properties

boolean active

boolean activeInHierarchy

Object object

Object obj

boolean isDestroyed

string type

boolean onePerObject

Vec3 size

integer contentVersion

Monotonic counter incremented every time the underlying voxel content is invalidated (any edit that changes voxel presence). Cheap O(1) read for caching downstream computations like total volume.

string path

VoxelDataResource data

The voxel data resource that this voxel data is using

boolean save

Marks the voxel data to be persisted on save; it does not write any voxels by itself.

boolean editable

boolean syncToClients

boolean enabled

boolean prioritizeLod

Try to load higher LODs faster than those of other objects

boolean outline

Draw an outline around this object

Color tintColor

Render with a tint color

boolean receiveTransform

Receive transform(pos, rot scale) to render with from server. By default this is true. If you set this to false, you will need to manually set the transform of the object on the client side. This is useful for making objects respond immediately if something happened on the client side i.e. input

number lodBias

Asset asset