Transparent CCGameView

I have a CCGameView which is layered over a camera preview in an android app. I have set the opacity of the CCScene and the CCLayerColor to 0, but the background is still black. How can I make the CCGameView transparent so the camera preview is visible under it.

Answers

  • Ruslan0990Ruslan0990 DEMember ✭✭
    edited December 2016

    I also had the same problem. Unfortunately it's not possible to change the background color, zOrder or Visibility of the CCGameView, see also my thread here.
    You could try to make your camera preview a fragment and display this fragment over the CCGameView activity. As shown in this guide.

Sign In or Register to comment.