Skip to main content

VoxelRenderer

Client Server

The data will only render if the object also has a VoxelData component with data assigned.

Metamethods

boolean __eq(VoxelRenderer a, VoxelRenderer b)

Methods

Vec3 center, Vec3 size GetAABounds()

World position and size of AABB (axis-aligned bounding box) of the object

Vec3 center, Quat rot, Vec3 size GetBounds()

Properties

boolean active

boolean activeInHierarchy

Object object

Object obj

boolean isDestroyed

string type

boolean Active

boolean ActiveInHierarchy

Object Object

Object Obj

boolean IsDestroyed

string Type

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

number LodBias