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)​

Asset Save()​

Asset SaveAs(string path, boolean overwrite)​

boolean SaveAsFileExists(string path)​

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 Object.receiveTransform=false.

Vec3 center, Quat rot, Vec3 size GetBounds()​

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.

boolean isSaved​

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

number lodBias​

Asset asset​

boolean assetMissing​

boolean static​

boolean isLoaded​