Introduction
Similar to the PopupSpawner, but will place the Popup in front of the Resource Node when a Resource is triggered. It will also apply scaling depending on how far you are from the Resource Node, meaning you will always see the popup no matter how far you are away.
Unlike the PopupSpawner, this component really only works with Resource Nodes, when you are looking from the camera.
This component fits FPS style gameplay very well.
Setting up
There is a prefab FPSPopupSpawner located in /prefabs/UI.
Setting up without the prefab is easy and requires a Popup prefab, which is located in /prefabs/UI.
Popups parent directly under a transform created at runtime by the Resource And Production Manager for tidyness and for when the originating object gets destroyed, the popup does not go with it and has its own lifetime.
Settings
Popup Prefab
Assign a Popup prefab with a Popup component attached.
Distance Multiplier
Scales the Popup upon instantiation depending on how far the Resource Node is from the Camera. This setting will scale this value. A setting of 1 will consistantly keep the Popup the same size as the prefab is no matter how far from the Camera.
Rise Distance
How far the Popup will rise up once instantiated.
Rise Fade Duration
How long will it take for the Popup to rise and fade once instantiated.
Rise Curve
Assign a custom easing to the Popup over its Rise Fade Duration.
Hit Back Offset
How far back towards the Camera the Popup should be be instantiated. This can be useful for any clipping.