docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MRPlane

    Provides a template for tracked plane data

    Implements
    IMRTrackable
    IEquatable<MRPlane>
    Inherited Members
    ValueType.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [Serializable]
    [MovedFrom("Unity.MARS")]
    public struct MRPlane : IMRTrackable, IEquatable<MRPlane>

    Fields

    indices

    (Optional) indices (triangles) for polygon extents Will be present if vertices are present

    Declaration
    public List<int> indices
    Field Value
    Type Description
    List<int>

    normals

    (Optional) normal vectors for polygon extents Will be present if vertices are present

    Declaration
    public List<Vector3> normals
    Field Value
    Type Description
    List<Vector3>

    textureCoordinates

    (Optional) texture coordinates (UVs) for polygon extents Will be present if vertices are present

    Declaration
    public List<Vector2> textureCoordinates
    Field Value
    Type Description
    List<Vector2>

    vertices

    (Optional) vertices for polygon extents

    Declaration
    public List<Vector3> vertices
    Field Value
    Type Description
    List<Vector3>

    Properties

    alignment

    The alignment of this plane (e.g. Horizontal, Vertical)

    Declaration
    public MarsPlaneAlignment alignment { get; set; }
    Property Value
    Type Description
    MarsPlaneAlignment

    center

    The center of this plane, in local space

    Declaration
    public Vector3 center { get; set; }
    Property Value
    Type Description
    Vector3

    extents

    The extents of this plane

    Declaration
    public Vector2 extents { get; set; }
    Property Value
    Type Description
    Vector2

    id

    The id of this plane as determined by the provider

    Declaration
    public MarsTrackableId id { get; set; }
    Property Value
    Type Description
    MarsTrackableId

    pose

    The pose of this plane

    Declaration
    public Pose pose { get; set; }
    Property Value
    Type Description
    Pose

    Methods

    Equals(MRPlane)

    Declaration
    public bool Equals(MRPlane other)
    Parameters
    Type Name Description
    MRPlane other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    GetWorldBounds(IUsesCameraOffset, float)

    Get the bounds of the MRPlane

    Declaration
    public Bounds GetWorldBounds(IUsesCameraOffset cameraOffset, float minBound)
    Parameters
    Type Name Description
    IUsesCameraOffset cameraOffset

    Camera offset

    float minBound

    Minimum bounds size

    Returns
    Type Description
    Bounds

    Bounds of the MRPlane

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Implements

    IMRTrackable
    IEquatable<T>
    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)