Hello!
I want to change scene after some seconds, but my background image (is editor entity) still remains in the other scene. Is there any way to remove it using code?
You can use tags if you have multiple entities, if it’s just one when you change scene and load the new one use this.app.root.findByName(‘entityname’).destroy; or .enabled=false
I’m guessing this is related to the work you are doing from adding images to the HTML.
As these images are not part of the scene graph in PlayCanvas and are part of the webpage, they won’t get destroyed/removed etc unless you modify the DOM.
Out of interest, is there a reason that you are not using the PlayCanvas UI system and using HTML instead?
l’m trying to understand the way that some thinks work and combine them to my project.I think that html is more easy to use and that’s why i’m asking some thinks about it.
My background is an editor entity in my basic project. But i want to add some images with html.
Can you share a link to the project please?