Shader error upon build to Oculus Quest 2
Error building Player : Undeclared identifier "UNITY_DISPLAY-ORIENTATION _PRETRANSFORM" at Files/Unity?Hub/Editor/Data/CGIncludes/UnityCG.cginc(817) (on vulkan)
Im getting this upon build.
I made a shader from the shader graph and i animated it. It works in play mode but when i go to build it shows this error x2. Im building to Oculus and ive follwed the whole set up and it was all working well before this shader was introduced.
Im not familiar with shaders but would really appreciate the help. Ive done research into this error but most say its something to do with a script but i didnt write the script? I just used the nodes system?
Would appreciate any help at all Im sorry i cant figure it out myself.
Answer by ThePirateCowboy · Jun 04 at 10:57 PM
Found the issue. I had to update to URP from the built in RenderPipeline and that fixed the issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220613061331im_/https://answers.unity.com/themes/thub/images/avi.jpg)