In **2017.3.0b4 Release Notes (Full),**there is a improvements
“Android: [OpenGL ES] Added support for preserving the framebuffer alpha”
I want to know if it resolve this problem Transparency on Android about transparency on Android.
Yes, it does. The support is limited to OpenGL only at the moment, though (so no Vulkan).
That’s great! Thank you very much!
But how should I do in unity setting or Android setting?Are there some examples?
There’s a new checkbox in Android player settings, “Preserve framebuffer alpha”.
You need to check it and set the clear value in the camera to have alpha less than one.
This enables rendering Unity on top of native Android UI.
I have checked “Preserve framebuffer alpha” in Android player settings, and set the clear flag in the camera with the Solid Color,then set alpha less than one.But it doesn’t work. I try the Depth only,Dont Clear too,and it doesn’t work too.
Which option in clear flag shoud I use?
The setup I used was:
- Checked “Preserve framebuffer alpha” in player settings
- Camera Clear Flags set to Solid Color
- Clear color set to white with 0 alpha
The Manifest.xml in the Android build has to have UnityThemeSelector.Translucent theme set for the application.