docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MRBody

    Provides a template for tracked body data

    Implements
    IMRTrackable
    IEquatable<MRBody>
    Inherited Members
    ValueType.Equals(object)
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    [Obsolete("MRBody is obsolete. Use MarsBody instead")]
    public struct MRBody : IMRTrackable, IEquatable<MRBody>

    Constructors

    MRBody(Pose)

    Create a trackable MRBody data in MARS

    Declaration
    public MRBody(Pose pose)
    Parameters
    Type Name Description
    Pose pose

    Pose of the trackable MRBody.

    Properties

    id

    The ID of this body as determined by the provider

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

    landmarkBounds

    Bounds of available body landmarks

    Declaration
    public Dictionary<MRBodyLandmark, Rect> landmarkBounds { readonly get; set; }
    Property Value
    Type Description
    Dictionary<MRBodyLandmark, Rect>

    landmarkPoses

    World poses of available body landmarks

    Declaration
    public Dictionary<MRBodyLandmark, Pose> landmarkPoses { readonly get; set; }
    Property Value
    Type Description
    Dictionary<MRBodyLandmark, Pose>

    pose

    The pose of this body

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

    Methods

    Equals(MRBody)

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

    GetHashCode()

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

    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)