From 6c5aa4b7bee8b16932ff522b6c2eae77dbc118b8 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Tue, 21 Jan 2025 10:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=B2=A1=E6=9C=89=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=B6=20=E7=9B=B8=E6=9C=BA=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UICameraSwitch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/UI/UICameraSwitch.cs b/Assets/Scripts/UI/UICameraSwitch.cs index 1f3d5451..e63756f0 100644 --- a/Assets/Scripts/UI/UICameraSwitch.cs +++ b/Assets/Scripts/UI/UICameraSwitch.cs @@ -66,11 +66,11 @@ namespace QFramework.Example if (string.IsNullOrEmpty(mData.isOn)) { - if (Near.isOn) + if (Near.isOn && Near.gameObject.activeSelf) { SetNear(); } - if (Far.isOn) + if (Far.isOn && Far.gameObject.activeSelf) { SetNormal(); }