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

    Struct MarsMarkerDefinition

    Namespace: Unity.MARS
    Syntax
    [Serializable]
    public struct MarsMarkerDefinition : IEquatable<MarsMarkerDefinition>

    Properties

    Label

    An optional label associated with this marker, for a user to identify a particular marker from script in the case of a condition that matches multiple images.

    Declaration
    public string Label { get; set; }
    Property Value
    Type Description
    String

    MarkerId

    The Guid associated with this marker. The guid is generated for each new marker definition created.

    Declaration
    public readonly Guid MarkerId { get; }
    Property Value
    Type Description
    Guid

    Size

    The size of the marker image, in meters. This can improve marker detection, and may be required by some platforms.

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

    SpecifySize

    Must be set to true for Size to be used.

    Declaration
    public bool SpecifySize { get; }
    Property Value
    Type Description
    Boolean

    Texture

    The source texture whose image this marker represents.

    Declaration
    public Texture2D Texture { get; set; }
    Property Value
    Type Description
    Texture2D

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(MarsMarkerDefinition)

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

    GetHashCode()

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