docs.unity3d.com
    Show / Hide Table of Contents

    Struct MarsMarkerDefinition

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

    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
    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