Table of Contents

Method WorldSpace

Namespace
Velvet
Assembly
Velvet.Docs.dll

WorldSpace(Vector3, Quaternion?, Vector2?, VNode?[]?, string?)

Renders children into a framework-owned world-space panel positioned by a scene transform — UI that lives among 3D content and is depth-tested against it (the drei <Html> parity point), unlike the always-on-top screen-space layers. The host (GameObject + world-space panel) is created on mount, follows position / rotation updates, and is destroyed on unmount. Children stay part of the logical tree (context and state cross; events do not — the panel boundary is physical). Display-only: world-space input routing is not wired.

public static WorldSpaceNode WorldSpace(Vector3 position, Quaternion? rotation = null, Vector2? panelSize = null, VNode?[]? children = null, string? key = null)

Parameters

position Vector3

World position of the panel host.

rotation Quaternion?

World rotation of the panel host (identity when omitted).

panelSize Vector2?

Virtual panel resolution in pixels (fixed world-space size mode).

children VNode[]

Descendant VNodes rendered inside the world-space panel.

key string

Key used to disambiguate siblings at the same position.

Returns

WorldSpaceNode

The created WorldSpaceNode.