Text3D is a 3d text that can be inserted into scene dynamically.
Signature:
export default class Text3D extends Entity Extends: Entity
var text = new Modelo.View.Text3D("text1", viewer.getResourceManager(), viewer.getMaterialManager());
text.setContent("This is some text")
text.setTranslation(0, 0, 2.02);
text.setScaling(10, 10, 10);
viewer.getScene().addText3D(text);| Constructor | Description |
|---|---|
| (constructor)(name, resourceManager, materialManager) | Constructs a new instance of the Text3D class |
| Method | Description |
|---|---|
| destroy() | Destroy the Text3D. |
| setColor(color) | Set the color of the text. |
| setContent(content) | Set the text content of the text3D. Notice that only ascii characters are supported. |