Hello,
I am trying to determine if there is an overlay opened or no. Only method I found which could help me is
composer.getSceneName(“overlay”) which I thought will return nil or empty string in case if there is no overlay opened, but it throws error:
I/Corona (13958): Runtime error
I/Corona (13958): ?:0: attempt to index field ‘_currentOverlayScene’ (a nil value)
I/Corona (13958): stack traceback:
I/Corona (13958): [C]: ?
I/Corona (13958): ?: in function 'getSceneName’
I/Corona (13958): ?: in function 'GoBack’
I/Corona (13958): ?: in function <?:258>
I/Corona (13958): ?: in function <?:218>
I am currently using pcall to determine is there an overlay or not, but thats not looks right.
Can you please fix this?