Game Development Reference
In-Depth Information
So we have our health bar; what about our other requirements? For these, we'll
use our stretching Anchors. Select the Slider in the hierarchy and then click on the
Anchor Presets button. Once it's open, select the top and stretch option, as shown in
following screenshot:
Now you have two options when selecting the preset: you can just click on it to alter
the Anchor positions, or you can hold the Alt key and also move the GameObject,
which will give you either of the following results:
As you can see, in both instances, we still need to do some work to position our
health bar how we want it to be; you just choose the path of least resistance for
what you want to achieve.
 
Search WWH ::




Custom Search