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

[Bug, Problem] Steamworks Overlay glitches on OSX

Discussion in 'Editor & General Support' started by Dmitry-Pyalov, Nov 26, 2014.

  1. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    125
    We are preparing our game for Steam and I'm facing a huge glitch with Steam Overlay on OSX.

    The game runs fine, no crashes, but when Steam Overlay appears, some of the sprites stop rendering or render with glitches, thus making bad user experience while interacting with Steam.
    Screen Shot 2014-11-26 at 14.21.09.png
    Screen Shot 2014-11-26 at 14.20.45.png

    As you can see, background becomes brown here instead of colourful image.
    It seems like it has to do something with low-level interference between Steam Overlay and Unity's OpenGL.

    I've googled the problem and searched through Steamworks closed forum, but found no answer or workaround.

    Has anybody faced this kind of problem or has any solution?

    I've filed a bug report #651180 with detailed explanation and steps to reproduce this behaviour.
     
  2. davidaayers

    davidaayers

    Joined:
    Sep 2, 2013
    Posts:
    3
    I'm having the exact same problem; did you ever figure anything out?
     
  3. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    125
    I've found no solution.

    Right now i'm drawing a single transparent pixel in OnGUI stage as a workaround and it seems to work.
     
  4. headcrap

    headcrap

    Joined:
    Jul 29, 2014
    Posts:
    37
    Hm i am having the same problem :/ But what do you mean with single transparent pixel?

    I try this
    ...
    -> Start
    this.workaroundTexture = newTexture2D(1, 1, TextureFormat.ARGB32, false);
    this.workaroundTexture.SetPixel(0, 0, newColor(0.0f, 0.0f, 0.0f, 0.0f));
    this.workaroundTexture.Apply();

    -> OnGUI
    GUI.DrawTexture(newRect(0, 0, Screen.width, Screen.height),this.workaroundTexture);
    ...

    But it did not fix my problem ...
    The steam overlay hide my intro video
    ...
    GUI.DrawTexture(newRect(0,0,Screen.width,Screen.height),this.intro,ScaleMode.StretchToFill, true, 0.0f);
    ...

    Any ideas?
     
  5. headcrap

    headcrap

    Joined:
    Jul 29, 2014
    Posts:
    37
    "Fixed" it by adding an 3D Cube in the scene ... no idea why but now it works
     
  6. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    Oh really? We've had issues before that were solved by that...

    It makes me think there's some aspect of the internal render state which isn't set until you do something like render a mesh.
     
  7. Nition

    Nition

    Joined:
    Jul 4, 2012
    Posts:
    781
    Just chiming to corroborate that idea: I had this issue when I had an empty scene with just OnGUI stuff in it and a camera. The above extra OnGUI code didn't fix it, but rendering a small cube way in the distance *did* fix it. Good times.
     
  8. HammerGlassStudio

    HammerGlassStudio

    Joined:
    Jan 10, 2015
    Posts:
    21
    We also tried it, but it didn't work (adding a cube).
    After the Unity logo, the screen stays black on mac (Unity 5.2.4) unless we disable the steam overlay.
    Some people seem to say this is more on the valve side, but this is annoying.

    Any idea?

    Thanks.
     
  9. djdavidrevolution

    djdavidrevolution

    Joined:
    Nov 16, 2014
    Posts:
    8
    I have the same issue on Unity 5.5.2, so updating is not a solution...
     
  10. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    We've been getting reports that the Steam Overlay cannot be interacted with, that Unity is blocking the clicks (on OSX)...? Anyone else experienced that, and is there a known fix?
     
  11. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    I have visual glitches on my game with Steam Overlay on OSX. No solution for this?