Hiya, hope you're all well.
I've got a brain stretcher...
My little spaceship fires lasers, which can be upgraded through 5 levels of power. Here it is at level 1, a single laser...
The laser object exists as a pooled (Pool Boss) prefab, and uses the Draw Line action...
With each level of upgrade I'd like to change the colour/material of the Prefab so the change in power level is clearly indicated in the gameplay.
I've got the power lever system sorted out, so as you upgrade, the damage done increases, the issue I'm having is I'd like the material to be updated, on all the Pooled objects before they are spawned, however, the objects are disabled (of course) and I can't seem to add them to an array or 'find' them. Know what I mean?
I thought I could just make 5 different Prefabs of the Laser (LASER1, LASER2, LASER3 etc) , each with a different colour/material and depending on the upgrade level, Pool the corresponding Prefab. I think this would work.
I guess I'd like to streamline the process, and if it's possible to just change the material, that would be better.
Thanks in advance.
J.