docs.unity3d.com
    Show / Hide Table of Contents

    Class MarkerConstants

    Image marker size constants.

    Inheritance
    Object
    MarkerConstants
    Namespace: Unity.MARS.Data
    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
    Single

    MinimumPhysicalMarkerSizeInCentimeters

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

    MinimumPhysicalMarkerSizeWidthInMeters

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

    PostcardHeightInMeters

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

    PostcardWidthInMeters

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

    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
    Int32

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

    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