From b5b8606e9a9a5cff45eb6744c474868ef4da9fc8 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 16 九月 2025 18:38:48 +0800 Subject: [PATCH] 0312 适配调整 --- Shader/OutlineEx.shader | 2 +- UIComp/SkillBaseCell.prefab | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Shader/OutlineEx.shader b/Shader/OutlineEx.shader index 2ff0a38..996e0a6 100644 --- a/Shader/OutlineEx.shader +++ b/Shader/OutlineEx.shader @@ -134,7 +134,7 @@ const fixed sinArray[12] = { 0, 0.5, 0.866, 1, 0.866, 0.5, 0, -0.5, -0.866, -1, -0.866, -0.5 }; const fixed cosArray[12] = { 1, 0.866, 0.5, 0, -0.5, -0.866, -1, -0.866, -0.5, 0, 0.5, 0.866 }; - float2 pos = IN.texcoord + _MainTex_TexelSize.xy * float2(cosArray[pIndex], sinArray[pIndex]) * IN.normal.z*0.12; //normal.z 瀛樻斁 _OutlineWidth + float2 pos = IN.texcoord + _MainTex_TexelSize.xy * float2(cosArray[pIndex], sinArray[pIndex]) * IN.normal.z*0.2; //normal.z 瀛樻斁 _OutlineWidth return IsInRect(pos, IN.uv1, IN.uv2) * (tex2D(_MainTex, pos) + _TextureSampleAdd).w * IN.tangent.w; //tangent.w 瀛樻斁 _OutlineColor.w } diff --git a/UIComp/SkillBaseCell.prefab b/UIComp/SkillBaseCell.prefab index 241b8ad..5ad8388 100644 --- a/UIComp/SkillBaseCell.prefab +++ b/UIComp/SkillBaseCell.prefab @@ -244,7 +244,7 @@ - component: {fileID: 8364422125810424629} - component: {fileID: 7653091449425900876} - component: {fileID: 5436887058727803153} - - component: {fileID: 6659771965945837021} + - component: {fileID: 3406581591296820032} m_Layer: 5 m_Name: type m_TagString: Untagged @@ -262,14 +262,14 @@ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 + m_ConstrainProportionsScale: 1 m_Children: [] m_Father: {fileID: 224677353599006658} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: -41.41} - m_SizeDelta: {x: 90, y: 26} + m_AnchoredPosition: {x: 0, y: -36} + m_SizeDelta: {x: 90, y: 40} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7653091449425900876 CanvasRenderer: @@ -291,7 +291,7 @@ m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} + m_Material: {fileID: 2100000, guid: 67c581adb87b67642b527f05017d7741, type: 2} m_Color: {r: 0.9607843, g: 0.9647059, b: 0.9019608, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -301,7 +301,7 @@ m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 7cd825c6867461a4090871836190730f, type: 3} - m_FontSize: 20 + m_FontSize: 30 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 1 @@ -313,7 +313,7 @@ m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: "\u666E\u901A" ---- !u!114 &6659771965945837021 +--- !u!114 &3406581591296820032 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -325,5 +325,5 @@ m_Script: {fileID: 11500000, guid: 0952a679e87c6c743874501bacc08eb9, type: 3} m_Name: m_EditorClassIdentifier: - OutlineColor: {r: 0, g: 0, b: 0, a: 0.5} - OutlineWidth: 5 + m_OutlineColor: {r: 0, g: 0, b: 0, a: 0.5} + OutlineWidth: 10 -- Gitblit v1.8.0