Fixed the bug of CreateWidgetByPath

Fixed the bug of CreateWidgetByPath
This commit is contained in:
ALEXTANG
2023-07-06 19:07:45 +08:00
parent b07ef836a9
commit 9e0e3ebd50

View File

@@ -309,8 +309,7 @@ namespace TEngine
Log.Fatal($"CreateWidgetByPath Failed => {this}.AssetReference is null");
return null;
}
GameObject goInst = AssetReference.LoadAsset<GameObject>(assetPath, parentTrans,out var handle);
Handle = handle;
GameObject goInst = AssetReference.LoadAsset<GameObject>(assetPath, parentTrans);
return CreateWidget<T>(goInst, visible);
}