There was a request for access to a Scene Name in the Scene API the other day, something I also would like very much. Since then I was thinking that perhaps the "Scene" in the API is not a match for a "Scene" in the Design views? What I'm wondering is if a "Scene" when running a game is made up of all the "Design Scenes" you can see. I've just run a very simple Start + 3 Scenes with the same object "Coin" in the 3 scenes. When I do a this.scene().find('Coin") it returns a list of coins matching what I can see in the preview when running the game, in my case 7 which is actually 7 scenes. So the Scene in the API is NOT a match for a Scene in the design. This might explain the lack of Name in the Scene API Can anyone else confirm what I'm thinking?
@PunkPuffin Oh Man. That's too bad. Then we cannot set any runtime properties specific to objects in a scene. Then api name should be World not Scene. The only workaround I can suggest is getting Scene Name through Entity. let sceneName = this.entity().sceneName();
@PunkPuffin , there is a method addLevel which treating every Scene in the editor as Level . this.scene().addLevel('Level 1'); So requested Support to get Level Name from Entity. this.entity().levelName();
@particles that could work. I assume it is the level the entity originally came from? Terrible name again. As I thought the idea in the designer is a 3D World is a Scene in the API and I thought for the player a 3D World was a Level. So confusing
@particles Well I suspect we don't have much say here and probably too far down the development path to change it so we might just have to wait to see what we get now.
Agree. Just want to get scene name but that is not possible at the moment. It's important in my project.