- Home /
Duplicate Question: http://answers.unity3d.com/questions/446906/problem-with-gui-circle-thickness.html
Problem With GUI Circle Thickness
Imagine you have an objective (let's say it's a ball) within a 3D world, and a GUI texture that draws a circle around the ball in order to highlight and guide you to it. As the camera moves farther away, the ball appears smaller and therefore so must the circle. As the camera moves closer, the ball appears larger and again, therefore so must the circle. This would appear to be a simple matter of scaling the texture, but after trying that I found it looks rather odd because the thickness of the circle is not preserved as it scales. How can I change the size of the circle without also changing the thickness? GUI textures have a border feature which solves this problem for rectangular objects, but it's not much help for GUI elements that have circular borders. Technically I could just generate a new texture every frame, but this is of course a highly inefficient solution. Any ideas would be greatly appreciated.
Follow this Question
Related Questions
Problem With GUI Circle Thickness 1 Answer
GUI box texture resizes itself 1 Answer
GUI.Button Texture Problem - Simple? 2 Answers
Texture Size doesn't match collider size 0 Answers