Function Script

This script, named F.js, contains a useful function which can be used anywhere. There does not need to be an instance of this attached to an object in the scene in order to be used. The only scripts in this package which use this one are ControlScript and HUDScript.

Functions
NormalViewPos(Vector2) : Vector2 - Useful for positioning GUI elements, it takes a Vector2 with percentages as the input (values ranging from 0 to 1), and returns a Vector2 with pixel coordinates. This makes it easy for GUI elements to scale with different resolutions.