Tanoda
LineDrawer Class Reference
Inheritance diagram for LineDrawer:

Public Member Functions

LineObject AddLine ()
 
void RemoveLine (string lineId)
 
void RemoveLine (LineObject lineObj)
 
Vector2 GetCanvasSize ()
 
Vector2 GetCanvasOffset ()
 
void ReDraw (string id)
 
void StartConnection (RectTransform startRect, string outputID, bool blue=false)
 
LineObject EndConnection (RectTransform endRect, string inputID, bool weldParent=false)
 
void EndConnection ()
 
void DragConnection (Vector2 position)
 
List< KeyValuePair< string, LineObject > > GetLinesByActionId (string id)
 
Vector3 Divide (Vector3 x, Vector3 y)
 
Vector3 Divide (float x, Vector3 y)
 
Vector3 Divide (Vector3 x, float y)
 

Public Attributes

GameObject UIParent
 
GameObject linePrefab
 
Canvas canvas
 
float LineWidth = 8.95f
 

Properties

static LineDrawer Instance [get]
 

Detailed Description

Definition at line 8 of file LineDrawer.cs.

Member Function Documentation

◆ AddLine()

LineObject LineDrawer.AddLine ( )

Definition at line 172 of file LineDrawer.cs.

◆ Divide() [1/3]

Vector3 LineDrawer.Divide ( float  x,
Vector3  y 
)

Definition at line 341 of file LineDrawer.cs.

◆ Divide() [2/3]

Vector3 LineDrawer.Divide ( Vector3  x,
float  y 
)

Definition at line 346 of file LineDrawer.cs.

◆ Divide() [3/3]

Vector3 LineDrawer.Divide ( Vector3  x,
Vector3  y 
)

Definition at line 336 of file LineDrawer.cs.

◆ DragConnection()

void LineDrawer.DragConnection ( Vector2  position)

Definition at line 316 of file LineDrawer.cs.

◆ EndConnection() [1/2]

void LineDrawer.EndConnection ( )

Definition at line 311 of file LineDrawer.cs.

◆ EndConnection() [2/2]

LineObject LineDrawer.EndConnection ( RectTransform  endRect,
string  inputID,
bool  weldParent = false 
)

Definition at line 284 of file LineDrawer.cs.

◆ GetCanvasOffset()

Vector2 LineDrawer.GetCanvasOffset ( )

Definition at line 230 of file LineDrawer.cs.

◆ GetCanvasSize()

Vector2 LineDrawer.GetCanvasSize ( )

Definition at line 225 of file LineDrawer.cs.

◆ GetLinesByActionId()

List< KeyValuePair< string, LineObject > > LineDrawer.GetLinesByActionId ( string  id)

Definition at line 329 of file LineDrawer.cs.

◆ ReDraw()

void LineDrawer.ReDraw ( string  id)

Definition at line 235 of file LineDrawer.cs.

◆ RemoveLine() [1/2]

void LineDrawer.RemoveLine ( LineObject  lineObj)

Definition at line 219 of file LineDrawer.cs.

◆ RemoveLine() [2/2]

void LineDrawer.RemoveLine ( string  lineId)

Definition at line 214 of file LineDrawer.cs.

◆ StartConnection()

void LineDrawer.StartConnection ( RectTransform  startRect,
string  outputID,
bool  blue = false 
)

Definition at line 262 of file LineDrawer.cs.

Member Data Documentation

◆ canvas

Canvas LineDrawer.canvas

Definition at line 12 of file LineDrawer.cs.

◆ linePrefab

GameObject LineDrawer.linePrefab

Definition at line 11 of file LineDrawer.cs.

◆ LineWidth

float LineDrawer.LineWidth = 8.95f

Definition at line 13 of file LineDrawer.cs.

◆ UIParent

GameObject LineDrawer.UIParent

Definition at line 10 of file LineDrawer.cs.

Property Documentation

◆ Instance

LineDrawer LineDrawer.Instance
staticget

Definition at line 16 of file LineDrawer.cs.


The documentation for this class was generated from the following file: