Quantcast
Viewing all articles
Browse latest Browse all 17109

Get scene name cocos2d-js

@ozergul wrote:

Hi,
is this possible in cocos2d-js now?

i tried this way :

console.log(this.node._parent)

this.node is root node. it returns cc.Scene but node's name is empty.

http://cocos.sonarlearning.co.uk/docs/nodes

in this page here is the c++ version

nodeName->getScene( );

but in Js part writing:

// no JavaScript equivalent

how do I get scene name in cocos2d-js

cant getting current scene name is a big problem for me.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>