|
|
|
|
|
|
using UnityEditor.Experimental.AssetImporters; |
|
|
|
using UnityEditor.ShaderGraph.Drawing; |
|
|
|
|
|
|
|
[ScriptedImporter(13, ShaderGraphImporter.ShaderGraphExtension)] |
|
|
|
[ScriptedImporter(14, ShaderGraphImporter.ShaderGraphExtension)] |
|
|
|
public class ShaderGraphImporter : ScriptedImporter |
|
|
|
{ |
|
|
|
public const string ShaderGraphExtension = "shadergraph"; |
|
|
|
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
configuredTextures = new List<PropertyCollector.TextureInfo>(); |
|
|
|
configuredTextures = new List<PropertyCollector.TextureInfo>(); |
|
|
|
return shaderString ?? k_ErrorShader.Replace("Hidden/GraphErrorShader2", shaderName); |
|
|
|
} |
|
|
|
} |
|
|
|