docs.unity3d.com
    Show / Hide Table of Contents

    Struct MRPlane

    Provides a template for tracked plane data

    Namespace: Unity.MARS.Data
    Syntax
    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<Int32>

    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
    Implements
    IMRTrackable.id

    pose

    The pose of this plane

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

    Methods

    Equals(MRPlane)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    GetWorldBounds(IUsesCameraOffset, Single)

    Get the bounds of the MRPlane

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

    Camera offset

    Single minBound

    Minimum bounds size

    Returns
    Type Description
    Bounds

    Bounds of the MRPlane

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023