PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

ZOffset

Beam

float

The distance, in studs, the Beams display is offset by relative to the Workspace/CurrentCamera.

When ZOffset is 0, the Beam will be displayed in its standard position between Beam/Attachment0 and Beam/Attachment1. ZOffset can be both positive and negative.

This property can be particularly useful when using multiple Beam|Beams between the same Attachments. Here, ZOffset can be used to layer the Beams and avoid Z-fighting. For example:

See the image below for a visual demonstration of ZOffset:

ZOffset


Code Samples


Layering Beams

This code sample uses the Beam/ZOffset property to layer multiple Beams between the same Attachments.