Hi all,
I want to do something like the code below.
if /*currentsceneid*/ === /*correct scene id*/ {
alert('hi') ;
}
How do I check the current scene id?
Hi all,
I want to do something like the code below.
if /*currentsceneid*/ === /*correct scene id*/ {
alert('hi') ;
}
How do I check the current scene id?
try the getSceneUrl
seemed to work for me when i needed it. but the scene id is here (steps)
1.
go to scene you want to start with.
2.
the numbers at the end are the id
3.
copy the id and start checking the ID
var sceneUrl = this.getSceneUrl(/*sceneId in ()*/)
if (this.sceneUrl === /*Continued*/) {
alert(/*Message*/)
}
Let me know if this helped
This surely did. Thanks.