Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Cannot get property name from root

ishmaru
Registered User
Quote
2017-08-08 14:21:37

Hi I need to get the name of the current scene and i tried to use this:

var root1 = ccbGetRootSceneNode();
var name1 = ccbGetSceneNodeProperty(root1, 'Name');

But I get a cannot find property "Name" of scene node.

What can i do?


niko
Moderator
Quote
2017-08-13 08:36:10

Currently there is no way to do this (unless you are using WebGL, then you could use the CopperLicht API to get this), sorry. When switching scene, you could probably set a variable to get the current scene. Or add an invisible node into each scene with a specific name to identify the scene, maybe, as workaround.


ishmaru
Registered User
Quote
2017-08-15 11:14:07

Ok thanks Niko.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact