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

    Class LayerPlaneData

    Inheritance
    Object
    LayerPlaneData
    MRLayerPlaneData
    Namespace: Unity.MARS
    Syntax
    public class LayerPlaneData

    Constructors

    LayerPlaneData(PlaneVoxel)

    Declaration
    protected LayerPlaneData(PlaneVoxel startingVoxel)
    Parameters
    Type Name Description
    PlaneVoxel startingVoxel

    Fields

    CrossLayer

    Is this plane included in the layer above it due to a cross-layer merge?

    Declaration
    public bool CrossLayer
    Field Value
    Type Description
    Boolean

    Vertices

    XZ vertices of the plane, relative to the layer origin

    Declaration
    public readonly List<Vector3> Vertices
    Field Value
    Type Description
    List<Vector3>

    Voxels

    Coordinates of voxels that contribute to this plane

    Declaration
    public readonly HashSet<Vector2Int> Voxels
    Field Value
    Type Description
    HashSet<Vector2Int>

    YOffsetFromLayer

    Y offset of the plane, relative to the layer origin

    Declaration
    public float YOffsetFromLayer
    Field Value
    Type Description
    Single

    Methods

    AddVoxel(PlaneVoxel)

    Declaration
    public void AddVoxel(PlaneVoxel voxel)
    Parameters
    Type Name Description
    PlaneVoxel voxel

    GetOrCreate(PlaneVoxel)

    Declaration
    public static LayerPlaneData GetOrCreate(PlaneVoxel startingVoxel)
    Parameters
    Type Name Description
    PlaneVoxel startingVoxel
    Returns
    Type Description
    LayerPlaneData
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)