Code inspection: Multiple Shaders with the same name found
This inspection reports a shader name string that resolves to more than one ShaderLab shader with the same name.
In Unity, shader references such as Shader.Find("Name") are expected to point to a single shader. If several shaders share that name, the reference is ambiguous and it is unclear which shader the code is intended to use.
Example
using UnityEngine;
public class Example : MonoBehaviour
{
void Start()
{
var shader = Shader.Find("Custom/MyShader");
}
}
using UnityEngine;
public class Example : MonoBehaviour
{
void Start()
{
var shader = Shader.Find("Custom/MyUniqueShader");
}
}
How to fix
There is no dedicated quick-fix. The usual fix is to rename or remove duplicate shaders so the reference resolves to exactly one shader.
14 April 2026