AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.CameraCache Class Reference

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. More...

Static Public Member Functions

static Camera Refresh (Camera newMain)
 Set the cached camera to a new reference and return it More...
 

Properties

static Camera Main [get]
 Returns a cached reference to the main camera and uses Camera.main if it hasn't been cached yet. More...
 

Detailed Description

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.

Definition at line 12 of file CameraCache.cs.

Member Function Documentation

§ Refresh()

static Camera HoloToolkit.Unity.CameraCache.Refresh ( Camera  newMain)
static

Set the cached camera to a new reference and return it

Parameters
newMainNew main camera to cache

Definition at line 35 of file CameraCache.cs.

Property Documentation

§ Main

Camera HoloToolkit.Unity.CameraCache.Main
staticget

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

Definition at line 20 of file CameraCache.cs.


The documentation for this class was generated from the following file: