This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drawing a line with UITK https://forum.unity.com/threads/drawing-a-line-with-uitk.1193470/ | |
public class LineDrawer : VisualElement | |
{ | |
private Vector3 startPos, endPos; | |
private float thickness; | |
public LineDrawer(Vector3 pos1, Vector3 pos2, float width) | |
{ | |
startPos = pos1; | |
endPos = pos2; |