- Home /
Gameobject turns pink when attaching mobile shader to it.
I'm at the point now where I'm optimizing my game and now when I try to use mobile shaders the gameobject turns pink. I'm a unity noob so maybe I'm doing it totally wrong but I do it by creating a material, adding the mobile shader to it and then adding the material to my game object. Help would be appreciated :)
If the object is pink, it means there's an error somewhere inside the shader.
@Rugbug_Redfern that's weird because all the mobile shaders are pink except the mobile particle shaders
Answer by CerebralStatic · Mar 11, 2021 at 01:43 AM
@romeo160705 if the shader is meant for mobile, its most likely using URP definitions, or Universal Render Pipeline. Unity comes with the default render pipeline (general workhorse renderer), but you can also use URP (simpler but works across nearly every kind of device and platform) and HDRP (High-definition, more advanced and less accessible). Because these render lighting and materials differently, each render pipeline will be unable to see any materials or shaders meant for the other types, and it defaults to an unshaded pink color.
Your answer
Follow this Question
Related Questions
Grass shader sprite 2D 3 Answers
How to create a hole using a shader? 0 Answers
Why does AngryBots `QualityManager` alter shader LOD twice? 0 Answers
My shader code is having an error with returns at lines 50 and 60. 1 Answer
Without normal map material 0 Answers