From 2acd61f832da5acbca3683602c212e97c029e187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E8=99=9E=E6=B8=A0=E6=88=90=E2=80=9D?= <“yuqucheng2006@qq.com”> Date: Thu, 23 Jul 2026 14:48:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(iOS=E7=9B=B8=E6=9C=BA):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E8=87=AA=E5=8A=A8=E4=BD=8E=E5=85=89=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了iOS相机插件中手动启用低光增强的代码,避免和系统相机自动逻辑冲突 --- Assets/Plugins/iOS/CameraFocusHelper.mm | 5 --- Assets/Plugins/iOS/CameraFocusHelper.mm.meta | 33 ++++++++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 Assets/Plugins/iOS/CameraFocusHelper.mm.meta diff --git a/Assets/Plugins/iOS/CameraFocusHelper.mm b/Assets/Plugins/iOS/CameraFocusHelper.mm index 4a41aaa..59290e7 100644 --- a/Assets/Plugins/iOS/CameraFocusHelper.mm +++ b/Assets/Plugins/iOS/CameraFocusHelper.mm @@ -32,11 +32,6 @@ extern "C" { } } - // 启用低光增强(昏暗环境提高识别率) - if ([device respondsToSelector:@selector(setAutomaticallyEnablesLowLightBoostWhenAvailable:)]) { - device.automaticallyEnablesLowLightBoostWhenAvailable = YES; - } - [device unlockForConfiguration]; NSLog(@"[CameraFocusHelper] 已启用连续自动对焦"); diff --git a/Assets/Plugins/iOS/CameraFocusHelper.mm.meta b/Assets/Plugins/iOS/CameraFocusHelper.mm.meta new file mode 100644 index 0000000..94922d0 --- /dev/null +++ b/Assets/Plugins/iOS/CameraFocusHelper.mm.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: bfac996797a54a14fa60abaaaf887145 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + iPhone: iOS + second: + enabled: 1 + settings: + AddToEmbeddedBinaries: false + userData: + assetBundleName: + assetBundleVariant: