docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MarkerConstants

    Image marker size constants.

    Inheritance
    object
    MarkerConstants
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class MarkerConstants

    Fields

    MarkerSizeOptions

    Declaration
    public static readonly string[] MarkerSizeOptions
    Field Value
    Type Description
    string[]

    MarkerSizeOptionsValuesInMeters

    Declaration
    public static readonly Vector2[] MarkerSizeOptionsValuesInMeters
    Field Value
    Type Description
    Vector2[]

    Properties

    MinimumPhysicalMarkerSizeHeightInMeters

    Declaration
    public static float MinimumPhysicalMarkerSizeHeightInMeters { get; }
    Property Value
    Type Description
    float

    MinimumPhysicalMarkerSizeInCentimeters

    Declaration
    public static Vector2 MinimumPhysicalMarkerSizeInCentimeters { get; }
    Property Value
    Type Description
    Vector2

    MinimumPhysicalMarkerSizeWidthInMeters

    Declaration
    public static float MinimumPhysicalMarkerSizeWidthInMeters { get; }
    Property Value
    Type Description
    float

    PostcardHeightInMeters

    Declaration
    public static float PostcardHeightInMeters { get; }
    Property Value
    Type Description
    float

    PostcardWidthInMeters

    Declaration
    public static float PostcardWidthInMeters { get; }
    Property Value
    Type Description
    float

    Methods

    GetSelectedMarsMarkerSizeOption(Vector2)

    Get the size option index from the MarkerConstants

    Declaration
    public static int GetSelectedMarsMarkerSizeOption(Vector2 sizeToCompare)
    Parameters
    Type Name Description
    Vector2 sizeToCompare

    Size to compare to size constants

    Returns
    Type Description
    int

    The selected size option index, or 0 for a custom size

    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)