C# 클래스 Rondo.NodeEditor.System.NodeUtils

파일 보기 프로젝트 열기: Randehh/Unity-NodeEditor

공개 메소드들

메소드 설명
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

메소드 상세

ColorToTex() 공개 정적인 메소드

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

DrawNodeCurve() 공개 정적인 메소드

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
리턴 void

SnapRectToRect() 공개 정적인 메소드

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
리턴 void