hi, i am using addressables to load and unload scenes. Addressables.UnloadSceneAsync unloading the scene properly, but every time i load and unload, some usage in Untracked section of memory profiler adds up. The code is simple, any help would be great for me
Here’s the code:
public AssetReference sceneRef;
AsyncOperationHandle<SceneInstance> handle;
private void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
handle = Addressables.LoadSceneAsync(sceneRef, LoadSceneMode.Additive);
}
if(Input.GetKeyDown(KeyCode.S))
{
Addressables.UnloadSceneAsync(handle, UnloadSceneOptions.UnloadAllEmbeddedSceneObjects, true);
}
}
`