Skip to content

Commit ce79cd6

Browse files
Merge pull request #545 from Unity-Technologies/mainmenu-runtime-shader-fix
Prevent MainMenu ScrollRect elements from throwing an exception in runtime builds
2 parents 0d2af3d + b800b2f commit ce79cd6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Menus/MainMenu/Shaders/AngledVerticalGradientUIClip.shader

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
_ColorMask("Color Mask", Float) = 15
1515

1616
[Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip("Use Alpha Clip", Float) = 0
17+
18+
// Unused _MainTex property, added to prevent runtime exceptions for elements whose parent is a ScrollRect
19+
[HideInInspector] _MainTex("Main Texture - unused", 2D) = "white" {}
1720
}
1821

1922
SubShader

0 commit comments

Comments
 (0)