Class SDFLine
Draws a straight line with two endpoints. Rendered in SDF (signed distance field).
Assembly: MouseDance.Runtime.dll
Syntax
public class SDFLine : MonoBehaviour
Methods
FastShow(Vector2, Vector2)
Declaration
public void FastShow(Vector2 start, Vector2 end)
Parameters
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 |
|
SetOpacity(Single)
Declaration
public void SetOpacity(float alpha)
Parameters
Type |
Name |
Description |
Single |
alpha |
|
Show(Vector2, Vector2)
Declaration
public void Show(Vector2 start, Vector2 end)
Parameters
Extension Methods