C# Класс UnityEditor.PolygonEditor

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

Открытые методы

Метод Описание
GetNearestEdge ( Vector2 point, int &pathIndex, int &pointIndex0, int &pointIndex1, float &distance, bool loop ) : bool
GetNearestPoint ( Vector2 point, int &pathIndex, int &pointIndex, float &distance ) : bool
InsertPoint ( int pathIndex, int pointIndex, Vector2 value ) : void
SetPoint ( int pathIndex, int pointIndex, Vector2 value ) : void
TestPointMove ( int pathIndex, int pointIndex, Vector2 movePosition, bool &leftIntersect, bool &rightIntersect, bool loop ) : void

Приватные методы

Метод Описание
ApplyEditing ( Collider2D collider ) : void
GetPathCount ( ) : int
GetPoint ( int pathIndex, int pointIndex, Vector2 &point ) : bool
GetPointCount ( int pathIndex ) : int
INTERNAL_CALL_GetNearestEdge ( Vector2 &point, int &pathIndex, int &pointIndex0, int &pointIndex1, float &distance, bool loop ) : bool
INTERNAL_CALL_GetNearestPoint ( Vector2 &point, int &pathIndex, int &pointIndex, float &distance ) : bool
INTERNAL_CALL_InsertPoint ( int pathIndex, int pointIndex, Vector2 &value ) : void
INTERNAL_CALL_SetPoint ( int pathIndex, int pointIndex, Vector2 &value ) : void
INTERNAL_CALL_TestPointMove ( int pathIndex, int pointIndex, Vector2 &movePosition, bool &leftIntersect, bool &rightIntersect, bool loop ) : void
RemovePoint ( int pathIndex, int pointIndex ) : void
StartEditing ( Collider2D collider ) : void
StopEditing ( ) : void

Описание методов

GetNearestEdge() публичный статический Метод

public static GetNearestEdge ( Vector2 point, int &pathIndex, int &pointIndex0, int &pointIndex1, float &distance, bool loop ) : bool
point Vector2
pathIndex int
pointIndex0 int
pointIndex1 int
distance float
loop bool
Результат bool

GetNearestPoint() публичный статический Метод

public static GetNearestPoint ( Vector2 point, int &pathIndex, int &pointIndex, float &distance ) : bool
point Vector2
pathIndex int
pointIndex int
distance float
Результат bool

InsertPoint() публичный статический Метод

public static InsertPoint ( int pathIndex, int pointIndex, Vector2 value ) : void
pathIndex int
pointIndex int
value Vector2
Результат void

SetPoint() публичный статический Метод

public static SetPoint ( int pathIndex, int pointIndex, Vector2 value ) : void
pathIndex int
pointIndex int
value Vector2
Результат void

TestPointMove() публичный статический Метод

public static TestPointMove ( int pathIndex, int pointIndex, Vector2 movePosition, bool &leftIntersect, bool &rightIntersect, bool loop ) : void
pathIndex int
pointIndex int
movePosition Vector2
leftIntersect bool
rightIntersect bool
loop bool
Результат void