SceneObjectText

Extends: SceneObjectBillboard

Properties


Constructor

new SceneObjectText( name: string, drawableObj: DrawableText, ): SceneObjectText

Parameters


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

Returns

  • dynamic — the object's 4 world-space corners

getUniqueRegionName(): string

protected

Returns

  • string

getRegionWithIdToDraw( rendererObj: BGE.Renderer, ): BGE.RendererHelpers.RegionWithId

protected

Parameters

Returns

  • BGE.RendererHelpers.RegionWithId

didRegionToDrawChange(): boolean

protected

Returns

  • boolean

getPinnedCornersOptions(): DrawPinnedCornersOptions

protected

Returns

needsManualPretranslationForDirectMode(): boolean

protected

Returns

  • boolean