docs.unity3d.com
    显示 / 隐藏目录

    Struct MRPlane

    Provides a template for tracked plane data

    Namespace: Unity.MARS
    Syntax
    [Serializable]
    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)

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)