Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Pink Screen

Discussion in 'Android' started by VladEUltraJmek, Jul 23, 2019.

  1. VladEUltraJmek

    VladEUltraJmek

    Joined:
    Jul 21, 2019
    Posts:
    2
    My app works fine on android phones but doesn't work on tablets.When i open the app it shows just a purple screen instead of the game
     
    weebo998 likes this.
  2. Ragegamedude

    Ragegamedude

    Joined:
    Oct 3, 2015
    Posts:
    4
    Got the Same Problem after Upgrade Projekt to 2019.2f. Works fine with 2018.3 and internal build.

    Edit : Fixed it , had some missing shaders in Edit/Project Settings/Graphics
     
    Last edited: Jul 30, 2019
  3. SweatyChair

    SweatyChair

    Joined:
    Feb 15, 2016
    Posts:
    140
    Same in 2019.2.12f1, any work around to fix it?
     
  4. idurvesh

    idurvesh

    Joined:
    Jun 9, 2014
    Posts:
    495
    Happening to me as well in 2019.2.13
     
  5. _goozo

    _goozo

    Joined:
    Mar 26, 2017
    Posts:
    1
    Same here in 2019.2.13f1...
    Im not missing any shaders in project setting either.

    This is happening on Android and iOS, but it's a gray screen in iOS that eventually crashes.
     
  6. softmarshmallow

    softmarshmallow

    Joined:
    Jan 29, 2016
    Posts:
    7
    do any of you guys have solid solution?
     
  7. Tankzo

    Tankzo

    Joined:
    Jul 16, 2019
    Posts:
    16
    The fix that worked for me when resetting the Graphics (Edit>Project Settings>Graphics - reset) didn't resolve the shader issue:

    Under Edit>Project Settings>Player>Android Tab>Other Settings - check the "Auto Graphics API" box and make sure the list has sRBG in it (I added DisplayP3 as well to clear up some weird shading)
     
  8. berkut3200

    berkut3200

    Joined:
    Nov 24, 2019
    Posts:
    1
    thanks a lot, worked for me! Running on Lanix Ilium M9 it worked fine, but when running on Lenovo Tablet A5500, it only showed the pink screen, until your workaround. Is there somewhere; where I could get the intricacies of why this happens?
     
    ngoson107 and Tankzo like this.
  9. Tankzo

    Tankzo

    Joined:
    Jul 16, 2019
    Posts:
    16
    Honestly, I have no idea @berkut3200. All I know is that "Pink" means "shader problem" (I've run across is a lot of times going from the standard shader to URP & HDRP.) So that made me look at the "other settings" under Android and then I just messed around with the settings until it worked.

    Sorry I don't have more info but maybe someone from Unity could explain this a bit more...? :'(
     
  10. TheGreatSpaget

    TheGreatSpaget

    Joined:
    Dec 8, 2020
    Posts:
    1
    I tried the game on the computer I made it on, but then I tried to run it on a separate computer and after the splash screen played the screen just turned pink and idk why, was it graphics isues? because it was on an older computer, I gotta dig up some other one to see...
     
  11. azizkale

    azizkale

    Joined:
    May 18, 2019
    Posts:
    5
    I had similar problem and solved it. I created the objects seen in the game screen via script. I realised that i didnt set the shader. I set it in C# and in unity side i assigned Unlit/Texture (it is optional) to the my shader i created in script. and the problem was solved


    using UnityEngine;
    public class OyunKontrolKod : MonoBehaviour
    {
    public GameObject kup;
    public GameObject zemin;
    Vector3 vec;
    GameObject clone;
    public Shader myShader;
    public Texture2D[] textures;
    public GameObject[] clonelar;
    public Texture2D[] sayilar;
    void Start()
    {
    KupleriOlusturma();
    zemin.transform.position = new Vector3(-7.2f,0.93f,-2.5f);
    zemin.transform.rotation = Quaternion.Euler(new Vector3(-90f, 0f, 0f));
    }
    public void KupleriOlusturma()
    {
    int sayac = 0;
    for (int i = 0; i < 16; i++)
    {
    vec.z = 4.5f - i;
    for (int j = 0; j < 16; j++)
    {
    vec.x = -6 + j;
    clone = Instantiate(kup, vec, Quaternion.identity) as GameObject;
    clone.transform.SetParent(zemin.transform);

    clone.name = sayac.ToString();
    clone.transform.localScale = new Vector3(0.93f, 0.93f, 0.93f);
    clonelar[sayac] = clone;
    clone.GetComponent<Renderer>().material.shader = myShader;
    clone.GetComponent<Renderer>().material.mainTexture = textures[1];

    clone.tag = "mavi";

    //fazlalık küplerin meshRenderer ları kapatılır.
    if (sayac >= 0 && sayac <= 47 || sayac >= 208 && sayac <= 255 || sayac % 16 == 0 || sayac % 16 == 1 || sayac % 16 == 2 || sayac % 16 == 13 || sayac % 16 == 14 || sayac % 16 == 15)
    {
    // gösterilmeyen kup ler tıklamalara tepki vermesi önlenir
    Destroy(clone.GetComponent<BoxCollider>());
    clone.GetComponent<MeshRenderer>().enabled = false;
    }
    sayac++;
    }
    }
    }

    }
     
  12. affan658

    affan658

    Joined:
    Apr 10, 2022
    Posts:
    3
    mine is already on but still getting this problem