浏览代码

Merge pull request #309 from Unity-Technologies/fix-net35

Fix legacy scripting backend compatibility
/main
GitHub 7 年前
当前提交
09124350
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 5
      com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardProvider.cs
  2. 5
      com.unity.shadergraph/Editor/Drawing/SearchWindowProvider.cs

5
com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardProvider.cs


List<string> newStrings = new List<string>();
foreach (string s in splitString)
{
if (!string.IsNullOrWhiteSpace(s))
var str = s.Trim();
if (!string.IsNullOrEmpty(str))
newStrings.Add(s.Trim());
newStrings.Add(str);
}
}

5
com.unity.shadergraph/Editor/Drawing/SearchWindowProvider.cs


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);
}
}

正在加载...
取消
保存