Class SelectPathFaces
Namespace: UnityEngine.ProBuilder
Syntax
public static class SelectPathFaces
Methods
GetPath(ProBuilderMesh, Int32, Int32)
Calculates the indexes of all faces in the shortest path between start and end
Declaration
public static List<int> GetPath(ProBuilderMesh mesh, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh of the object |
Int32 | start | The index of the starting face |
Int32 | end | The index of the ending face |
Returns
Type | Description |
---|---|
List<Int32> | The indexes of all faces |