docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LayerPlaneData

    Inheritance
    object
    LayerPlaneData
    MRLayerPlaneData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Data.Synthetic
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    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
    bool

    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
    float

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)