自定义字体

This commit is contained in:
tianmo committed 2026-10-20 18:59:18 +08:00
1 parent 1aeaebcddb
commit b26a10ceb9
20 files changed
+2861 -88

No files matched your search

+333
View File
@@ -0,0 +1,333 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &83385421971547977
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2376410396674282947}
m_Layer: 5
m_Name: FontsSample
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2376410396674282947
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 83385421971547977}
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_Children:
- {fileID: 635105578755451708}
- {fileID: 3503250132318007279}
m_Father: {fileID: 0}
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: 0}
m_SizeDelta: {x: 1229.4, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2458179169782502943
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3503250132318007279}
- component: {fileID: 8923415648871489610}
- component: {fileID: 6818473554056941950}
- component: {fileID: 1896200292765297902}
m_Layer: 5
m_Name: "\u98CE\u683C\u5316\u6570\u5B57"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3503250132318007279
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2458179169782502943}
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_Children: []
m_Father: {fileID: 2376410396674282947}
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: 0}
m_SizeDelta: {x: 400, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8923415648871489610
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2458179169782502943}
m_CullTransparentMesh: 1
--- !u!114 &6818473554056941950
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2458179169782502943}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aff4690ca9bc94b8b84c2ee53b298588, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::digits_sheet_auto
value: 1234056789.12
showComma: 1
decimalPlaces: 3
--- !u!114 &1896200292765297902
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2458179169782502943}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: <sprite name="1"><sprite name="comma"><sprite name="2"><sprite name="3"><sprite
name="4"><sprite name="comma"><sprite name="0"><sprite name="5"><sprite name="6"><sprite
name="comma"><sprite name="7"><sprite name="8"><sprite name="9"><sprite name="dot"><sprite
name="1"><sprite name="2">
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 11400000, guid: c513d75ad79d84bd9833eca2dfe7a6e0, type: 2}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_characterHorizontalScale: 1
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &9100922068231978441
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 635105578755451708}
- component: {fileID: 2990454474058637004}
- component: {fileID: 697247166407723800}
m_Layer: 5
m_Name: "\u5F97\u610F\u9ED1"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &635105578755451708
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9100922068231978441}
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_Children: []
m_Father: {fileID: 2376410396674282947}
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: 50}
m_SizeDelta: {x: 400, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2990454474058637004
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9100922068231978441}
m_CullTransparentMesh: 1
--- !u!114 &697247166407723800
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9100922068231978441}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u5F97\u610F\u9ED1123,456,789.123"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 39a0999dfda46415d8cb47c0af34425c, type: 2}
m_sharedMaterial: {fileID: -8927451692266045157, guid: 39a0999dfda46415d8cb47c0af34425c,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_characterHorizontalScale: 1
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
@@ -1,6 +1,6 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e3620f394d3ff45269bf1c4a6eccf2f9 guid: cf02609f2e4ed4b588ba2f99878b5183
TextScriptImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
@@ -121,9 +121,9 @@ Texture2D:
Hash: 00000000000000000000000000000000 Hash: 00000000000000000000000000000000
m_IsAlphaChannelOptional: 0 m_IsAlphaChannelOptional: 0
serializedVersion: 4 serializedVersion: 4
m_Width: 1 m_Width: 2048
m_Height: 1 m_Height: 2048
m_CompleteImageSize: 1 m_CompleteImageSize: 4194304
m_MipsStripped: 0 m_MipsStripped: 0
m_TextureFormat: 1 m_TextureFormat: 1
m_MipCount: 1 m_MipCount: 1
@@ -148,8 +148,8 @@ Texture2D:
m_LightmapFormat: 0 m_LightmapFormat: 0
m_ColorSpace: 0 m_ColorSpace: 0
m_PlatformBlob: m_PlatformBlob:
image data: 1 image data: 4194304
_typelessdata: 00 _typelessdata: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003060809090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909080603000000000000000000000000000000000000000000000000000000000000000406070604000000000000000000000000000000000000000000000000000000000000000000040607060400000000000000000000000000000000000000000000000000000000000000020507080b0d0c0a070604000000000000000000000000000000000000000000000000000000000306060603000000000000000000000000000000000000000000010202010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040607080807060401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Line truncated
m_StreamData: m_StreamData:
serializedVersion: 2 serializedVersion: 2
offset: 0 offset: 0
@@ -215,8 +215,502 @@ MonoBehaviour:
m_SourceFontFilePath: m_SourceFontFilePath:
m_AtlasPopulationMode: 1 m_AtlasPopulationMode: 1
InternalDynamicOS: 0 InternalDynamicOS: 0
m_GlyphTable: [] m_GlyphTable:
m_CharacterTable: [] - m_Index: 994
m_Metrics:
m_Width: 67.140625
m_Height: 87.296875
m_HorizontalBearingX: 3.328125
m_HorizontalBearingY: 80.09375
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 118
m_Width: 68
m_Height: 89
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 2218
m_Metrics:
m_Width: 63.8125
m_Height: 87.21875
m_HorizontalBearingX: 7.015625
m_HorizontalBearingY: 79.921875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 333
m_Width: 64
m_Height: 88
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 2687
m_Metrics:
m_Width: 65.703125
m_Height: 86.9375
m_HorizontalBearingX: 3.234375
m_HorizontalBearingY: 79.375
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 647
m_Width: 66
m_Height: 88
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 2872
m_Metrics:
m_Width: 68.75
m_Height: 87.9375
m_HorizontalBearingX: 2.34375
m_HorizontalBearingY: 79.921875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 92
m_Y: 440
m_Width: 70
m_Height: 89
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3310
m_Metrics:
m_Width: 67.3125
m_Height: 87.75
m_HorizontalBearingX: 3.0625
m_HorizontalBearingY: 79.921875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 226
m_Width: 68
m_Height: 88
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3414
m_Metrics:
m_Width: 61.109375
m_Height: 82.34375
m_HorizontalBearingX: 4.046875
m_HorizontalBearingY: 77.21875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 440
m_Width: 62
m_Height: 84
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3449
m_Metrics:
m_Width: 61.109375
m_Height: 87.296875
m_HorizontalBearingX: 8.640625
m_HorizontalBearingY: 80.09375
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 10
m_Width: 62
m_Height: 89
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 5374
m_Metrics:
m_Width: 61.90625
m_Height: 84.25
m_HorizontalBearingX: 5.40625
m_HorizontalBearingY: 76.953125
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 10
m_Y: 543
m_Width: 63
m_Height: 85
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 8642
m_Metrics:
m_Width: 64.359375
m_Height: 85.328125
m_HorizontalBearingX: 2.15625
m_HorizontalBearingY: 77.046875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 93
m_Y: 333
m_Width: 65
m_Height: 87
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9231
m_Metrics:
m_Width: 60.75
m_Height: 13.59375
m_HorizontalBearingX: 5.578125
m_HorizontalBearingY: 40.5
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 91
m_Y: 58
m_Width: 62
m_Height: 15
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9268
m_Metrics:
m_Width: 17.828125
m_Height: 28.078125
m_HorizontalBearingX: 5.9375
m_HorizontalBearingY: 7.921875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 91
m_Y: 10
m_Width: 19
m_Height: 29
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9294
m_Metrics:
m_Width: 54.90625
m_Height: 6.125
m_HorizontalBearingX: 0
m_HorizontalBearingY: -14.578125
m_HorizontalAdvance: 54
m_GlyphRect:
m_X: 91
m_Y: 92
m_Width: 55
m_Height: 7
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9136
m_Metrics:
m_Width: 38.703125
m_Height: 72.71875
m_HorizontalBearingX: 0.265625
m_HorizontalBearingY: 69.125
m_HorizontalAdvance: 38.875
m_GlyphRect:
m_X: 92
m_Y: 548
m_Width: 39
m_Height: 74
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9137
m_Metrics:
m_Width: 40.421875
m_Height: 73.609375
m_HorizontalBearingX: 1.703125
m_HorizontalBearingY: 70.015625
m_HorizontalAdvance: 42.75
m_GlyphRect:
m_X: 97
m_Y: 118
m_Width: 42
m_Height: 75
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9138
m_Metrics:
m_Width: 34.828125
m_Height: 71.828125
m_HorizontalBearingX: 4.40625
m_HorizontalBearingY: 69.125
m_HorizontalAdvance: 35.015625
m_GlyphRect:
m_X: 97
m_Y: 212
m_Width: 36
m_Height: 73
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9139
m_Metrics:
m_Width: 40.5
m_Height: 73.609375
m_HorizontalBearingX: 1.171875
m_HorizontalBearingY: 70.015625
m_HorizontalAdvance: 42.203125
m_GlyphRect:
m_X: 152
m_Y: 212
m_Width: 41
m_Height: 75
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9140
m_Metrics:
m_Width: 40.40625
m_Height: 73.609375
m_HorizontalBearingX: 3.6875
m_HorizontalBearingY: 70.015625
m_HorizontalAdvance: 42.75
m_GlyphRect:
m_X: 158
m_Y: 118
m_Width: 42
m_Height: 75
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9228
m_Metrics:
m_Width: 17.828125
m_Height: 28.078125
m_HorizontalBearingX: -3.0625
m_HorizontalBearingY: 7.921875
m_HorizontalAdvance: 21.515625
m_GlyphRect:
m_X: 129
m_Y: 10
m_Width: 19
m_Height: 29
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9227
m_Metrics:
m_Width: 13.0625
m_Height: 13.578125
m_HorizontalBearingX: 0.984375
m_HorizontalBearingY: 9.984375
m_HorizontalAdvance: 21.515625
m_GlyphRect:
m_X: 167
m_Y: 10
m_Width: 15
m_Height: 14
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 1340
m_Metrics:
m_Width: 69.921875
m_Height: 84.5
m_HorizontalBearingX: 1.625
m_HorizontalBearingY: 76.40625
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 201
m_Y: 10
m_Width: 71
m_Height: 86
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 4941
m_Metrics:
m_Width: 60.3125
m_Height: 84.234375
m_HorizontalBearingX: 5.84375
m_HorizontalBearingY: 79.921875
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 177
m_Y: 306
m_Width: 62
m_Height: 85
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9132
m_Metrics:
m_Width: 18.8125
m_Height: 71.828125
m_HorizontalBearingX: 5.671875
m_HorizontalBearingY: 69.125
m_HorizontalAdvance: 25.734375
m_GlyphRect:
m_X: 212
m_Y: 212
m_Width: 20
m_Height: 73
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9133
m_Metrics:
m_Width: 39.59375
m_Height: 73
m_HorizontalBearingX: -0.359375
m_HorizontalBearingY: 70.296875
m_HorizontalAdvance: 37.4375
m_GlyphRect:
m_X: 219
m_Y: 115
m_Width: 41
m_Height: 74
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9134
m_Metrics:
m_Width: 38.25
m_Height: 73.609375
m_HorizontalBearingX: 0.09375
m_HorizontalBearingY: 70.015625
m_HorizontalAdvance: 38.875
m_GlyphRect:
m_X: 251
m_Y: 208
m_Width: 39
m_Height: 75
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9135
m_Metrics:
m_Width: 38.15625
m_Height: 71.828125
m_HorizontalBearingX: -0.359375
m_HorizontalBearingY: 69.125
m_HorizontalAdvance: 39.953125
m_GlyphRect:
m_X: 279
m_Y: 115
m_Width: 39
m_Height: 73
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 9225
m_Metrics:
m_Width: 26.734375
m_Height: 27.09375
m_HorizontalBearingX: 5.21875
m_HorizontalBearingY: 17.90625
m_HorizontalAdvance: 72
m_GlyphRect:
m_X: 291
m_Y: 10
m_Width: 27
m_Height: 28
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
m_CharacterTable:
- m_ElementType: 1
m_Unicode: 95
m_GlyphIndex: 9294
m_Scale: 1
- m_ElementType: 1
m_Unicode: 8230
m_GlyphIndex: 9231
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20572
m_GlyphIndex: 994
m_Scale: 1
- m_ElementType: 1
m_Unicode: 23383
m_GlyphIndex: 2218
m_Scale: 1
- m_ElementType: 1
m_Unicode: 24471
m_GlyphIndex: 2687
m_Scale: 1
- m_ElementType: 1
m_Unicode: 24847
m_GlyphIndex: 2872
m_Scale: 1
- m_ElementType: 1
m_Unicode: 25968
m_GlyphIndex: 3310
m_Scale: 1
- m_ElementType: 1
m_Unicode: 26174
m_GlyphIndex: 3414
m_Scale: 1
- m_ElementType: 1
m_Unicode: 26242
m_GlyphIndex: 3449
m_Scale: 1
- m_ElementType: 1
m_Unicode: 31034
m_GlyphIndex: 5374
m_Scale: 1
- m_ElementType: 1
m_Unicode: 40657
m_GlyphIndex: 8642
m_Scale: 1
- m_ElementType: 1
m_Unicode: 65292
m_GlyphIndex: 9268
m_Scale: 1
- m_ElementType: 1
m_Unicode: 53
m_GlyphIndex: 9136
m_Scale: 1
- m_ElementType: 1
m_Unicode: 54
m_GlyphIndex: 9137
m_Scale: 1
- m_ElementType: 1
m_Unicode: 55
m_GlyphIndex: 9138
m_Scale: 1
- m_ElementType: 1
m_Unicode: 56
m_GlyphIndex: 9139
m_Scale: 1
- m_ElementType: 1
m_Unicode: 57
m_GlyphIndex: 9140
m_Scale: 1
- m_ElementType: 1
m_Unicode: 44
m_GlyphIndex: 9228
m_Scale: 1
- m_ElementType: 1
m_Unicode: 46
m_GlyphIndex: 9227
m_Scale: 1
- m_ElementType: 1
m_Unicode: 21407
m_GlyphIndex: 1340
m_Scale: 1
- m_ElementType: 1
m_Unicode: 29983
m_GlyphIndex: 4941
m_Scale: 1
- m_ElementType: 1
m_Unicode: 49
m_GlyphIndex: 9132
m_Scale: 1
- m_ElementType: 1
m_Unicode: 50
m_GlyphIndex: 9133
m_Scale: 1
- m_ElementType: 1
m_Unicode: 51
m_GlyphIndex: 9134
m_Scale: 1
- m_ElementType: 1
m_Unicode: 52
m_GlyphIndex: 9135
m_Scale: 1
- m_ElementType: 1
m_Unicode: 12290
m_GlyphIndex: 9225
m_Scale: 1
m_AtlasTextures: m_AtlasTextures:
- {fileID: -4117240312920070829} - {fileID: -4117240312920070829}
m_AtlasTextureIndex: 0 m_AtlasTextureIndex: 0
@@ -227,12 +721,200 @@ MonoBehaviour:
m_AtlasHeight: 2048 m_AtlasHeight: 2048
m_AtlasPadding: 9 m_AtlasPadding: 9
m_AtlasRenderMode: 4165 m_AtlasRenderMode: 4165
m_UsedGlyphRects: [] m_UsedGlyphRects:
m_FreeGlyphRects:
- m_X: 0 - m_X: 0
m_Y: 0 m_Y: 0
m_Width: 81
m_Height: 108
- m_X: 0
m_Y: 108
m_Width: 87
m_Height: 108
- m_X: 81
m_Y: 0
m_Width: 38
m_Height: 48
- m_X: 0
m_Y: 216
m_Width: 87
m_Height: 107
- m_X: 0
m_Y: 323
m_Width: 83
m_Height: 107
- m_X: 0
m_Y: 430
m_Width: 81
m_Height: 103
- m_X: 0
m_Y: 533
m_Width: 82
m_Height: 104
- m_X: 0
m_Y: 637
m_Width: 85
m_Height: 107
- m_X: 82
m_Y: 430
m_Width: 89
m_Height: 108
- m_X: 83
m_Y: 323
m_Width: 84
m_Height: 106
- m_X: 81
m_Y: 48
m_Width: 81
m_Height: 34
- m_X: 81
m_Y: 82
m_Width: 74
m_Height: 26
- m_X: 82
m_Y: 538
m_Width: 58
m_Height: 93
- m_X: 87
m_Y: 108
m_Width: 61
m_Height: 94
- m_X: 87
m_Y: 202
m_Width: 55
m_Height: 92
- m_X: 142
m_Y: 202
m_Width: 60
m_Height: 94
- m_X: 148
m_Y: 108
m_Width: 61
m_Height: 94
- m_X: 119
m_Y: 0
m_Width: 38
m_Height: 48
- m_X: 157
m_Y: 0
m_Width: 34
m_Height: 33
- m_X: 191
m_Y: 0
m_Width: 90
m_Height: 105
- m_X: 167
m_Y: 296
m_Width: 81
m_Height: 104
- m_X: 202
m_Y: 202
m_Width: 39
m_Height: 92
- m_X: 209
m_Y: 105
m_Width: 60
m_Height: 93
- m_X: 241
m_Y: 198
m_Width: 58
m_Height: 94
- m_X: 269
m_Y: 105
m_Width: 58
m_Height: 92
- m_X: 281
m_Y: 0
m_Width: 46
m_Height: 47
m_FreeGlyphRects:
- m_X: 0
m_Y: 744
m_Width: 2047 m_Width: 2047
m_Height: 1303
- m_X: 81
m_Y: 430
m_Width: 1
m_Height: 103
- m_X: 83
m_Y: 429
m_Width: 1964
m_Height: 1
- m_X: 85
m_Y: 631
m_Width: 1962
m_Height: 1416
- m_X: 140
m_Y: 538
m_Width: 1907
m_Height: 1509
- m_X: 82
m_Y: 631
m_Width: 1965
m_Height: 6
- m_X: 87
m_Y: 294
m_Width: 55
m_Height: 29
- m_X: 155
m_Y: 82
m_Width: 36
m_Height: 26
- m_X: 162
m_Y: 33
m_Width: 29
m_Height: 75
- m_X: 157
m_Y: 33
m_Width: 34
m_Height: 15
- m_X: 171
m_Y: 400
m_Width: 1876
m_Height: 1647
- m_X: 167
m_Y: 400
m_Width: 1880
m_Height: 30
- m_X: 87
m_Y: 296
m_Width: 80
m_Height: 27
- m_X: 202
m_Y: 294
m_Width: 1845
m_Height: 2
- m_X: 155
m_Y: 105
m_Width: 54
m_Height: 3
- m_X: 248
m_Y: 292
m_Width: 1799
m_Height: 1755
- m_X: 209
m_Y: 198
m_Width: 32
m_Height: 4
- m_X: 241
m_Y: 292
m_Width: 1806
m_Height: 4
- m_X: 299
m_Y: 197
m_Width: 1748
m_Height: 1850
- m_X: 327
m_Y: 0
m_Width: 1720
m_Height: 2047 m_Height: 2047
- m_X: 269
m_Y: 197
m_Width: 1778
m_Height: 1
- m_X: 281
m_Y: 47
m_Width: 1766
m_Height: 58
m_FontFeatureTable: m_FontFeatureTable:
m_MultipleSubstitutionRecords: [] m_MultipleSubstitutionRecords: []
m_LigatureSubstitutionRecords: [] m_LigatureSubstitutionRecords: []
@@ -0,0 +1,337 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &-872278582625395171
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: digits_sheet_1 Material
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 2800000, guid: b3677cc2099eb4197ba1e1b635577646, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _CullMode: 0
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 84a92b25f83d49b9bc132d206b370281, type: 3}
m_Name: digits_sheet_1
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TMP_SpriteAsset
m_Version: 1.1.0
m_FaceInfo:
m_FaceIndex: 0
m_FamilyName:
m_StyleName:
m_PointSize: 360
m_Scale: 1
m_UnitsPerEM: 0
m_LineHeight: 0
m_AscentLine: 0
m_CapLine: 0
m_MeanLine: 0
m_Baseline: 0
m_DescentLine: -300
m_SuperscriptOffset: 0
m_SuperscriptSize: 0
m_SubscriptOffset: 0
m_SubscriptSize: 0
m_UnderlineOffset: 0
m_UnderlineThickness: 0
m_StrikethroughOffset: 0
m_StrikethroughThickness: 0
m_TabWidth: 0
m_Material: {fileID: -872278582625395171}
spriteSheet: {fileID: 2800000, guid: b3677cc2099eb4197ba1e1b635577646, type: 3}
m_SpriteCharacterTable:
- m_ElementType: 2
m_Unicode: 48
m_GlyphIndex: 0
m_Scale: 1
m_Name: 0
- m_ElementType: 2
m_Unicode: 49
m_GlyphIndex: 1
m_Scale: 1
m_Name: 1
- m_ElementType: 2
m_Unicode: 50
m_GlyphIndex: 2
m_Scale: 1
m_Name: 2
- m_ElementType: 2
m_Unicode: 51
m_GlyphIndex: 3
m_Scale: 1
m_Name: 3
- m_ElementType: 2
m_Unicode: 52
m_GlyphIndex: 4
m_Scale: 1
m_Name: 4
- m_ElementType: 2
m_Unicode: 53
m_GlyphIndex: 5
m_Scale: 1
m_Name: 5
- m_ElementType: 2
m_Unicode: 54
m_GlyphIndex: 6
m_Scale: 1
m_Name: 6
- m_ElementType: 2
m_Unicode: 55
m_GlyphIndex: 7
m_Scale: 1
m_Name: 7
- m_ElementType: 2
m_Unicode: 56
m_GlyphIndex: 8
m_Scale: 1
m_Name: 8
- m_ElementType: 2
m_Unicode: 57
m_GlyphIndex: 9
m_Scale: 1
m_Name: 9
- m_ElementType: 2
m_Unicode: 44
m_GlyphIndex: 10
m_Scale: 1
m_Name: comma
- m_ElementType: 2
m_Unicode: 46
m_GlyphIndex: 11
m_Scale: 1
m_Name: dot
m_GlyphTable:
- m_Index: 0
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 0
m_Y: 600
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 1
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: 0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 180
m_GlyphRect:
m_X: 220
m_Y: 600
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 2
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: 0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 240
m_GlyphRect:
m_X: 440
m_Y: 600
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 3
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 660
m_Y: 600
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 4
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 0
m_Y: 300
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 5
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 220
m_Y: 300
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 6
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 440
m_Y: 300
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 7
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 660
m_Y: 300
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 8
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 0
m_Y: 0
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 9
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 220
m_GlyphRect:
m_X: 220
m_Y: 0
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 10
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -45
m_HorizontalBearingY: 0
m_HorizontalAdvance: 135
m_GlyphRect:
m_X: 440
m_Y: 0
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
- m_Index: 11
m_Metrics:
m_Width: 220
m_Height: 300
m_HorizontalBearingX: -45
m_HorizontalBearingY: 0
m_HorizontalAdvance: 135
m_GlyphRect:
m_X: 660
m_Y: 0
m_Width: 220
m_Height: 300
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
sprite: {fileID: 0}
spriteInfoList: []
fallbackSpriteAssets: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c513d75ad79d84bd9833eca2dfe7a6e0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
+25
View File
@@ -0,0 +1,25 @@
{
"frames": [
{ "filename": "0.png", "frame": { "x": 0, "y": 0, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "1.png", "frame": { "x": 220, "y": 0, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "2.png", "frame": { "x": 440, "y": 0, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "3.png", "frame": { "x": 660, "y": 0, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "4.png", "frame": { "x": 0, "y": 300, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "5.png", "frame": { "x": 220, "y": 300, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "6.png", "frame": { "x": 440, "y": 300, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "7.png", "frame": { "x": 660, "y": 300, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "8.png", "frame": { "x": 0, "y": 600, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "9.png", "frame": { "x": 220, "y": 600, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "comma.png", "frame": { "x": 440, "y": 600, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } },
{ "filename": "dot.png", "frame": { "x": 660, "y": 600, "w": 220, "h": 300 }, "rotated": false, "trimmed": false, "spriteSourceSize": { "x": 0, "y": 0, "w": 220, "h": 300 }, "sourceSize": { "w": 220, "h": 300 }, "pivot": { "x": 0, "y": 0 } }
],
"meta": {
"app": "Codex",
"version": "1.0",
"image": "digits_sheet.png",
"format": "RGBA8888",
"size": { "w": 880, "h": 900 },
"scale": 1,
"smartupdate": ""
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 0e51b92c67e914fb381f04cd84dfdaa6 guid: a8d8e0b19dd6645318dc4f33127a1288
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: userData:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

+156
View File
@@ -0,0 +1,156 @@
fileFormatVersion: 2
guid: b3677cc2099eb4197ba1e1b635577646
TextureImporter:
internalIDToNameTable:
- first:
213: 6259221888198996300
second: digits_sheet_1_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: iOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: digits_sheet_1_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 220
height: 300
alignment: 6
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: c41737005293dd650800000000000000
internalID: 6259221888198996300
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 65ac7658d81854cf0b9909d468384329
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
digits_sheet_1_0: 6259221888198996300
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1 +0,0 @@
{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","MtRendering":false,"GraphicsJobs":false,"GpuSkinning":true,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"IL2CPP","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"iOS","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"6000.3.26f1","Branch":"6000.3/staging","Changeset":"de8167e7440c","Date":1790706048},"Dependencies":["com.coplaydev.unity-mcp@10.3.0","com.esotericsoftware.spine.spine-csharp@4.2.37","com.esotericsoftware.spine.spine-unity@4.2.120","com.esotericsoftware.spine.timeline@4.2.15","com.esotericsoftware.spine.urp-shaders@4.2.49","com.unity.2d.sprite@1.0.0","com.unity.ai.assistant@2.20.0-pre.2","com.unity.ai.inference@2.6.1","com.unity.burst@1.8.30","com.unity.cinemachine@2.10.7","com.unity.collab-proxy@2.13.6","com.unity.collections@2.6.8","com.unity.dt.app-ui@2.2.4","com.unity.ext.nunit@2.0.5","com.unity.ide.rider@3.0.40","com.unity.ide.visualstudio@2.0.26","com.unity.ide.vscode@1.2.5","com.unity.mathematics@1.3.3","com.unity.modules.accessibility@1.0.0","com.unity.modules.adaptiveperformance@1.0.0","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.hierarchycore@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.subsystems@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vectorgraphics@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.vr@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.unity.multiplayer.center@1.0.1","com.unity.nuget.mono-cecil@1.11.6","com.unity.nuget.newtonsoft-json@3.2.2","com.unity.render-pipelines.core@17.3.0","com.unity.render-pipelines.universal@17.3.0","com.unity.render-pipelines.universal-config@17.0.3","com.unity.searcher@4.9.5","com.unity.shadergraph@17.3.0","com.unity.test-framework.performance@3.5.0","com.unity.test-framework@1.6.0","com.unity.timeline@1.8.13","com.unity.ugui@2.0.0","com.unity.visualeffectgraph@17.3.0","com.unity.visualscripting@1.9.12"],"Results":[]}
@@ -1 +0,0 @@
{"MeasurementCount":-1}
+125
View File
@@ -944,6 +944,7 @@ RectTransform:
- {fileID: 1567128866} - {fileID: 1567128866}
- {fileID: 1102178707} - {fileID: 1102178707}
- {fileID: 2073815149} - {fileID: 2073815149}
- {fileID: 1951844254}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
@@ -1139,6 +1140,130 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1951844253
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1122275124}
m_Modifications:
- target: {fileID: 83385421971547977, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_Name
value: FontsSample
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_SizeDelta.x
value: 1229.4
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_SizeDelta.y
value: 50
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -170
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: cf02609f2e4ed4b588ba2f99878b5183, type: 3}
--- !u!224 &1951844254 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 2376410396674282947, guid: cf02609f2e4ed4b588ba2f99878b5183,
type: 3}
m_PrefabInstance: {fileID: 1951844253}
m_PrefabAsset: {fileID: 0}
--- !u!224 &2073815149 stripped --- !u!224 &2073815149 stripped
RectTransform: RectTransform:
m_CorrespondingSourceObject: {fileID: 8332918891868354447, guid: 027c28fce3a00424a8de120c60655fb6, m_CorrespondingSourceObject: {fileID: 8332918891868354447, guid: 027c28fce3a00424a8de120c60655fb6,
@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 8407dd29e03460a49b26942f7405cf2e guid: 37f070e1d3e614155bab7fdef24e781f
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
@@ -0,0 +1,75 @@
using System.Globalization;
using System.Text;
using TMPro;
using UnityEngine;
[RequireComponent(typeof(TextMeshProUGUI))]
public class digits_sheet_auto : MonoBehaviour
{
[SerializeField, Tooltip("要显示的数字,支持小数和负数")]
private double value;
[SerializeField, Tooltip("是否显示千分位逗号")]
private bool showComma = true;
[SerializeField, Tooltip("最多保留几位小数,尾数为 0 时不显示")]
private int decimalPlaces = 3;
private TextMeshProUGUI label;
private void Awake()
{
label = GetComponent<TextMeshProUGUI>();
if (label == null)
label = gameObject.AddComponent<TextMeshProUGUI>();
label.richText = true;
Refresh();
}
private void OnValidate()
{
label = GetComponent<TextMeshProUGUI>();
if (label != null)
Refresh();
}
public void SetValue(double newValue)
{
value = newValue;
Refresh();
}
private void Refresh()
{
if (label == null)
return;
int places = Mathf.Clamp(decimalPlaces, 0, 15);
string format = showComma ? "#,##0" : "0";
if (places > 0)
format += "." + new string('#', places);
string number = value.ToString(format, CultureInfo.InvariantCulture);
label.text = ToSpriteTags(number);
}
private static string ToSpriteTags(string number)
{
var sb = new StringBuilder(number.Length * 24);
foreach (char c in number)
{
if (c >= '0' && c <= '9')
sb.Append("<sprite name=\"").Append(c).Append("\">");
else if (c == ',')
sb.Append("<sprite name=\"comma\">");
else if (c == '.')
sb.Append("<sprite name=\"dot\">");
else
sb.Append(c); // 图集里没有负号,负号退回普通字体
}
return sb.ToString();
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: aff4690ca9bc94b8b84c2ee53b298588
@@ -0,0 +1,30 @@
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(digits_sheet_auto))]
public class digits_sheet_autoEditor : Editor
{
public override void OnInspectorGUI()
{
serializedObject.Update();
SerializedProperty prop = serializedObject.GetIterator();
bool enterChildren = true;
while (prop.NextVisible(enterChildren))
{
enterChildren = false;
if (prop.name == "m_Script")
continue;
if (prop.name == "showComma")
EditorGUILayout.PropertyField(prop, new GUIContent("显示逗号‘,’"));
else if (prop.name == "decimalPlaces")
EditorGUILayout.PropertyField(prop, new GUIContent("保留小数点位数"));
else
EditorGUILayout.PropertyField(prop, true);
}
serializedObject.ApplyModifiedProperties();
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 48f5d0673cac847c3b3da256f68eeb4e
File diff suppressed because it is too large. Load diff
+1 -2
View File
@@ -34,8 +34,7 @@ GraphicsSettings:
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: m_PreloadedShaders: []
- {fileID: 20000000, guid: c2e91508e48ee474b871d4dd48d772a3, type: 2}
m_PreloadShadersBatchTimeLimit: -1 m_PreloadShadersBatchTimeLimit: -1
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0} type: 0}
+2 -3
View File
@@ -148,8 +148,7 @@ PlayerSettings:
visionOSBundleVersion: 1.0 visionOSBundleVersion: 1.0
tvOSBundleVersion: 1.0 tvOSBundleVersion: 1.0
bundleVersion: 0.1.0 bundleVersion: 0.1.0
preloadedAssets: preloadedAssets: []
- {fileID: 11400000, guid: 1b1c20d82303e4b5781c3ef50ac1449f, type: 2}
metroInputSource: 0 metroInputSource: 0
wsaTransparentSwapchain: 0 wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1 m_HolographicPauseOnTrackingLoss: 1
@@ -843,7 +842,7 @@ PlayerSettings:
webWasm2023: 0 webWasm2023: 0
webEnableSubmoduleStrippingCompatibility: 0 webEnableSubmoduleStrippingCompatibility: 0
scriptingDefineSymbols: scriptingDefineSymbols:
iPhone: SENTIS_ANALYTICS_ENABLED iPhone: SENTIS_ANALYTICS_ENABLED;APP_UI_EDITOR_ONLY
additionalCompilerArguments: {} additionalCompilerArguments: {}
platformArchitecture: {} platformArchitecture: {}
scriptingBackend: {} scriptingBackend: {}