Skip to content

Commit

Permalink
Fix floating screen handler shader
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Feb 23, 2024
1 parent 16306f9 commit fad9c72
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using VRUIControls;

Expand Down Expand Up @@ -78,7 +79,7 @@ private void Awake()
{
if (shader == null)
{
shader = Shader.Find("Custom/Glowing");
shader = Resources.FindObjectsOfTypeAll<Shader>().First(s => s.name == "Custom/Glowing");
}

_material = GetComponent<MeshRenderer>().material;
Expand Down

0 comments on commit fad9c72

Please sign in to comment.