it always assign a universal Render Pipeline/Lit shader in stead of my custom shader graph shader
Material NameR = new Material(Shader.Find("Shader Graphs/Wall Green Simple"));
I also tested with
public Shader MyShader;
void Start()
{
Material NameL = new Material(MyShader);
GetComponent<MeshRenderer>().materials[0] = NameL;
}
also return lit shader
Help needed
Thanks