Hi, I am making a game in JS that uses borders on all 4 sides to bounce a projectile. The borders width and height is not important as those i size manually (simple cubes with textures).
Is there a way i can place some sort of JS code snippet on each border to make sure it is always glued to the very edge of the screen as my game being played in different resolutions?
Thank you! 
If(Screen.width == 1024)
PutBordersAt1024();
Thank you for your reply, is there a dynamic way to detect players resolution? and then use that value to move the borders.
Hiya! I found exactly what i needed! I asked for JS but this works perfect! Dynamically positions gui and game objects based on any resolution…
http://pixelplacement.com/2011/05/13/simplifying-screen-positioning-in-unity/
fantastic unity package!