修改框架层问题

This commit is contained in:
shenjianxing 2025-01-16 18:31:21 +08:00
parent c94dd81f4c
commit 1b22d00ff5
2 changed files with 21 additions and 7 deletions

View File

@ -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

View File

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