mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class CameraCache

    The purpose of this class is to provide a cached reference to the main camera. Calling Camera.main executes a FindByTag on the scene, which will get worse and worse with more tagged objects.

    Inheritance
    Object
    CameraCache
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class CameraCache

    Properties

    Main

    Returns a cached reference to the main camera and uses Camera.main if it hasn't been cached yet.

    Declaration
    public static Camera Main { get; }
    Property Value
    Type Description
    Camera

    Main

    Returns a cached reference to the main camera and uses Camera.main if it hasn't been cached yet.

    Declaration
    public static Camera Main { get; }
    Property Value
    Type Description
    Camera
    In This Article
    • Properties
      • Main
      • Main
    Back to top Generated by DocFX