OK, so this is probably obvious to a lot of folks, as I’ve read posts in which people mention getting the current scene using storyboard. However, I’ve tried a number of things to get the current scene and keep falling flat. I have a tabBar on the main.lua page that will change the scene using a custom scene attribute I created when creating the tabBar buttons. Clicking on a button runs a storyboard.gotoScene on the scene property of the targeted button.
storyBoard.getPrevious() will return the previous scene just fine, but how in the world do I get the current scene?
I’ve tried
-
storyboard.getScene(self)
-
storyboard.getScene(self.view)
-
storyboard.view
-
storyboard.scene
-
storyboard[1]
-
…etc.
[import]uid: 19999 topic_id: 21494 reply_id: 321494[/import]