'Easy Screen Align' does what it's title suggests. It's a simple script for aligning elements to the screen.
The asset is twofold, containing a script for detecting if the screen has resized and another for aligning an element to the screen.
It's incredibly configurable and versatile, allowing you to set the anchor point for both the screen and the object.
The align script can trigger on screen resize, camera move or all the time.
It works with 2D UI elements, Sprites, 3D meshes, orthographic and perspective cameras (plus much more!).
Features:
-You can align both 2D and 3D objects to the screen.
-All variables have been set to public, to allow you to set them via your own scripts.
-Set the anchor point of your element, relative to how it's rendered on screen. So you can, for example, align the top-right of your element to the top-right of the screen.
-The detect resize script has been optimised via couroutines and made available to be used in your own scripts.
-Options that allow you to lerp the alignment of your element, for smoother motion.
-Trigger on camera motion, screen resize or all the time.
-Force the element to look at the camera or the screen normal ("face" the screen).
-Use this script and save yourself time!
Possible uses:
-Ensure a 2D UI stays aligned to the screen at all times.
-A "pick up object" effect for FPS games.
-Using the DetectResize script to optimize your own custom scripts.
-Lerp the motion, allowing the UI to shake along with the camera when using a screen shake effect.
-Have an object always face the camera or screen normal.
-Use as a base for your own screen align scripts (or ones that require similar functionality).
-Use the detect resize script to enhance your own scripts.
-Align instructions or hints to a camera in a VR game.
Package Contains:
-Align element script
-Detect resize script
-Documentation
-Example prefabs
-Example scenes
If you have any issues or improvements for us, please let us know via our websites contact page - http://eageramoeba.co.uk/Contact/
------------------------------
Visit our website for more info - eageramoeba.co.uk/EasyScreenAlign
Check our our Auto Quality solution (AQHAT) for Unity 4.5+ - http://u3d.as/CdY
Follow us on social networks for updates regarding this and future products - @EagerAmoeba