Unity-Technologies / Addressables-Sample

Demo project using Addressables package
1.29k stars 298 forks source link

Loading/Unloading Addressable Prefabs based on Camera Location #65

Open zmays opened 2 years ago

zmays commented 2 years ago

On this forum here, this is mentioned:

In our own prototyping the best model we've come up with is a script that takes all the game objects on a scene, makes them prefabs, then replaces them with a proxy. That proxy can then have a script on it that instantiates the addressable prefab based on the camera's location. We don't yet have a clean and shareable version of this script, but are working on a demo to put in our Samples github.

Is this the repo that code would be in? I can't seem to find it. I'm trying to do something like this in order to help with memory management for a webgl build, so even having the non-clean version of wherever that was left off at would be helpful.

Thanks!