How do i add text to my scene

Like the needle website text

Original Post on Discord

by user 176623615440191489

You mean the overlay text? That is just normal html. If you open the workspace (via ExportInfo component) you can add/edit the index.html to your liking using Html and Css (on the website we actually used vue as a frontend framework)

okay thank you

by user 176623615440191489

Hey! When I add a simple text to the scene it doesnt export to the web view. Do I have to do something in particular?

by user 784488832639959041

Do you mean text in Unity or text in your index.html ? If Unity which text component did you use? Currently only the β€œlegacy” text component is supported. Make sure to set your canvas to worldspace.

Samples Projects | Needle Engine Documentation contains some samples using UI

e.g. https://needle-ui-button-sample.glitch.me/, https://needle-fonts-sample.glitch.me/ and https://needle-spatial-trigger-sample.glitch.me/

For adding text in html see Discord