Question by 
               gokhansahiner98 · Mar 27, 2020 at 03:28 PM · 
                c#canvasdraw  
              
 
              How can i draw line for word game
Hi I making word game like word cookies. i want draw line for connect to words button like this picture. I cant draw line because buttons in canvas and canvas position different then camera position. How can i draw line on canvas 
I tried this code but i cant. because the button position is on the canvas, the line is drawn in different places
             createLine();
             mousePos = button1.transform.position ;
             mousePos.z = 0;
             line.SetPosition(0, mousePos);
             line.SetPosition(1, mousePos);
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Changing order in layers at runtime with a coroutine 0 Answers
How to make mesh render objects overlay UI? 1 Answer
Debugging with drawing a radius 1 Answer
C# Touch Input with Raycast on Interactive Map to toggle Canvas 0 Answers
Canvas to appear on Airtap Gesture using IInputClickHandler 0 Answers