mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update ResourceManager.cs
This commit is contained in:
@@ -343,7 +343,7 @@ namespace TEngine
|
|||||||
|
|
||||||
if (typeof(T) == typeof(GameObject))
|
if (typeof(T) == typeof(GameObject))
|
||||||
{
|
{
|
||||||
GameObject ret = handle.InstantiateSync();
|
GameObject ret = handle.InstantiateSync(parent);
|
||||||
AssetReference.BindAssetReference(ret, handle, assetName);
|
AssetReference.BindAssetReference(ret, handle, assetName);
|
||||||
return ret as T;
|
return ret as T;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user