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); }
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); }