C# 클래스 Nodify.Editor.NodifyEditorUtilities

파일 보기 프로젝트 열기: anneomcl/LetsMake 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
currentConnectingAnchor Anchor
currentDraggingAnchor Anchor
currentManipulatingNode Nodify.Runtime.Node
currentManipulatingNodeOffset Vector2
currentSelectedGroup Nodify.Runtime.NodeGroup

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
BeginZoomArea ( float zoomScale, Rect screenCoordsArea ) : Rect
ClosestPointOnRectangle ( Vector2 point, Rect rect ) : Vector2
CreateMenuSort ( CreateMenu a, CreateMenu b ) : int

Sorts the create menu using the Uri scheme.

DrawBezier ( Vector2 start, Vector2 end, Color color, float size, float bendiness = 50 ) : void

Draws a bezier with a specified bendiness.

Duplicate ( GameObject obj ) : GameObject

Duplicates the gameObject the same as the Unity way.

EndZoomArea ( ) : void
FindAnchorRenderer ( Type anchorType ) : object

Find the anchor renderer that best matches the anchor type.

FindNodeRenderer ( Type nodeType ) : object

Find a Rendering.NodeRenderer that matches the type of node to render.

FindNodeTypes ( ) : List

Finds all types that have the CreateMenu attribute. These should be type of Node.

FindStyleByName ( GUISkin skin, string styleName ) : GUIStyle

Iterates through the custom styles of a GUISkin and finds a custom style by name.

GetCurrentAssetPath ( ) : string

Gets the current asset path.

PointOnBezier ( Vector2 s, Vector2 e, Vector2 st, Vector2 et, float t ) : Vector2

Finds the point on the bezier curve at T.

PointOnBezier ( Vector2 s, Vector2 e, float t, float bendiness = 50 ) : Vector2

Finds a point on the Bezier curve at time T based on bendiness.

SafeDestroy ( GameObject gameObject ) : void

Destroys the gameobject in both Run mode and edit mode safely.

Truncate ( string source, int length, string trail = "..." ) : string

Returns a truncated version of a string based on additional parameters supplied.

메소드 상세

BeginZoomArea() 공개 정적인 메소드

public static BeginZoomArea ( float zoomScale, Rect screenCoordsArea ) : Rect
zoomScale float
screenCoordsArea UnityEngine.Rect
리턴 UnityEngine.Rect

ClosestPointOnRectangle() 공개 정적인 메소드

public static ClosestPointOnRectangle ( Vector2 point, Rect rect ) : Vector2
point Vector2
rect UnityEngine.Rect
리턴 Vector2

CreateMenuSort() 공개 정적인 메소드

Sorts the create menu using the Uri scheme.
public static CreateMenuSort ( CreateMenu a, CreateMenu b ) : int
a CreateMenu
b CreateMenu
리턴 int

DrawBezier() 공개 정적인 메소드

Draws a bezier with a specified bendiness.
public static DrawBezier ( Vector2 start, Vector2 end, Color color, float size, float bendiness = 50 ) : void
start Vector2 Start.
end Vector2 End.
color Color Color.
size float Size.
bendiness float Bendiness.
리턴 void

Duplicate() 공개 정적인 메소드

Duplicates the gameObject the same as the Unity way.
public static Duplicate ( GameObject obj ) : GameObject
obj UnityEngine.GameObject
리턴 UnityEngine.GameObject

EndZoomArea() 공개 정적인 메소드

public static EndZoomArea ( ) : void
리턴 void

FindAnchorRenderer() 공개 정적인 메소드

Find the anchor renderer that best matches the anchor type.
public static FindAnchorRenderer ( Type anchorType ) : object
anchorType System.Type Anchor type.
리턴 object

FindNodeRenderer() 공개 정적인 메소드

Find a Rendering.NodeRenderer that matches the type of node to render.
public static FindNodeRenderer ( Type nodeType ) : object
nodeType System.Type Node type.
리턴 object

FindNodeTypes() 공개 정적인 메소드

Finds all types that have the CreateMenu attribute. These should be type of Node.
public static FindNodeTypes ( ) : List
리턴 List

FindStyleByName() 공개 정적인 메소드

Iterates through the custom styles of a GUISkin and finds a custom style by name.
public static FindStyleByName ( GUISkin skin, string styleName ) : GUIStyle
skin UnityEngine.GUISkin
styleName string
리턴 UnityEngine.GUIStyle

GetCurrentAssetPath() 공개 정적인 메소드

Gets the current asset path.
public static GetCurrentAssetPath ( ) : string
리턴 string

PointOnBezier() 공개 정적인 메소드

Finds the point on the bezier curve at T.
public static PointOnBezier ( Vector2 s, Vector2 e, Vector2 st, Vector2 et, float t ) : Vector2
s Vector2 S.
e Vector2 E.
st Vector2 St.
et Vector2 Et.
t float T.
리턴 Vector2

PointOnBezier() 공개 정적인 메소드

Finds a point on the Bezier curve at time T based on bendiness.
public static PointOnBezier ( Vector2 s, Vector2 e, float t, float bendiness = 50 ) : Vector2
s Vector2 S.
e Vector2 E.
t float T.
bendiness float Bendiness.
리턴 Vector2

SafeDestroy() 공개 정적인 메소드

Destroys the gameobject in both Run mode and edit mode safely.
public static SafeDestroy ( GameObject gameObject ) : void
gameObject UnityEngine.GameObject
리턴 void

Truncate() 공개 정적인 메소드

Returns a truncated version of a string based on additional parameters supplied.
public static Truncate ( string source, int length, string trail = "..." ) : string
source string
length int
trail string
리턴 string

프로퍼티 상세

currentConnectingAnchor 공개적으로 정적으로 프로퍼티

public static Anchor currentConnectingAnchor
리턴 Anchor

currentDraggingAnchor 공개적으로 정적으로 프로퍼티

public static Anchor currentDraggingAnchor
리턴 Anchor

currentManipulatingNode 공개적으로 정적으로 프로퍼티

public static Node,Nodify.Runtime currentManipulatingNode
리턴 Nodify.Runtime.Node

currentManipulatingNodeOffset 공개적으로 정적으로 프로퍼티

public static Vector2 currentManipulatingNodeOffset
리턴 Vector2

currentSelectedGroup 공개적으로 정적으로 프로퍼티

public static NodeGroup,Nodify.Runtime currentSelectedGroup
리턴 Nodify.Runtime.NodeGroup