mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Fixed the bug of CreateWidgetByPath
Fixed the bug of CreateWidgetByPath
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user