docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MarsMarkerDefinition

    Implements
    IEquatable<MarsMarkerDefinition>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.dll
    Syntax
    [Serializable]
    [MovedFrom("Unity.MARS")]
    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
    bool

    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
    bool
    Overrides
    ValueType.Equals(object)

    Equals(MarsMarkerDefinition)

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

    GetHashCode()

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

    Implements

    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)