Esempio n. 1
0
 static void Register()
 {
     XRCameraExtensions.RegisterIsPermissionGrantedHandler(k_SubsystemId, IsPermissionGranted);
     XRCameraExtensions.RegisterGetNativePtrHandler(k_SubsystemId, GetNativePtr);
     XRCameraExtensions.RegisterCameraImageApi(k_SubsystemId, s_CameraImageApi);
     XRCameraExtensions.RegisterCameraConfigApi(k_SubsystemId, s_CameraConfigApi);
     XRCameraExtensions.RegisterTrySetFocusModeHandler(k_SubsystemId, TrySetFocusMode);
 }
Esempio n. 2
0
 static void Register()
 {
     Api.UnityARCore_setCameraPermissionProvider(CameraPermissionRequestProvider);
     XRCameraExtensions.RegisterIsPermissionGrantedHandler(k_SubsystemId, IsPermissionGranted);
     XRCameraExtensions.RegisterTryGetColorCorrectionHandler(k_SubsystemId, TryGetColorCorrection);
     XRCameraExtensions.RegisterGetNativePtrHandler(k_SubsystemId, GetNativePtr);
     XRCameraExtensions.RegisterCameraImageApi(k_SubsystemId, s_AsyncCameraImageApi);
 }
 static void Register()
 {
     XRCameraExtensions.RegisterIsPermissionGrantedHandler(k_SubsystemId, IsPermissionGranted);
     XRCameraExtensions.RegisterTryGetColorCorrectionHandler(k_SubsystemId, TryGetColorCorrection);
 }