Author Topic: Reference atlases thoughout scenes  (Read 1454 times)


  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Reference atlases thoughout scenes
« on: March 10, 2015, 11:21:28 AM »
This is a bit complicated question, at least for me.
It's about references and pointers in Unity when handling reference atlases.

Let's consider this sceneario:
- Reference Atlas "Ref" point to normal atlas "SD-Atlas"
- Scene 1 using Ref.
- Scene 2 using Ref.
- In scene 1 I update Ref with "HD-Atlas".
- I move to scene 2.
Will Ref point to HD or SD Atlas now?

My concern is: when you have 2 gameObject in Unity in 2 different scenes (which are the same) and you modify one of them. Then, if you change the scene, this update is gone, since each scene loads the default settings.  However, references altases are not designed to work this way. So, how can they do it? How can they "save data" between scenes?
Game developer on Casual Arena.


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Reference atlases thoughout scenes
« Reply #1 on: March 10, 2015, 08:44:46 PM »
It will point to HD, assuming you changed it on the Ref prefab. Changing a reference alters a variable inside the script attached to the prefab.