Search Unity

Question Problem with Unity 2D mobile not refreshing screen after every frame

Discussion in '2D' started by BetterLife_R, Mar 21, 2022.

  1. BetterLife_R

    BetterLife_R

    Joined:
    Nov 16, 2021
    Posts:
    19
    I seem to have this problem where Unity 2D on a mobile device won't update / clear the screen after frame. This leads to all the sprites to paint over the background when ever their position is updated.

    Note: This only happens when running on an actual mobile device. When in play mode in the Unity editor everything works fine.

    Some information that might help - I've been experimenting with lighting and bloom effects by creating a specialised shader. I'm also using an addon to use .svg files as sprites. Although I don't know if this would effect it or not
    Screenshot_20220321-184525_Lets Go Fly a Kite.jpg
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,751
    Either put a camera in the scene or else put a full-screen anchored Image at the far back of your entire UI.
     
  3. BetterLife_R

    BetterLife_R

    Joined:
    Nov 16, 2021
    Posts:
    19
    A camera is included in my scene by default. When you say "put an image at the far back" do you mean change the z axis? Also could you let me know you thought process behind that, I'm not why that would change anything.

    Thanks