Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, Create a new scene with a cube named "handplate1" Put this code in a " event" linked to it : var s = ccbGetSceneNodeFromName("handplate1"); ccbSetSceneNodeMaterialProperty(s,0, "trans_add",true); print("eee"); Click on it at execution and see that the cube doesn't change (added transparency) either in .exe or .html. |
||||
|
Edit: go with the solution by @Niko ... Below.. |
||||
|
Try this: ccbSetSceneNodeMaterialProperty(s,0, "Type", "trans_add"); |
||||
|
Thanck you Niko |
|