When I was using the latest version of Unity recently, I found that Unity2022.3.20f1 already supports asynchronous instantiation of objects, which can greatly reduce the lag of instantiating large objects.
I found that when using Addressables, although the instantiation logic is loaded asynchronously, it still uses synchronous instantiation.
So I would like to inquire if we will consider supporting asynchronous instantiation in the future?
namespace UnityEngine.ResourceManagement.ResourceProviders
{
public struct InstantiationParameters
{
/*
* ......... other code
*/
public TObject Instantiate<TObject>(TObject source) where TObject : Object
{
TObject result;
if (m_Parent == null)
{
if (m_SetPositionRotation)
result = Object.Instantiate(source, m_Position, m_Rotation);
else
result = Object.Instantiate(source);
}
else
{
if (m_SetPositionRotation)
result = Object.Instantiate(source, m_Position, m_Rotation, m_Parent);
else
result = Object.Instantiate(source, m_Parent, m_InstantiateInWorldPosition);
}
return result;
}
}
}