Hi! I've been hitting a wall working on this today, hopefully someone can shed some light! I'm storing an UI element gameobject into a global variable at runtime, and then trying to modify its scale from a bunch of prefabs. It's a progress bar for hacking enemies, and the enemies need to talk to the UI and scale the progress bar as they're getting hacked.
It doesn't seem to matter if the enemies are instanced or not, it seems like the only one who can actually scale the UI progress bar like it's supposed to is the last one added to the hierarchy.
It seems like the enemy FSMs actually pick up the global they're supposed to, but for some reason the scale fails; very confusing! Any ideas about why this happens would be highly appreciated!