Fixed the bug for AssetsGroup

Fixed the bug for AssetsGroup
This commit is contained in:
ALEXTANG
2023-06-23 00:00:58 +08:00
parent 6c46f3e5fd
commit be531bfad0

View File

@@ -325,7 +325,7 @@ namespace TEngine
{ {
if (typeof(T) == typeof(GameObject)) if (typeof(T) == typeof(GameObject))
{ {
GameObject ret = assetHandleData.Handle.InstantiateSync(); GameObject ret = assetHandleData.Handle.InstantiateSync(parent);
return ret as T; return ret as T;
} }
else else