SceneObjectText
Extends: SceneObjectBillboard
Properties
drawable(DrawableText)
Constructor
new SceneObjectText(
name: string,
drawableObj: DrawableText,
): SceneObjectTextParameters
name(string)drawableObj(DrawableText)
Instance Methods
getBoundingPoints(cameraObj: Camera): dynamic
Text always has a real width/height, unlike SceneObjectPolygon/SceneObjectModel (see the comment on SceneObjectBillboard.computeBillboardWorldCorners()) - so this overrides the base SceneObject.getBoundingPoints() wrapper to always return the object's 4 world-space corners rather than the frustum check's single-point shortcut in screen-aligned draw modes.
Parameters
cameraObj(Camera)
Returns
dynamic— the object's 4 world-space corners
getUniqueRegionName(): string
protected
Returns
string
getRegionWithIdToDraw(
rendererObj: BGE.Renderer,
): BGE.RendererHelpers.RegionWithId
protected
Parameters
rendererObj(BGE.Renderer)
Returns
BGE.RendererHelpers.RegionWithId
didRegionToDrawChange(): boolean
protected
Returns
boolean
getPinnedCornersOptions(): DrawPinnedCornersOptions
protected
Returns
needsManualPretranslationForDirectMode(): boolean
protected
Returns
boolean