Skip to content

Commit

Permalink
Fix UI text no longer renders over everything:
Browse files Browse the repository at this point in the history
- Fix UI text no longer renders over everything without having to enter Play mode

Suggested by ScruffyRuffles
  • Loading branch information
hai-vr committed May 17, 2022
1 parent 0295ea5 commit 58a8a4e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ private void Enable()
ProjectRenderQueue.LoadLightbox(lightboxScene);
_enabled = true;
Realign();

// Fix UI text rendering over everything.
// This normally fixes itself when entering Play mode, but this will allow not needing to enter Play mode.
var LessEqual = 4;
Shader.SetGlobalInt("unity_GUIZTestMode", LessEqual);
}

private void Realign()
Expand Down

0 comments on commit 58a8a4e

Please sign in to comment.