Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Can Addressables be used to stop crashing my game

Discussion in 'Addressables' started by mfatihbarut, Nov 16, 2021.

  1. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,058
    Hi all,
    As far as I see, the android system is very sensitive about RAM usage.
    And if you even use the memory a little bit more than you actually allowed to use, it immediately kicks you out.
    Can addressable let us get rid of this risk?
    By not using memory at all?
    Forexample I have a static environment and I am planing to turn it to addressable prefab because of this reason?
    What do you think?
    Is it right choice?
     
  2. LilMako17

    LilMako17

    Joined:
    Apr 10, 2019
    Posts:
    43
    Loading an asset will always allocate memory, there's no away around it. The key to managing memory to stop crashing is UNLOADING assets when you are not currently using them.

    Addressables is a framework built on top of Unity's existing Asset Bundle system that can aid in the management of organizing assets into definable groups so you can load and unload groups of assets easier, but the library itself won't inherently save you any memory.
     
  3. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,058
    how can I do that effectively?