Author Topic: UIAtlas.replacement loosing its reference with dynamically loaded Atlas  (Read 2369 times)

DragonWarrior

  • Guest
Hello,
  To save memory we are trying to load Atlas from bundles. I have setup reference atlas, & at runtime I change the atlas to the one that is loaded from a bundle. But this works only once. Once I play the game & stop, the reference atlas looses its reference. This is obvious, because the reference atlas is not in the memory any more.

What I want is, the UI to reset to its previous Atlas on stop.

Is this even possible?

Thanks,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
My guess is you are modifying a prefab here? Then the answer is no, it's not going to happen for you because prefabs are not a part of the scene, so there is no "going back" for them. You have to do it yourself.