|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
var path = AssetDatabase.GetAssetPath(asset); |
|
|
|
// Remove the "." in ".extension_name"
|
|
|
|
var extension = Path.GetExtension(path).Substring(1); |
|
|
|
var extension = Path.GetExtension(path); |
|
|
|
switch (extension.ToLower()) |
|
|
|
switch (extension) |
|
|
|
case ShaderGraphImporter.ShaderGraphExtension: |
|
|
|
case ".ShaderGraph": |
|
|
|
case ShaderSubGraphImporter.ShaderSubGraphExtension: |
|
|
|
case ".ShaderSubGraph": |
|
|
|
graphType = typeof(SubGraph); |
|
|
|
break; |
|
|
|
default: |
|
|
|