0
Under review
Inspector exceptions when built-in shader is selected in the editor (v1.7)
I'm developing a shader remapping helper, but when I have one of the built-in shaders selected in an ObjectField ( e.g. "Standard (specular)" ) I'm getting the console spammed with this:
DirectoryNotFoundException: Could not find a part of the path "E:\Wish\Perforce\X\Main\Game\Unity5-PS4\Resources\unity_builtin_extra".
DirectoryNotFoundException: Could not find a part of the path "E:\Wish\Perforce\X\Main\Game\Unity5-PS4\Resources\unity_builtin_extra".
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
System.IO.File.OpenRead (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:363)
System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/StreamReader.cs:167)
System.IO.StreamReader..ctor (System.String path)
(wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
System.IO.File.OpenText (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:368)
System.IO.File.ReadAllLines (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:560)
ShaderForge.SF_Parser.ExtractShaderForgeData (UnityEngine.Shader s, System.Single& version, Boolean setPath, Boolean findRenderers, Boolean findLOD)
ShaderForge.SF_Parser.ContainsShaderForgeData (UnityEngine.Shader s)
UnityEditor.ShaderForgeInspector.AnalyzeShader ()
UnityEditor.ShaderForgeInspector.OnEnable ()
UnityEditor.HostView:OnGUI()
Customer support service by UserEcho
Think this is a different issue, because the other problem was on v1.18 not v1.17