C# Class Rondo.NodeEditor.System.NodeUtils

Show file Open project: Randehh/Unity-NodeEditor

Public Methods

Method Description
ColorToTex ( Color col ) : Texture2D

Creates a texture with just a single color

DrawNodeCurve ( Rect start, Rect end ) : void

Draws a curve on the screen from one rectangle to the other

SnapRectToRect ( Rect rect, Rect snapTo ) : void

Snaps a rectangle to another rectangle

Method Details

ColorToTex() public static method

Creates a texture with just a single color
public static ColorToTex ( Color col ) : Texture2D
col Color
return UnityEngine.Texture2D

DrawNodeCurve() public static method

Draws a curve on the screen from one rectangle to the other
public static DrawNodeCurve ( Rect start, Rect end ) : void
start UnityEngine.Rect
end UnityEngine.Rect
return void

SnapRectToRect() public static method

Snaps a rectangle to another rectangle
public static SnapRectToRect ( Rect rect, Rect snapTo ) : void
rect UnityEngine.Rect The rectangle to snap
snapTo UnityEngine.Rect The rectangle to snap to
return void