- Home /
Drawing a line in a sprite
Hello. I wan't to have a crosshair, that has moving elements. It is a circle which has 2 lines growing from the center to the border bases on a float value between [0,1].
The circle is a sprite and currently the 2 lines are drawn with line renderers.
My biggest question is: Is there a better way to do this in Unity?
Also this system was working fine while the sprite was simply put in my 3d world, but now I want to move it to the new Canvas system. There if I use Screen Space - Camere, only the Sprite is rendered but not the lines.
Your answer
Follow this Question
Related Questions
Deleting portions of a Line Renderer Line And / Or Combining Lines into one object 0 Answers
How to check of a line renderer collides with ground ? 1 Answer
Draw Puzzle Lines Like Hitman Go Game 1 Answer
Starting and Ending points of LineRenderer 1 Answer
Canvas Graphics raycaster, prevent 2d and 3d physic raycast 0 Answers