|
|
|
|
|
|
foreach (var guid in AssetDatabase.FindAssets(string.Format("t:{0}", typeof(MaterialSubGraphAsset)))) |
|
|
|
{ |
|
|
|
var asset = AssetDatabase.LoadAssetAtPath<MaterialSubGraphAsset>(AssetDatabase.GUIDToAssetPath(guid)); |
|
|
|
var title = asset.subGraph.path.Split('/').Append(asset.name).ToArray(); |
|
|
|
var title = asset.subGraph.path.Split('/').ToList(); |
|
|
|
title.Add(asset.name); |
|
|
|
AddEntries(node, title, nodeEntries); |
|
|
|
AddEntries(node, title.ToArray(), nodeEntries); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|