This commit is contained in:
wuyanchen 2025-12-02 23:32:18 +08:00
parent fec6b33ea1
commit 49ea76b30b
5 changed files with 26 additions and 18 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ public class TextWXFront : MonoBehaviour
void Start()
{
#if UNITY_WEIXINMINIGAME && !UNITY_EDITOR
WX.GetWXFont(string.Empty, (font) =>
WX.GetWXFont("https://xy451-minicode.oss-cn-hangzhou.aliyuncs.com/test2/Fonts/Neuton-Light.ttf", (font) =>
{
GetComponent<Text>().font = font;
});

View File

@ -65,7 +65,7 @@ MonoBehaviour:
UseFriendRelation: 0
UseCompressedTexture: 0
UseMiniGameChat: 0
PreloadWXFont: 1
PreloadWXFont: 0
CompileOptions:
DevelopBuild: 0
AutoProfile: 0

View File

@ -1309,7 +1309,6 @@ GameObject:
- component: {fileID: 1064514692}
- component: {fileID: 1064514694}
- component: {fileID: 1064514693}
- component: {fileID: 1064514695}
m_Layer: 5
m_HasEditorInfo: 1
m_Name: Text (Legacy)
@ -1358,8 +1357,8 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 18
m_Font: {fileID: 12800000, guid: 3f6660225ab5a3e4e954fb17f8d3ad02, type: 3}
m_FontSize: 28
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
@ -1379,18 +1378,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1064514691}
m_CullTransparentMesh: 1
--- !u!114 &1064514695
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1064514691}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5030f811a08abd43a9c505dbeb712d1, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1291040292
GameObject:
m_ObjectHideFlags: 0
@ -1705,7 +1692,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Font: {fileID: 12800000, guid: 3f6660225ab5a3e4e954fb17f8d3ad02, type: 3}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0