We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510eb10 commit c1961c4Copy full SHA for c1961c4
com.unity.render-pipelines.core/Editor/ShaderGenerator/CSharpToHLSL.cs
@@ -201,7 +201,16 @@ static void LoadTypes(string fileName)
201
}*/
202
parser.Lexer.EvaluateConditionalCompilation = true;
203
204
- parser.Parse();
+ try
205
+ {
206
+ parser.Parse();
207
+ }
208
+ catch
209
210
+ Debug.LogWarning($"Unable to parse {fileName}. Please not that C# 6.0 syntax is not yet supported by this tool.");
211
+ return;
212
213
+
214
try
215
{
216
var visitor = new NamespaceVisitor();
0 commit comments