simple text input

21 May 2016 14:49
How would I create a simple text box that the user would call by clicking on the screen that they could then be able to just type simple text and have it be displayed in the web app. In other words, i would like to know how to create user editable annotations after the app has started running. Looking at the xmas coding example it is kind of what I'm looking for but I'm unsure as to how to apply it. Any help would be greatly appreciated! thanks!
23 May 2016 09:42
Hello and welcome to the forum!

In the xmas example we use the canvas-texture to draw text into the texture. Take a look at this code snippet also.

To write text we use the textarea html-element:
<textarea spellcheck="false" id = "text_element" rows="12"></textarea>
Blend4Web developer
Please register or log in to leave a reply.