-
Notifications
You must be signed in to change notification settings - Fork 9
Switcher Functions
#Functions
-
static Switcher GetInstance()
This method is static field method. Because this object is not suitable multiple object creation. So, if you wanna use Switcher object, call the singleton object.
Switcher switcher = Switcher.GetInstance();
-
void switchCamera()
If you call this method, operate changing view between VR and AR. This method needs variable CameraState, it is type of enum variable. CameraState has two value, VR and AR. If you have state CemeraState.AR, this method operates switchcameraToVR() method. And if you have state CameraState.VR, this method operates switchcameraToAR() method.
-
void switchCameraToVR()
The switchCamera() method is always operted regardless of cameraState variable. But, this method is only operated with cameraState.AR. In other words, when you have variable cameraState.AR, this method change state of view to VR.
Switcher switcher = Switcher.getInstance(); switcher.state = Switcher.CameraState.AR; switcher.switchCameraToVR();
-
void switchCameraToAR()
The switchCamera() method is always operted regardless of cameraState variable. But, this method is only operated with cameraState.VR. In other words, when you have variable cameraState.VR, this method change state of view to AR.
Switcher switcher = Switcher.getInstance(); switcher.state = Switcher.CameraState.VR; switcher.switchCameraToAR();
-
IEnumerator switchCameraRutine(CameraState from)
This method is used by switch methods( switchCamera(), switchCameraAR(), switchCameraVR() ). Role of this is change view between AR and VR. This method is not user function, only internally operated.
Genernal
Camera Transition
Tip Pointer
Short Cut
Gesture Interface