Text3D
Function | Description |
---|---|
Text3D.new() | Creates an empty 3D text object |
Text3D.new(String text ) |
Creates a 3D text object with the given text |
Text3D.new(String text , String fontName ) |
Creates a 3D text object with specified text and fontName |
Text3D.new(String text , Vector3D position ) |
Creates a 3D text object with text at position |
Text3D.new(String text , Vector3D position , Vector4D color ) |
Creates a 3D text object with text , position , and color |
Property | Type | Description |
---|---|---|
.text | String | The displayed text |
.position | Vector3D | Position of the text |
.visible | bool | Whether the text is visible |
.textColor | Vector4D | Text color |
Function | Returns | Description |
---|---|---|
:destroy() | Destroys the object | |
:setParent(3DObject other ) |
Parents this object to another 3D object | |
:getAbsolutePosition() | Vector3D | Returns world-space position |
:getAbsoluteRotation() | Vector3D | Returns world-space rotation |
:getAbsoluteScale() | Vector3D | Returns world-space scale |
:updateAbsolutePosition() | Updates world transform (non-recursive) |