修改一处调用unity2022的api,以兼容老版本unity api
This commit is contained in:
parent
5a86ad0733
commit
ba7eb12604
@ -95,12 +95,12 @@ namespace VersionFlow.Editors
|
||||
{
|
||||
foreach (var guid in AssetDatabase.FindAssets("t:builderconfig", new string[] { "Assets" }))
|
||||
{
|
||||
var type = AssetDatabase.GetMainAssetTypeFromGUID(new GUID(guid));
|
||||
var path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
var type = AssetDatabase.GetMainAssetTypeAtPath(path);
|
||||
if (type == null) continue;
|
||||
if (type != typeof(BuilderConfig)) continue;
|
||||
|
||||
|
||||
var path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
var builder = AssetDatabase.LoadAssetAtPath<BuilderConfig>(path);
|
||||
return builder;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user