I have a model loaded in babylon successfully, with a texture applied
I want to add floating labels in the 3d space,
so I try to use
var advancedTexture = GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);
but every time I use that line, I get errors
either getcomponent null error or onsuccess callback error from append mesh
babylon.js:16 Uncaught TypeError: Cannot read property ‘_getComponent’ of null
what is the best way to add floating labels in 3d space without errors?
thank you very much
The engine is automatically created for you in the playground. If you don’t use the playground, you will need to create it yourself and pass it to the scene constructor.
One thing you can test is to pass the scene to the CreateFullscreenUI method as the 3rd parameter.
But a repro would be the way to go as it is working in the example playground provided by @Dad72.
just checked, I have scene and engine all created,
problem is that im doing react app, and I have two separate files so not sure how to include that in the playground