Introduction
This component changes all registered UI Billboard elements to face the Camera that is assigned in Resource And Production Manager. This is extremely useful for most game types that use world UI with a moving Camera.
Registered components consist of the following –
StatBar
PopupSpawner
FPSPopupSpawner
PlayerInteractionIndicator
Unregistering for destroyed gameobjects is handled automatically.
Setting up
There is a prefab UIBillboardManager located in /prefabs/Managers.
Setting up otherwise is as simple as adding the component to a gameobject.
Settings
Continuous Update
Applies rotational changes to all registered UI elements during LateUpdate. Will have some overhead depending on how many UI elements currently visible. This should certainly be used in an FPS setup so you can always clearly see all UI elements.
Scripting
/// <summary>
/// Registers a new Transform to manipulate the transform to face the camera. Will also Update it on Registering.
/// </summary>
/// <param name="t">The Transform to add</param>
public void Register(Transform t)