docs.unity3d.com
    显示 / 隐藏目录

    Class PlaneUtils

    Inheritance
    Object
    PlaneUtils
    Namespace: Unity.MARS
    Syntax
    public static class PlaneUtils

    Methods

    GeneratePlaneWithBorders(MRPlane, out List<Vector2>, PlaneEdgeSettings)

    Declaration
    public static MRPlane GeneratePlaneWithBorders(MRPlane source, out List<Vector2> texCoords2, PlaneEdgeSettings settings)
    Parameters
    Type Name Description
    MRPlane source
    List<Vector2> texCoords2
    PlaneEdgeSettings settings
    Returns
    Type Description
    MRPlane

    TriangulatePlaneFromVertices(in Pose, List<Vector3>, List<Int32>, List<Vector3>, List<Vector2>)

    Triangulates the polygon and tiles the UV data correctly from the polygon center. Sets normals to local up.

    Declaration
    public static void TriangulatePlaneFromVertices(in Pose pose, List<Vector3> vertices, List<int> indices, List<Vector3> normals, List<Vector2> texCoords)
    Parameters
    Type Name Description
    Pose pose

    Input Pose of the source plane

    List<Vector3> vertices

    Input Vertices of the polygon.

    List<Int32> indices

    Output Index buffer to fill for triangulation

    List<Vector3> normals

    Output for vertex normals

    List<Vector2> texCoords

    Output uv coordinates.

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)