- Home /
Pixel Perfect UI Element in Relative Screen Position?
Hi,
I have a certain graphic (for example, 100x100 button image) that I want to place at a relative screen position (the top-right corner of the screen).
If I use a component such as "Reference Resolution", than the button will also be resized, not just repositioned.
Is there a codeless way to position elements in such a way?
Hi, as far as I know, the reference resolution component is used to resize UI elements & fonts according to resolution (not position them at the right place). I don't know if it's possible to exclude an element from the effects of this component. If you need it on some component but not others, maybe the solution is to have 2 canvas, one with a reference resolution component and the other not.
To place an image relative to the top right corner of the screen, you don't need the reference resolution component: you just need to setup the rectTransform component's Anchors http://unity3d.com/learn/tutorials/modules/beginner/ui/rect-transform
Your answer
Follow this Question
Related Questions
What's your equivalent of old GUIStyle ? 0 Answers
Display text above prefabs in Unity 4.6 0 Answers
Graphic problem with UI Text 2 Answers
UI is not visible on Android lollipop after upgrading from 4.6 to 5. 0 Answers
OnPointerExit Not Being Triggered 1 Answer