summaryrefslogtreecommitdiff
path: root/Library/Artifacts/ee/ee98b5001fdca78c3d74fb7a01ed69b0
blob: ea05cd7a13b50216cf24fbccecf4ce996feb4562 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 32 d4 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......2.............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 74 22 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 t"..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 1a 00 00 00 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 5f 43 72 65 61 74 69 ............TMP_FontAsset_Creati
10a0 6f 6e 4d 65 6e 75 00 00 e5 21 00 00 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a onMenu...!..using.UnityEngine;..
10c0 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d using.UnityEditor;..using.System
10e0 2e 4c 69 6e 71 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0d 0a 75 73 69 6e 67 20 .Linq;..using.System.IO;..using.
1100 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 System.Collections;..using.Syste
1120 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 6e m.Collections.Generic;..using.Un
1140 69 74 79 45 6e 67 69 6e 65 2e 54 65 78 74 43 6f 72 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 ityEngine.TextCore;..using.Unity
1160 45 6e 67 69 6e 65 2e 54 65 78 74 43 6f 72 65 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 75 73 69 6e 67 Engine.TextCore.LowLevel;..using
1180 20 54 4d 50 72 6f 3b 0d 0a 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 54 4d 50 72 6f 0d 0a 7b 0d .TMPro;......namespace.TMPro..{.
11a0 0a 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 54 4d 50 5f 46 6f 6e .....public.static.class.TMP_Fon
11c0 74 41 73 73 65 74 5f 43 72 65 61 74 69 6f 6e 4d 65 6e 75 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 tAsset_CreationMenu......{......
11e0 20 20 20 20 2f 2a 0d 0a 20 20 20 20 20 20 20 20 5b 4d 65 6e 75 49 74 65 6d 28 22 41 73 73 65 74 ..../*..........[MenuItem("Asset
1200 73 2f 43 72 65 61 74 65 2f 54 65 78 74 4d 65 73 68 50 72 6f 2f 46 6f 6e 74 20 41 73 73 65 74 20 s/Create/TextMeshPro/Font.Asset.
1220 46 61 6c 6c 62 61 63 6b 22 2c 20 66 61 6c 73 65 2c 20 31 30 35 29 5d 0d 0a 20 20 20 20 20 20 20 Fallback",.false,.105)].........
1240 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 43 72 65 61 74 65 46 61 6c 6c 62 61 .public.static.void.CreateFallba
1260 63 6b 46 6f 6e 74 41 73 73 65 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 ckFontAsset()..........{........
1280 20 20 20 20 20 20 4f 62 6a 65 63 74 20 74 61 72 67 65 74 20 3d 20 53 65 6c 65 63 74 69 6f 6e 2e ......Object.target.=.Selection.
12a0 61 63 74 69 76 65 4f 62 6a 65 63 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 activeObject;................//.
12c0 4d 61 6b 65 20 73 75 72 65 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 69 73 20 61 20 66 6f 6e Make.sure.the.selection.is.a.fon
12e0 74 20 66 69 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 61 72 67 65 74 20 3d t.file..............if.(target.=
1300 3d 20 6e 75 6c 6c 20 7c 7c 20 74 61 72 67 65 74 2e 47 65 74 54 79 70 65 28 29 20 21 3d 20 74 79 =.null.||.target.GetType().!=.ty
1320 70 65 6f 66 28 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 peof(TMP_FontAsset))............
1340 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 57 61 ..{..................Debug.LogWa
1360 72 6e 69 6e 67 28 22 41 20 46 6f 6e 74 20 66 69 6c 65 20 6d 75 73 74 20 66 69 72 73 74 20 62 65 rning("A.Font.file.must.first.be
1380 20 73 65 6c 65 63 74 65 64 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 63 72 65 61 74 65 20 61 20 46 .selected.in.order.to.create.a.F
13a0 6f 6e 74 20 41 73 73 65 74 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 ont.Asset.");..................r
13c0 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 eturn;..............}...........
13e0 20 20 20 20 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 .....TMP_FontAsset.sourceFontAss
1400 65 74 20 3d 20 28 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 29 74 61 72 67 65 74 3b 20 0d 0a 0d 0a et.=.(TMP_FontAsset)target;.....
1420 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c ............string.sourceFontFil
1440 65 50 61 74 68 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 74 41 73 73 65 74 50 61 ePath.=.AssetDatabase.GetAssetPa
1460 74 68 28 74 61 72 67 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e th(target);................strin
1480 67 20 66 6f 6c 64 65 72 50 61 74 68 20 3d 20 50 61 74 68 2e 47 65 74 44 69 72 65 63 74 6f 72 79 g.folderPath.=.Path.GetDirectory
14a0 4e 61 6d 65 28 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 Name(sourceFontFilePath);.......
14c0 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 61 73 73 65 74 4e 61 6d 65 20 3d 20 50 61 74 68 2e 47 .......string.assetName.=.Path.G
14e0 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 78 74 65 6e 73 69 6f 6e 28 73 6f 75 72 63 etFileNameWithoutExtension(sourc
1500 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 eFontFilePath);................s
1520 74 72 69 6e 67 20 6e 65 77 41 73 73 65 74 46 69 6c 65 50 61 74 68 57 69 74 68 4e 61 6d 65 20 3d tring.newAssetFilePathWithName.=
1540 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 6e 65 72 61 74 65 55 6e 69 71 75 65 41 73 73 .AssetDatabase.GenerateUniqueAss
1560 65 74 50 61 74 68 28 66 6f 6c 64 65 72 50 61 74 68 20 2b 20 22 2f 22 20 2b 20 61 73 73 65 74 4e etPath(folderPath.+."/".+.assetN
1580 61 6d 65 20 2b 20 22 20 2d 20 46 61 6c 6c 62 61 63 6b 2e 61 73 73 65 74 22 29 3b 0d 0a 0d 0a 20 ame.+.".-.Fallback.asset");.....
15a0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 43 72 65 61 74 65 20 6e 65 77 20 54 4d 20 46 6f ...........////.Create.new.TM.Fo
15c0 6e 74 20 41 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 46 6f 6e 74 41 nt.Asset...............TMP_FontA
15e0 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 53 63 72 69 70 74 61 62 6c 65 4f 62 6a 65 63 sset.fontAsset.=.ScriptableObjec
1600 74 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 3e 28 t.CreateInstance<TMP_FontAsset>(
1620 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 43 72 );..............AssetDatabase.Cr
1640 65 61 74 65 41 73 73 65 74 28 66 6f 6e 74 41 73 73 65 74 2c 20 6e 65 77 41 73 73 65 74 46 69 6c eateAsset(fontAsset,.newAssetFil
1660 65 50 61 74 68 57 69 74 68 4e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 ePathWithName);................f
1680 6f 6e 74 41 73 73 65 74 2e 76 65 72 73 69 6f 6e 20 3d 20 22 31 2e 31 2e 30 22 3b 0d 0a 0d 0a 20 ontAsset.version.=."1.1.0";.....
16a0 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 66 61 63 65 49 6e 66 6f 20 3d 20 ...........fontAsset.faceInfo.=.
16c0 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 66 61 63 65 49 6e 66 6f 3b 0d 0a 0d 0a 20 20 20 sourceFontAsset.faceInfo;.......
16e0 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 .........fontAsset.m_SourceFontF
1700 69 6c 65 47 55 49 44 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 ileGUID.=.sourceFontAsset.m_Sour
1720 63 65 46 6f 6e 74 46 69 6c 65 47 55 49 44 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e ceFontFileGUID;..............fon
1740 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 74 6f 72 52 65 tAsset.m_SourceFontFile_EditorRe
1760 66 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 f.=.sourceFontAsset.m_SourceFont
1780 46 69 6c 65 5f 45 64 69 74 6f 72 52 65 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e File_EditorRef;..............fon
17a0 74 41 73 73 65 74 2e 61 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 20 3d 20 54 4d 50 tAsset.atlasPopulationMode.=.TMP
17c0 5f 46 6f 6e 74 41 73 73 65 74 2e 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 2e 44 _FontAsset.AtlasPopulationMode.D
17e0 79 6e 61 6d 69 63 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 74 6c 61 73 ynamic;................int.atlas
1800 57 69 64 74 68 20 3d 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 57 69 64 74 68 20 3d 20 73 Width.=.fontAsset.atlasWidth.=.s
1820 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 57 69 64 74 68 3b 0d 0a 20 20 20 20 ourceFontAsset.atlasWidth;......
1840 20 20 20 20 20 20 20 20 69 6e 74 20 61 74 6c 61 73 48 65 69 67 68 74 20 3d 20 66 6f 6e 74 41 73 ........int.atlasHeight.=.fontAs
1860 73 65 74 2e 61 74 6c 61 73 48 65 69 67 68 74 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 set.atlasHeight.=.sourceFontAsse
1880 74 2e 61 74 6c 61 73 48 65 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 t.atlasHeight;..............int.
18a0 61 74 6c 61 73 50 61 64 64 69 6e 67 20 3d 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 50 61 atlasPadding.=.fontAsset.atlasPa
18c0 64 64 69 6e 67 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 50 61 64 dding.=.sourceFontAsset.atlasPad
18e0 64 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c ding;..............fontAsset.atl
1900 61 73 52 65 6e 64 65 72 4d 6f 64 65 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 61 asRenderMode.=.sourceFontAsset.a
1920 74 6c 61 73 52 65 6e 64 65 72 4d 6f 64 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f tlasRenderMode;................/
1940 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 61 72 72 61 79 20 66 6f 72 20 74 68 65 20 66 6f 6e 74 20 /.Initialize.array.for.the.font.
1960 61 74 6c 61 73 20 74 65 78 74 75 72 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e atlas.textures...............fon
1980 74 41 73 73 65 74 2e 61 74 6c 61 73 54 65 78 74 75 72 65 73 20 3d 20 6e 65 77 20 54 65 78 74 75 tAsset.atlasTextures.=.new.Textu
19a0 72 65 32 44 5b 31 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 re2D[1];................//.Creat
19c0 65 20 61 6e 64 20 61 64 64 20 66 6f 6e 74 20 61 74 6c 61 73 20 74 65 78 74 75 72 65 0d 0a 20 20 e.and.add.font.atlas.texture....
19e0 20 20 20 20 20 20 20 20 20 20 54 65 78 74 75 72 65 32 44 20 74 65 78 74 75 72 65 20 3d 20 6e 65 ..........Texture2D.texture.=.ne
1a00 77 20 54 65 78 74 75 72 65 32 44 28 61 74 6c 61 73 57 69 64 74 68 2c 20 61 74 6c 61 73 48 65 69 w.Texture2D(atlasWidth,.atlasHei
1a20 67 68 74 2c 20 54 65 78 74 75 72 65 46 6f 72 6d 61 74 2e 41 6c 70 68 61 38 2c 20 66 61 6c 73 65 ght,.TextureFormat.Alpha8,.false
1a40 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6c 6f 72 33 32 5b 5d 20 63 6f 6c 6f 72 73 );..............Color32[].colors
1a60 20 3d 20 6e 65 77 20 43 6f 6c 6f 72 33 32 5b 61 74 6c 61 73 57 69 64 74 68 20 2a 20 61 74 6c 61 .=.new.Color32[atlasWidth.*.atla
1a80 73 48 65 69 67 68 74 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 65 78 74 75 72 65 2e 53 sHeight];..............texture.S
1aa0 65 74 50 69 78 65 6c 73 33 32 28 63 6f 6c 6f 72 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 etPixels32(colors);.............
1ac0 20 20 20 74 65 78 74 75 72 65 2e 6e 61 6d 65 20 3d 20 61 73 73 65 74 4e 61 6d 65 20 2b 20 22 20 ...texture.name.=.assetName.+.".
1ae0 41 74 6c 61 73 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 61 Atlas";..............fontAsset.a
1b00 74 6c 61 73 54 65 78 74 75 72 65 73 5b 30 5d 20 3d 20 74 65 78 74 75 72 65 3b 0d 0a 20 20 20 20 tlasTextures[0].=.texture;......
1b20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 64 64 4f 62 6a 65 63 74 54 ........AssetDatabase.AddObjectT
1b40 6f 41 73 73 65 74 28 74 65 78 74 75 72 65 2c 20 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 oAsset(texture,.fontAsset);.....
1b60 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 66 72 65 65 20 72 65 63 74 61 6e 67 6c 65 ...........//.Add.free.rectangle
1b80 20 6f 66 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 74 65 78 74 75 72 65 2e 0d 0a 20 20 .of.the.size.of.the.texture.....
1ba0 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 20 3d 20 ..........int.packingModifier.=.
1bc0 28 28 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 29 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c ((GlyphRasterModes)fontAsset.atl
1be0 61 73 52 65 6e 64 65 72 4d 6f 64 65 20 26 20 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 2e asRenderMode.&.GlyphRasterModes.
1c00 52 41 53 54 45 52 5f 4d 4f 44 45 5f 42 49 54 4d 41 50 29 20 3d 3d 20 47 6c 79 70 68 52 61 73 74 RASTER_MODE_BITMAP).==.GlyphRast
1c20 65 72 4d 6f 64 65 73 2e 52 41 53 54 45 52 5f 4d 4f 44 45 5f 42 49 54 4d 41 50 20 3f 20 30 20 3a erModes.RASTER_MODE_BITMAP.?.0.:
1c40 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 46 72 65 .1;..............fontAsset.m_Fre
1c60 65 47 6c 79 70 68 52 65 63 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 47 6c 79 70 68 52 65 63 74 eGlyphRects.=.new.List<GlyphRect
1c80 3e 28 29 20 7b 20 6e 65 77 20 47 6c 79 70 68 52 65 63 74 28 30 2c 20 30 2c 20 61 74 6c 61 73 57 >().{.new.GlyphRect(0,.0,.atlasW
1ca0 69 64 74 68 20 2d 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 2c 20 61 74 6c 61 73 48 65 69 idth.-.packingModifier,.atlasHei
1cc0 67 68 74 20 2d 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 29 20 7d 3b 0d 0a 20 20 20 20 20 ght.-.packingModifier).};.......
1ce0 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 55 73 65 64 47 6c 79 70 68 52 65 63 74 .......fontAsset.m_UsedGlyphRect
1d00 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 47 6c 79 70 68 52 65 63 74 3e 28 29 3b 0d 0a 0d 0a 20 20 s.=.new.List<GlyphRect>();......
1d20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 6e 65 77 20 4d 61 74 65 72 69 61 6c ..........//.Create.new.Material
1d40 20 61 6e 64 20 41 64 64 20 69 74 20 61 73 20 53 75 62 2d 41 73 73 65 74 0d 0a 20 20 20 20 20 20 .and.Add.it.as.Sub-Asset........
1d60 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 20 3d 20 6e 65 ......Material.tmp_material.=.ne
1d80 77 20 4d 61 74 65 72 69 61 6c 28 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 6d 61 74 65 72 w.Material(sourceFontAsset.mater
1da0 69 61 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 ial);................tmp_materia
1dc0 6c 2e 6e 61 6d 65 20 3d 20 74 65 78 74 75 72 65 2e 6e 61 6d 65 20 2b 20 22 20 4d 61 74 65 72 69 l.name.=.texture.name.+.".Materi
1de0 61 6c 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 al";..............tmp_material.S
1e00 65 74 54 65 78 74 75 72 65 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 4d 61 69 etTexture(ShaderUtilities.ID_Mai
1e20 6e 54 65 78 2c 20 74 65 78 74 75 72 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 nTex,.texture);..............tmp
1e40 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 _material.SetFloat(ShaderUtiliti
1e60 65 73 2e 49 44 5f 54 65 78 74 75 72 65 57 69 64 74 68 2c 20 61 74 6c 61 73 57 69 64 74 68 29 3b es.ID_TextureWidth,.atlasWidth);
1e80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c ..............tmp_material.SetFl
1ea0 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 54 65 78 74 75 72 65 48 65 oat(ShaderUtilities.ID_TextureHe
1ec0 69 67 68 74 2c 20 61 74 6c 61 73 48 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ight,.atlasHeight);.............
1ee0 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 ...tmp_material.SetFloat(ShaderU
1f00 74 69 6c 69 74 69 65 73 2e 49 44 5f 47 72 61 64 69 65 6e 74 53 63 61 6c 65 2c 20 61 74 6c 61 73 tilities.ID_GradientScale,.atlas
1f20 50 61 64 64 69 6e 67 20 2b 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 29 3b 0d 0a 0d 0a 20 Padding.+.packingModifier);.....
1f40 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 ...........tmp_material.SetFloat
1f60 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 57 65 69 67 68 74 4e 6f 72 6d 61 6c (ShaderUtilities.ID_WeightNormal
1f80 2c 20 66 6f 6e 74 41 73 73 65 74 2e 6e 6f 72 6d 61 6c 53 74 79 6c 65 29 3b 0d 0a 20 20 20 20 20 ,.fontAsset.normalStyle);.......
1fa0 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 .......tmp_material.SetFloat(Sha
1fc0 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 57 65 69 67 68 74 42 6f 6c 64 2c 20 66 6f 6e 74 derUtilities.ID_WeightBold,.font
1fe0 41 73 73 65 74 2e 62 6f 6c 64 53 74 79 6c 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Asset.boldStyle);...............
2000 20 66 6f 6e 74 41 73 73 65 74 2e 6d 61 74 65 72 69 61 6c 20 3d 20 74 6d 70 5f 6d 61 74 65 72 69 .fontAsset.material.=.tmp_materi
2020 61 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 al;................AssetDatabase
2040 2e 41 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 28 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2c 20 .AddObjectToAsset(tmp_material,.
2060 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 fontAsset);................//.Ad
2080 64 20 46 6f 6e 74 20 41 73 73 65 74 20 43 72 65 61 74 69 6f 6e 20 53 65 74 74 69 6e 67 73 0d 0a d.Font.Asset.Creation.Settings..
20a0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ............//.TODO.............
20c0 20 20 20 2f 2f 20 4e 6f 74 20 73 75 72 65 20 69 66 20 74 68 69 73 20 69 73 20 73 74 69 6c 6c 20 ...//.Not.sure.if.this.is.still.
20e0 6e 65 63 65 73 73 61 72 79 20 69 6e 20 6e 65 77 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 55 necessary.in.newer.versions.of.U
2100 6e 69 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 nity...............EditorUtility
2120 2e 53 65 74 44 69 72 74 79 28 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .SetDirty(fontAsset);...........
2140 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 53 61 76 65 41 73 73 65 74 73 28 29 3b .....AssetDatabase.SaveAssets();
2160 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2a 2f 0d 0a 0d 0a 20 20 20 20 20 ..........}..........*/.........
2180 20 20 20 2f 2f 5b 4d 65 6e 75 49 74 65 6d 28 22 41 73 73 65 74 73 2f 43 72 65 61 74 65 2f 54 65 ...//[MenuItem("Assets/Create/Te
21a0 78 74 4d 65 73 68 50 72 6f 2f 46 6f 6e 74 20 41 73 73 65 74 20 23 25 46 31 32 22 2c 20 74 72 75 xtMeshPro/Font.Asset.#%F12",.tru
21c0 65 29 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f e)]..........//public.static.boo
21e0 6c 20 43 72 65 61 74 65 46 6f 6e 74 41 73 73 65 74 4d 65 6e 75 56 61 6c 69 64 61 74 69 6f 6e 28 l.CreateFontAssetMenuValidation(
2200 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 72 65 )..........//{..........//....re
2220 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 7d 0d 0a 0d 0a 20 20 20 20 turn.false;..........//}........
2240 20 20 20 20 5b 4d 65 6e 75 49 74 65 6d 28 22 41 73 73 65 74 73 2f 43 72 65 61 74 65 2f 54 65 78 ....[MenuItem("Assets/Create/Tex
2260 74 4d 65 73 68 50 72 6f 2f 46 6f 6e 74 20 41 73 73 65 74 20 23 25 46 31 32 22 2c 20 66 61 6c 73 tMeshPro/Font.Asset.#%F12",.fals
2280 65 2c 20 31 30 30 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 e,.100)]..........public.static.
22a0 76 6f 69 64 20 43 72 65 61 74 65 46 6f 6e 74 41 73 73 65 74 28 29 0d 0a 20 20 20 20 20 20 20 20 void.CreateFontAsset()..........
22c0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 62 6a 65 63 74 20 74 61 72 67 65 74 20 3d 20 53 {..............Object.target.=.S
22e0 65 6c 65 63 74 69 6f 6e 2e 61 63 74 69 76 65 4f 62 6a 65 63 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 election.activeObject;..........
2300 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e ......//.Make.sure.the.selection
2320 20 69 73 20 61 20 66 6f 6e 74 20 66 69 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 .is.a.font.file..............if.
2340 28 74 61 72 67 65 74 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 74 61 72 67 65 74 2e 47 65 74 54 79 70 (target.==.null.||.target.GetTyp
2360 65 28 29 20 21 3d 20 74 79 70 65 6f 66 28 46 6f 6e 74 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 e().!=.typeof(Font))............
2380 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 57 61 ..{..................Debug.LogWa
23a0 72 6e 69 6e 67 28 22 41 20 46 6f 6e 74 20 66 69 6c 65 20 6d 75 73 74 20 66 69 72 73 74 20 62 65 rning("A.Font.file.must.first.be
23c0 20 73 65 6c 65 63 74 65 64 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 63 72 65 61 74 65 20 61 20 46 .selected.in.order.to.create.a.F
23e0 6f 6e 74 20 41 73 73 65 74 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 ont.Asset.");..................r
2400 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 eturn;..............}...........
2420 20 20 20 20 20 46 6f 6e 74 20 73 6f 75 72 63 65 46 6f 6e 74 20 3d 20 28 46 6f 6e 74 29 74 61 72 .....Font.sourceFont.=.(Font)tar
2440 67 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 6f 75 72 63 get;................string.sourc
2460 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 eFontFilePath.=.AssetDatabase.Ge
2480 74 41 73 73 65 74 50 61 74 68 28 74 61 72 67 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 tAssetPath(target);.............
24a0 20 20 20 73 74 72 69 6e 67 20 66 6f 6c 64 65 72 50 61 74 68 20 3d 20 50 61 74 68 2e 47 65 74 44 ...string.folderPath.=.Path.GetD
24c0 69 72 65 63 74 6f 72 79 4e 61 6d 65 28 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 29 irectoryName(sourceFontFilePath)
24e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 61 73 73 65 74 4e 61 6d 65 20 ;..............string.assetName.
2500 3d 20 50 61 74 68 2e 47 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 78 74 65 6e 73 69 =.Path.GetFileNameWithoutExtensi
2520 6f 6e 28 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 29 3b 0d 0a 0d 0a 20 20 20 20 20 on(sourceFontFilePath);.........
2540 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6e 65 77 41 73 73 65 74 46 69 6c 65 50 61 74 68 57 69 .......string.newAssetFilePathWi
2560 74 68 4e 61 6d 65 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 6e 65 72 61 74 65 55 thName.=.AssetDatabase.GenerateU
2580 6e 69 71 75 65 41 73 73 65 74 50 61 74 68 28 66 6f 6c 64 65 72 50 61 74 68 20 2b 20 22 2f 22 20 niqueAssetPath(folderPath.+."/".
25a0 2b 20 61 73 73 65 74 4e 61 6d 65 20 2b 20 22 20 53 44 46 2e 61 73 73 65 74 22 29 3b 0d 0a 0d 0a +.assetName.+.".SDF.asset");....
25c0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 43 72 65 61 74 65 20 6e 65 77 20 54 4d 20 46 ............////.Create.new.TM.F
25e0 6f 6e 74 20 41 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 46 6f 6e 74 ont.Asset...............TMP_Font
2600 41 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 53 63 72 69 70 74 61 62 6c 65 4f 62 6a 65 Asset.fontAsset.=.ScriptableObje
2620 63 74 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 3e ct.CreateInstance<TMP_FontAsset>
2640 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 43 ();..............AssetDatabase.C
2660 72 65 61 74 65 41 73 73 65 74 28 66 6f 6e 74 41 73 73 65 74 2c 20 6e 65 77 41 73 73 65 74 46 69 reateAsset(fontAsset,.newAssetFi
2680 6c 65 50 61 74 68 57 69 74 68 4e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 lePathWithName);................
26a0 66 6f 6e 74 41 73 73 65 74 2e 76 65 72 73 69 6f 6e 20 3d 20 22 31 2e 31 2e 30 22 3b 0d 0a 0d 0a fontAsset.version.=."1.1.0";....
26c0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 74 20 66 61 63 65 20 69 6e 66 6f 72 6d 61 74 ............//.Set.face.informat
26e0 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 49 6e 69 74 ion..............FontEngine.Init
2700 69 61 6c 69 7a 65 46 6f 6e 74 45 6e 67 69 6e 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ializeFontEngine();.............
2720 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 4c 6f 61 64 46 6f 6e 74 46 61 63 65 28 73 6f 75 72 63 65 46 .FontEngine.LoadFontFace(sourceF
2740 6f 6e 74 2c 20 39 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 ont,.90);..............fontAsset
2760 2e 66 61 63 65 49 6e 66 6f 20 3d 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 47 65 74 46 61 63 65 49 6e .faceInfo.=.FontEngine.GetFaceIn
2780 66 6f 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 74 20 66 6f 6e 74 fo();................//.Set.font
27a0 20 72 65 66 65 72 65 6e 63 65 20 61 6e 64 20 47 55 49 44 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .reference.and.GUID.............
27c0 20 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 47 55 49 44 20 .fontAsset.m_SourceFontFileGUID.
27e0 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 73 73 65 74 50 61 74 68 54 6f 47 55 49 44 28 =.AssetDatabase.AssetPathToGUID(
2800 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 sourceFontFilePath);............
2820 20 20 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 ..fontAsset.m_SourceFontFile_Edi
2840 74 6f 72 52 65 66 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 torRef.=.sourceFont;............
2860 20 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 20 ..fontAsset.atlasPopulationMode.
2880 3d 20 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 2e 44 79 6e 61 6d 69 63 3b 0d 0a =.AtlasPopulationMode.Dynamic;..
28a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 61 75 6c 74 20 61 74 6c 61 73 20 72 ..............//.Default.atlas.r
28c0 65 73 6f 6c 75 74 69 6f 6e 20 69 73 20 31 30 32 34 20 78 20 31 30 32 34 2e 0d 0a 20 20 20 20 20 esolution.is.1024.x.1024........
28e0 20 20 20 20 20 20 20 69 6e 74 20 61 74 6c 61 73 57 69 64 74 68 20 3d 20 66 6f 6e 74 41 73 73 65 .......int.atlasWidth.=.fontAsse
2900 74 2e 61 74 6c 61 73 57 69 64 74 68 20 3d 20 31 30 32 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 t.atlasWidth.=.1024;............
2920 20 20 69 6e 74 20 61 74 6c 61 73 48 65 69 67 68 74 20 3d 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 ..int.atlasHeight.=.fontAsset.at
2940 6c 61 73 48 65 69 67 68 74 20 3d 20 31 30 32 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 lasHeight.=.1024;..............i
2960 6e 74 20 61 74 6c 61 73 50 61 64 64 69 6e 67 20 3d 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 nt.atlasPadding.=.fontAsset.atla
2980 73 50 61 64 64 69 6e 67 20 3d 20 39 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 sPadding.=.9;..............fontA
29a0 73 73 65 74 2e 61 74 6c 61 73 52 65 6e 64 65 72 4d 6f 64 65 20 3d 20 47 6c 79 70 68 52 65 6e 64 sset.atlasRenderMode.=.GlyphRend
29c0 65 72 4d 6f 64 65 2e 53 44 46 41 41 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 erMode.SDFAA;................//.
29e0 49 6e 69 74 69 61 6c 69 7a 65 20 61 72 72 61 79 20 66 6f 72 20 74 68 65 20 66 6f 6e 74 20 61 74 Initialize.array.for.the.font.at
2a00 6c 61 73 20 74 65 78 74 75 72 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 las.textures...............fontA
2a20 73 73 65 74 2e 61 74 6c 61 73 54 65 78 74 75 72 65 73 20 3d 20 6e 65 77 20 54 65 78 74 75 72 65 sset.atlasTextures.=.new.Texture
2a40 32 44 5b 31 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 2D[1];................//.Create.
2a60 61 74 6c 61 73 20 74 65 78 74 75 72 65 20 6f 66 20 73 69 7a 65 20 7a 65 72 6f 2e 0d 0a 20 20 20 atlas.texture.of.size.zero......
2a80 20 20 20 20 20 20 20 20 20 54 65 78 74 75 72 65 32 44 20 74 65 78 74 75 72 65 20 3d 20 6e 65 77 .........Texture2D.texture.=.new
2aa0 20 54 65 78 74 75 72 65 32 44 28 30 2c 20 30 2c 20 54 65 78 74 75 72 65 46 6f 72 6d 61 74 2e 41 .Texture2D(0,.0,.TextureFormat.A
2ac0 6c 70 68 61 38 2c 20 66 61 6c 73 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 65 lpha8,.false);................te
2ae0 78 74 75 72 65 2e 6e 61 6d 65 20 3d 20 61 73 73 65 74 4e 61 6d 65 20 2b 20 22 20 41 74 6c 61 73 xture.name.=.assetName.+.".Atlas
2b00 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 54 ";..............fontAsset.atlasT
2b20 65 78 74 75 72 65 73 5b 30 5d 20 3d 20 74 65 78 74 75 72 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 extures[0].=.texture;...........
2b40 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 ...AssetDatabase.AddObjectToAsse
2b60 74 28 74 65 78 74 75 72 65 2c 20 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 t(texture,.fontAsset);..........
2b80 20 20 20 20 20 20 2f 2f 20 41 64 64 20 66 72 65 65 20 72 65 63 74 61 6e 67 6c 65 20 6f 66 20 74 ......//.Add.free.rectangle.of.t
2ba0 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 74 65 78 74 75 72 65 2e 0d 0a 20 20 20 20 20 20 20 he.size.of.the.texture..........
2bc0 20 20 20 20 20 69 6e 74 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 20 3d 20 28 28 47 6c 79 .....int.packingModifier.=.((Gly
2be0 70 68 52 61 73 74 65 72 4d 6f 64 65 73 29 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 52 65 6e phRasterModes)fontAsset.atlasRen
2c00 64 65 72 4d 6f 64 65 20 26 20 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 2e 52 41 53 54 45 derMode.&.GlyphRasterModes.RASTE
2c20 52 5f 4d 4f 44 45 5f 42 49 54 4d 41 50 29 20 3d 3d 20 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 R_MODE_BITMAP).==.GlyphRasterMod
2c40 65 73 2e 52 41 53 54 45 52 5f 4d 4f 44 45 5f 42 49 54 4d 41 50 20 3f 20 30 20 3a 20 31 3b 0d 0a es.RASTER_MODE_BITMAP.?.0.:.1;..
2c60 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 66 72 65 65 47 6c 79 70 68 52 ............fontAsset.freeGlyphR
2c80 65 63 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 47 6c 79 70 68 52 65 63 74 3e 28 29 20 7b 20 6e ects.=.new.List<GlyphRect>().{.n
2ca0 65 77 20 47 6c 79 70 68 52 65 63 74 28 30 2c 20 30 2c 20 61 74 6c 61 73 57 69 64 74 68 20 2d 20 ew.GlyphRect(0,.0,.atlasWidth.-.
2cc0 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 2c 20 61 74 6c 61 73 48 65 69 67 68 74 20 2d 20 70 packingModifier,.atlasHeight.-.p
2ce0 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 29 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ackingModifier).};..............
2d00 66 6f 6e 74 41 73 73 65 74 2e 75 73 65 64 47 6c 79 70 68 52 65 63 74 73 20 3d 20 6e 65 77 20 4c fontAsset.usedGlyphRects.=.new.L
2d20 69 73 74 3c 47 6c 79 70 68 52 65 63 74 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ist<GlyphRect>();...............
2d40 20 2f 2f 20 43 72 65 61 74 65 20 6e 65 77 20 4d 61 74 65 72 69 61 6c 20 61 6e 64 20 41 64 64 20 .//.Create.new.Material.and.Add.
2d60 69 74 20 61 73 20 53 75 62 2d 41 73 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 68 61 it.as.Sub-Asset..............Sha
2d80 64 65 72 20 64 65 66 61 75 6c 74 5f 53 68 61 64 65 72 20 3d 20 53 68 61 64 65 72 2e 46 69 6e 64 der.default_Shader.=.Shader.Find
2da0 28 22 54 65 78 74 4d 65 73 68 50 72 6f 2f 44 69 73 74 61 6e 63 65 20 46 69 65 6c 64 22 29 3b 0d ("TextMeshPro/Distance.Field");.
2dc0 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 20 74 6d 70 5f 6d 61 74 65 72 69 .............Material.tmp_materi
2de0 61 6c 20 3d 20 6e 65 77 20 4d 61 74 65 72 69 61 6c 28 64 65 66 61 75 6c 74 5f 53 68 61 64 65 72 al.=.new.Material(default_Shader
2e00 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 6e );................tmp_material.n
2e20 61 6d 65 20 3d 20 74 65 78 74 75 72 65 2e 6e 61 6d 65 20 2b 20 22 20 4d 61 74 65 72 69 61 6c 22 ame.=.texture.name.+.".Material"
2e40 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 54 ;..............tmp_material.SetT
2e60 65 78 74 75 72 65 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 4d 61 69 6e 54 65 exture(ShaderUtilities.ID_MainTe
2e80 78 2c 20 74 65 78 74 75 72 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 x,.texture);..............tmp_ma
2ea0 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e terial.SetFloat(ShaderUtilities.
2ec0 49 44 5f 54 65 78 74 75 72 65 57 69 64 74 68 2c 20 61 74 6c 61 73 57 69 64 74 68 29 3b 0d 0a 20 ID_TextureWidth,.atlasWidth);...
2ee0 20 20 20 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 ...........tmp_material.SetFloat
2f00 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 54 65 78 74 75 72 65 48 65 69 67 68 (ShaderUtilities.ID_TextureHeigh
2f20 74 2c 20 61 74 6c 61 73 48 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t,.atlasHeight);................
2f40 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c tmp_material.SetFloat(ShaderUtil
2f60 69 74 69 65 73 2e 49 44 5f 47 72 61 64 69 65 6e 74 53 63 61 6c 65 2c 20 61 74 6c 61 73 50 61 64 ities.ID_GradientScale,.atlasPad
2f80 64 69 6e 67 20 2b 20 70 61 63 6b 69 6e 67 4d 6f 64 69 66 69 65 72 29 3b 0d 0a 0d 0a 20 20 20 20 ding.+.packingModifier);........
2fa0 20 20 20 20 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 ........tmp_material.SetFloat(Sh
2fc0 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 57 65 69 67 68 74 4e 6f 72 6d 61 6c 2c 20 66 aderUtilities.ID_WeightNormal,.f
2fe0 6f 6e 74 41 73 73 65 74 2e 6e 6f 72 6d 61 6c 53 74 79 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 ontAsset.normalStyle);..........
3000 20 20 20 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 ....tmp_material.SetFloat(Shader
3020 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 57 65 69 67 68 74 42 6f 6c 64 2c 20 66 6f 6e 74 41 73 73 Utilities.ID_WeightBold,.fontAss
3040 65 74 2e 62 6f 6c 64 53 74 79 6c 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f et.boldStyle);................fo
3060 6e 74 41 73 73 65 74 2e 6d 61 74 65 72 69 61 6c 20 3d 20 74 6d 70 5f 6d 61 74 65 72 69 61 6c 3b ntAsset.material.=.tmp_material;
3080 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 64 ................AssetDatabase.Ad
30a0 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 28 74 6d 70 5f 6d 61 74 65 72 69 61 6c 2c 20 66 6f 6e dObjectToAsset(tmp_material,.fon
30c0 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 46 tAsset);................//.Add.F
30e0 6f 6e 74 20 41 73 73 65 74 20 43 72 65 61 74 69 6f 6e 20 53 65 74 74 69 6e 67 73 0d 0a 20 20 20 ont.Asset.Creation.Settings.....
3100 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 2e 63 72 65 61 74 69 6f 6e 53 65 74 74 69 .........fontAsset.creationSetti
3120 6e 67 73 20 3d 20 6e 65 77 20 46 6f 6e 74 41 73 73 65 74 43 72 65 61 74 69 6f 6e 53 65 74 74 69 ngs.=.new.FontAssetCreationSetti
3140 6e 67 73 28 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 47 55 ngs(fontAsset.m_SourceFontFileGU
3160 49 44 2c 20 66 6f 6e 74 41 73 73 65 74 2e 66 61 63 65 49 6e 66 6f 2e 70 6f 69 6e 74 53 69 7a 65 ID,.fontAsset.faceInfo.pointSize
3180 2c 20 30 2c 20 61 74 6c 61 73 50 61 64 64 69 6e 67 2c 20 30 2c 20 31 30 32 34 2c 20 31 30 32 34 ,.0,.atlasPadding,.0,.1024,.1024
31a0 2c 20 37 2c 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 2c 20 28 69 6e 74 29 47 6c 79 70 68 52 65 6e ,.7,.string.Empty,.(int)GlyphRen
31c0 64 65 72 4d 6f 64 65 2e 53 44 46 41 41 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f derMode.SDFAA);................/
31e0 2f 20 4e 6f 74 20 73 75 72 65 20 69 66 20 74 68 69 73 20 69 73 20 73 74 69 6c 6c 20 6e 65 63 65 /.Not.sure.if.this.is.still.nece
3200 73 73 61 72 79 20 69 6e 20 6e 65 77 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 55 6e 69 74 79 ssary.in.newer.versions.of.Unity
3220 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 53 65 74 ...............EditorUtility.Set
3240 44 69 72 74 79 28 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Dirty(fontAsset);...............
3260 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 53 61 76 65 41 73 73 65 74 73 28 29 3b 0d 0a 20 20 .AssetDatabase.SaveAssets();....
3280 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ......}......}..}...............
32a0 00 00 00 00 00 00 00 00 1a 00 00 00 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 5f 43 72 65 61 74 69 ............TMP_FontAsset_Creati
32c0 6f 6e 4d 65 6e 75 00 00 05 00 00 00 54 4d 50 72 6f 00 00 00 onMenu......TMPro...