f111fei / react-native-unity-demo

103 stars 80 forks source link

Android Background Transparency #31

Open Ryan-Nichol opened 5 years ago

Ryan-Nichol commented 5 years ago

This may be unrelated but I have been trying to get a transparent background for Unity so you can see react-native components underneath the react-native-unity-view for Android, I have got it working for iOS.

For Android I have tried: Preserve frame buffer alpha = true, Set Camera to solid color RGBA { 0, 0, 0, 0 }, Using OpenGLES3

My problem is that the background is simply rendered as black, however if I ran the Unity Export by itself as an apk then it is clearly transparent. I am just wondering if there is something that react-native-unity-view does to the Unity Player that would remove this transparency.

forget-js commented 2 years ago

Have you solved this problem? I also hope to achieve transparent background, the unity version I use is 2021.3