Search Unity

Problem with Fading in unity for N3DS (Any N3DS Developer)

Discussion in '2D' started by fosmark13, May 21, 2018.

  1. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    Hi, i have problems with fading on 3DS hardware, i now there are forums for nintendo consoles but nobody answers me there, besides it's nothing confidential, so i have the next code:

    Code (CSharp):
    1.  
    2.  
    3. void OnGUI(){
    4.  
    5.         alpha += fadeDir * fadeSpeed * Time.deltaTime;
    6.  
    7.         alpha = Mathf.Clamp01 (alpha);
    8.  
    9.         GUI.color = new Color (GUI.color.r, GUI.color.g, GUI.color.b, alpha);
    10.  
    11.         GUI.depth = drawDepth;
    12.  
    13.         GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), fadeOutTexture);
    14.  
    15.  
    16.     }
    17.  
    18.     public float BeginFade(int direction){
    19.    
    20.         fadeDir = direction;
    21.  
    22.         return(fadeSpeed);
    23.  
    24.     }
    It works great on PC but on 3DS hardware doesn't do anything and i believe it's related to the alpha or something becuase all the animation that i made using unity's sprite renderer color don't work neither! and they were fadings as well...

    If a N3DS developer could give me a hint of why this is happen would be great 'cause like a said before nintendo forums are ghost towns...​