Reputation: 51
Is there such a thing as an edit control (meaning a rectangle of text containing a caret and modify-able by user input) for THREE.js
? If so, could somebody give me an example of its use? . and, if not, must this functionality be simulated through DOM/JavaScript?
Upvotes: 1
Views: 703
Reputation: 31046
There is no such control class in three.js
. You probably want to work with plain HTML textarea elements. If you want to apply a 2D or 3D transformation to a DOM element, consider to include one of the CSS renderers of three.js
into your project:
https://threejs.org/docs/index.html#examples/en/renderers/CSS2DRenderer https://threejs.org/docs/index.html#examples/en/renderers/CSS3DRenderer
Upvotes: 1