❔ Referring to a file in C#
Hello, I have a file (.shader) in my Solution directory, however I'm trying to refer to it in code, I have tried
However, that returns
Cannot implicitly convert from type 'string' to 'unityEngine.Shader
. Any help would be relaly appreciated!6 Replies
Shader is a shader and file is a String
https://docs.unity3d.com/ScriptReference/Shader.html
I know, so this approach doesn't work. I'm looking for alternatives
and finding shaders by name (Find method).
I'm not trying to search for it in a unity project
It's a C# project that uses the Unity namespace
so .Find is of no use to me
try
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.