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.
Inherited Members
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 |