Setting references to a prefab at runtime

Hey guys,

I have a bit of a problem. I’ll setup the situation. Basically I want to set a group of UI GOs (in the scene) to a prefab containing multiple GOs. Each UI GO pairs up with the prefab GOs in a particular order. UI1 to Prefab GO1, UI 2 to Prefab GO2. The prefab instantiates multiple times in the scene as it’s destroyed. How do I tackle this problem? It’s wracking my brain.

Privacy & Terms