Hey,
I’m currently working on a little strategy game, so far so good, you can select and move the tanks, particle animations for shooting and smoke etc.
One minor confusing hiccup, however. The units above their heads have little billboards that should indicate their health. I’d like to scale this based on the units health.
Here is the line to do so:
transform.Find(“bb_Health”).transform.Scale.x = 3*((100-Health)/100);
However, Unity complains that “Scale” is not a member of Transform. I get the same error for “scale”
How do I alter the scale of the object realtime?
Cheers,
Thordis