Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Both rounded corner scripts stop working in the built application (Windows, Unity 2021.3.0f1) #26

Open
PuFGGs opened this issue Apr 23, 2022 · 1 comment

Comments

@PuFGGs
Copy link

PuFGGs commented Apr 23, 2022

When I used corner scripts in prefabs and Instantiate prefab in built runtime occurs an error and won't work. (It always works in the editor without any errors.)

@davide-aldegheri
Copy link

Hey, I had this issue too, the problem is that in both RoundedCorners scripts use Shader.Find("UI/RoundedCorners/RoundedCorners") and Shader.Find("UI/RoundedCorners/IndependentRoundedCorners")
which can't work in a build, a workaround is to go into Project Settings -> Graphics -> Always Include Shaders, increment the value by 2 and add both shaders you can find inside Packages.

It would be nice if there was a script on load that automatically adds those but you can solve it simply by doing that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants