Show / Hide Table of Contents

    Class HoloLensCanvasHelper

    Helper class for placing a Unity canvas relative to a HoloLens user

    Inheritance
    Object
    HoloLensCanvasHelper
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class HoloLensCanvasHelper : MonoBehaviour

    Fields

    _bindToMainCamera

    Check if you want the Unity Canvas to be placed outward at a specific distance from the main camera.

    Declaration
    protected bool _bindToMainCamera
    Field Value
    Type Description
    Boolean

    _zDistance

    If BindToMainCamera is set to true, the canvas will be placed at this distance (in meters) in front of the user.

    Declaration
    protected float _zDistance
    Field Value
    Type Description
    Single
    In This Article
    • Fields
      • _bindToMainCamera
      • _zDistance
    Back to top Generated by DocFX