Search Unity

Wasted memory question

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

  1. HonorableDaniel

    HonorableDaniel

    Joined:
    Feb 28, 2007
    Posts:
    2,801
    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:
    223
    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. HonorableDaniel

    HonorableDaniel

    Joined:
    Feb 28, 2007
    Posts:
    2,801
    How about prefabs?
     
  4. Ryanc_unity

    Ryanc_unity

    Unity Technologies

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