(SOLVED) Is there a way to check current scene?

Something like that:-
if the scene active right now is “whatever the name” >>> then do something.
.
I know that I can do it with a global var. but I’m talking about an event inside the program it self.
Is that possible in GD? if not is it going to be implemented in the future?

CurrentSceneName()

2 Likes

@Bouh Thanks a lot but where do I type that? can you type a small example?

This expression return a string.

CurrentSceneName()

You can add a condition “Compare two strings” and use the expression, and compare with what you want.

3 Likes

Got it, thanks a lot : )