docs.unity3d.com
    目次を表示する/隠す

    Struct MRPlane

    Provides a template for tracked plane data

    Namespace: Unity.MARS.Data
    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<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
    Overrides
    ValueType.GetHashCode()

    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
    Overrides
    ValueType.ToString()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)