Advertisement

My APP becomes see-through at times[Unity3D]

Started by April 18, 2018 10:07 AM
3 comments, last by Rutin 6 years, 7 months ago

Hi,

I'm new to this forum so I'm not entirely sure if this question has been asked before.

I made an android Application, which is a clone of FlappyBird on Unity3D. I made the APK and while the functionality is ok, there seems to be an issue where you can see-through my app.

By that I mean, when I played the game on my phone, I could see the applications on my screen or on my task manager, as if the game wasn't running. Similarly, when I played it on bluestacks, whenever I died or whenever the scene was fading into a different scene, I could see the bluestacks logo on the middle of the screen.

I've uploaded a video onto youtube where you can see what I'm talking about. the video stutters a little but I hope you catch it.

https://www.youtube.com/watch?v=Ajb8Ngoadq0&feature=youtu.be

---To perform the SceneFading effect I had animated a panel's alpha value to go from 255-0.

Please Help! and do let me know if you need me to provide the code! 

 

I don't use Unity so excuse my "terminology". From what I can gather it appears your main scene will "see through" because you're taking the surface in which you draw on and giving it a lower opacity through your fading feature.

You can try putting a second surface under your main surface and fill it black. When you do your fading you shouldn't be able to see through it anymore.

Give this a try and let me know how it works.

Programmer and 3D Artist

Advertisement

@Rutin

I had thought that was what was happening so I did make a black background which I placed behind my BG image as well as all the game components, but the problem persisted.

Also the fading feature doesn't fade the BG/Player/Obstacles etc. It works by first activating an Object which is a black screen with an alpha value of 0, and increases it's alpha value to 255(max) and then loads the next scene. Some how whenever the FadeIn or FadeOut is happening, I can see through the app. which is particularly bothersome on the phone because you can see the mainscreen with the apps as well.

49 minutes ago, Malikite said:

@Rutin

I had thought that was what was happening so I did make a black background which I placed behind my BG image as well as all the game components, but the problem persisted.

Also the fading feature doesn't fade the BG/Player/Obstacles etc. It works by first activating an Object which is a black screen with an alpha value of 0, and increases it's alpha value to 255(max) and then loads the next scene. Some how whenever the FadeIn or FadeOut is happening, I can see through the app. which is particularly bothersome on the phone because you can see the mainscreen with the apps as well.

Can you try this:

Look for the preserve frame buffer alpha in platform settings. This will be in the android player settings,

Is it checked? If so, uncheck it, and try again.

Programmer and 3D Artist

This topic is closed to new replies.

Advertisement