![]() |
AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
|
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... | |
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.
|
static |
Set the cached camera to a new reference and return it
| newMain | New main camera to cache |
Definition at line 35 of file CameraCache.cs.
|
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.