Class SelectPathFaces | ProBuilder | 4.4.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class SelectPathFaces

    Inheritance
    Object
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023