mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +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");
|
Log.Fatal($"CreateWidgetByPath Failed => {this}.AssetReference is null");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
GameObject goInst = AssetReference.LoadAsset<GameObject>(assetPath, parentTrans,out var handle);
|
GameObject goInst = AssetReference.LoadAsset<GameObject>(assetPath, parentTrans);
|
||||||
Handle = handle;
|
|
||||||
return CreateWidget<T>(goInst, visible);
|
return CreateWidget<T>(goInst, visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user