C# Класс Nodify.Editor.NodifyEditorUtilities

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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