Class SDF3Line
Draws three lines connected together, giving you four control points (start, mid1, mid2, end). Rendered in SDF (signed distance field).
Assembly: MouseDance.Runtime.dll
Syntax
public class SDF3Line : 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 mid2)
Parameters
SetThirdLine(Vector2, Vector2)
Declaration
public void SetThirdLine(Vector2 mid2, Vector2 end)
Parameters
Show(Vector2, Vector2, Vector2, Vector2)
Declaration
public void Show(Vector2 start, Vector2 mid1, Vector2 mid2, Vector2 end)
Parameters
Extension Methods