diff --git a/Assets/Art/UIPrefab/UIHint.prefab b/Assets/Art/UIPrefab/UIHint.prefab index 601d07bc..2481b853 100644 --- a/Assets/Art/UIPrefab/UIHint.prefab +++ b/Assets/Art/UIPrefab/UIHint.prefab @@ -92,10 +92,10 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 10 - m_Bottom: 10 + m_Left: 100 + m_Right: 100 + m_Top: 15 + m_Bottom: 15 m_ChildAlignment: 4 m_Spacing: 5 m_ChildForceExpandWidth: 0 @@ -177,7 +177,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: -14.2, y: -11} + m_AnchoredPosition: {x: -14.200012, y: -11} m_SizeDelta: {x: 20, y: 22} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2796669925366751870 diff --git a/Assets/Scripts/UI/UICameraSwitch.cs b/Assets/Scripts/UI/UICameraSwitch.cs index 839b2ac1..e144115e 100644 --- a/Assets/Scripts/UI/UICameraSwitch.cs +++ b/Assets/Scripts/UI/UICameraSwitch.cs @@ -75,10 +75,24 @@ namespace QFramework.Example switch (mData.isOn) { case "near": - SetNear(); + if (Near.isOn == false) + { + Near.isOn = true; + } + else + { + SetNear(); + } break; case "normal": - SetNormal(); + if (Far.isOn == false) + { + Far.isOn = true; + } + else + { + SetNormal(); + } break; } }