Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I don't know if currently there is an option to change the alpha or the opacity of an 2D overlay with an Image applied to it is available or not. I didn't find one myself. So a feature is requested through which one can change the alpha transparency or opacity of a 2D Overlay. currently am using javascript command ccbDrawTextureRectangleWithAlpha to get the desired result but an option in 2D Overlay attributes setting will be good enough. |
||||
|
True, I think that is missing, right. Will add. |
||||
|
cc js reference: For 2D overlay nodes, Properties like the following are available: 'Pos X (percent)', 'Pos Y (percent)', 'Width (percent)', 'Height (percent)', 'Pos X (pixels)', 'Pos Y (pixels)', 'Width (pixels)', 'Height (pixels)', 'Alpha', 'Image', 'Background Color', 'Draw Text', 'TextColor', 'Text'. var s = ccbGetSceneNodeFromName("cubeMesh1"); var atex = ccbGetSceneNodeProperty(s, "Alpha"); print("The cube tex is " + atex); |
|