docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PlaneVoxel

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MARS.Data.Synthetic
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public struct PlaneVoxel

    Fields

    LayerCoordinates

    The column and row in the layer where this voxel exists

    Declaration
    public Vector2Int LayerCoordinates
    Field Value
    Type Description
    Vector2Int

    PointDensity

    Number of points within this voxel. A voxel only contributes to a plane if its point density exceeds a minimum threshold.

    Declaration
    public int PointDensity
    Field Value
    Type Description
    int

    PointYOffset

    Average local y offset of all points within this voxel. If a voxel is part of a plane, this value affects the y offset of the plane relative to the layer origin.

    Declaration
    public float PointYOffset
    Field Value
    Type Description
    float
    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)