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
positionVector3World position of the panel host.
rotationQuaternion?World rotation of the panel host (identity when omitted).
panelSizeVector2?Virtual panel resolution in pixels (fixed world-space size mode).
childrenVNode[]Descendant VNodes rendered inside the world-space panel.
keystringKey used to disambiguate siblings at the same position.
Returns
- WorldSpaceNode
The created WorldSpaceNode.