Show / Hide Table of Contents

    Class QRCodeMarkerVisual

    Inheritance
    Object
    QRCodeMarkerVisual
    Implements
    IMarkerVisual
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class QRCodeMarkerVisual : MonoBehaviour, IMarkerVisual

    Fields

    _markerSize

    Physical size to display the marker (in meters)

    Declaration
    protected float _markerSize
    Field Value
    Type Description
    Single

    Methods

    HideMarker()

    Hides any shown markers

    Declaration
    public void HideMarker()

    ShowMarker(Int32)

    Shows the specified marker

    Declaration
    public void ShowMarker(int id)
    Parameters
    Type Name Description
    Int32 id

    Id of the marker to show

    TryGetMaxSupportedMarkerId(out Int32)

    Tries to obtain the maximum marker id supported by this marker visual.

    Declaration
    public bool TryGetMaxSupportedMarkerId(out int markerId)
    Parameters
    Type Name Description
    Int32 markerId
    Returns
    Type Description
    Boolean

    Returns true if the maximum marker id can be found, otherwise false.

    TrySetMarkerSize(Single)

    Tries to set the physical size for displaying markers

    Declaration
    public bool TrySetMarkerSize(float size)
    Parameters
    Type Name Description
    Single size

    The physical size (in meters) that markers should be when shown

    Returns
    Type Description
    Boolean

    Returns true if the marker can be set to the provided size, otherwise false.

    TrySetScaleFactor(Single)

    Tries to set an additional scale factors for the marker visual.

    Declaration
    public bool TrySetScaleFactor(float scaleFactor)
    Parameters
    Type Name Description
    Single scaleFactor

    Additional scale factor to account for with the marker visual.

    Returns
    Type Description
    Boolean

    Returns true if the scale factor was updated.

    Implements

    IMarkerVisual
    In This Article
    • Fields
      • _markerSize
    • Methods
      • HideMarker()
      • ShowMarker(Int32)
      • TryGetMaxSupportedMarkerId(out Int32)
      • TrySetMarkerSize(Single)
      • TrySetScaleFactor(Single)
    • Implements
    Back to top Generated by DocFX