Class SDF2Line
Draws two lines connected together, giving you three control points (start, mid, end). Rendered in SDF (signed distance field).
Assembly: MouseDance.Runtime.dll
Syntax
public class SDF2Line : MonoBehaviour
Methods
Declaration
public void Init(Camera viewCamera, RectTransform canvasTransform, RectTransform screenAdjust)
Parameters
SetColour(Color)
Declaration
public void SetColour(Color colour)
Parameters
Type |
Name |
Description |
Color |
colour |
|
SetFirstLine(Vector2, Vector2)
Declaration
public void SetFirstLine(Vector2 start, Vector2 mid1)
Parameters
SetOpacity(Single, Boolean)
Declaration
public void SetOpacity(float alpha, bool applyImmediately = true)
Parameters
SetSecondLine(Vector2, Vector2)
Declaration
public void SetSecondLine(Vector2 mid1, Vector2 end)
Parameters
Show(Vector2, Vector2, Vector2)
Declaration
public void Show(Vector2 start, Vector2 mid1, Vector2 end)
Parameters
Extension Methods