Search Unity

Wasted memory question

Discussion in 'Asset Bundles' started by User340, Aug 3, 2019.

  1. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Does loading the same asset multiple times from the same bundle result in wasted memory?
     
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    For assets, it will see it is already loaded and not load it again. For scenes, it depends on if you used Additive loading or not.
     
  3. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    How about prefabs?
     
  4. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Prefabs don't exist at runtime, they are treated as just standard assets so those same conditions apply.
     
    User340 likes this.