Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
var root = ccbGetRootSceneNode(); print("root's name is: " + ccbGetSceneNodeProperty(root,"Name")); //Was kinda expecting "New 3D Scene1" or something but instead get Property does not exist. |
||||
|
var root = ccbGetRootSceneNode(); print("root's name is: " + root); (does not return with the name that you've expected…) Look at this example… //check fog... var root=ccbGetRootSceneNode() varname = "fogon"; var s = ccbGetCopperCubeVariable(varname); if (s == 1) { //turn Fog On ccbSetSceneNodeProperty(root,"Fog",true); } But really set up one of ıts elements…. |
|