The entity this shape is attached to. When set, this shape
will copy the root location of the attached entity and the
shape's position will be used as an offset.
backfaceVisible
backfaceVisible:boolean
备注
If set to true, the debug text will render the back-face of
the background. Defaults to true but will always be false if
'useRotation' is set to false.
The location of the shape. For most shapes the location is
the centre of the shape, except DebugLine and DebugArrow
where this represents the start point of the line.
可选maximumRenderDistance
maximumRenderDistance?:number
备注
If defined, this distance will be used to determine how far
away this shape will be rendered for each client. By default
the distance will match the client's render distance
setting.
Get the text of the debug text shape. Returns the RawText of
the debug text if setText was called with a RawMessage or
a RawText object, otherwise returns a string.
textBackfaceVisible
textBackfaceVisible:boolean
备注
If set to true, the debug text will render the back-face of
the text. Defaults to true but will always be false if
'useRotation' is set to false.
可选timeLeft
timeLeft?:number
备注
The time left (in seconds) until this shape is automatically
removed. Returns undefined if the shape does not have a
limited life-span.
可选只读totalTimeLeft
totalTimeLeft?:number
备注
The total initial time-span (in seconds) until this shape is
automatically removed. Returns undefined if the shape does
not have a limited life-span.
useRotation
useRotation:boolean
备注
If set to true, the text will not face the camera and
instead will use the rotation from the shape.
Set the location and dimension of the shape. If the
dimension is undefined, it will display in all dimensions.
For most shapes the location is the centre of the shape,
except DebugLine and DebugArrow where this represents the
start point of the line.
A debug shape class that represents a text label in the world with a background.