summaryrefslogtreecommitdiff
path: root/Library/Artifacts/7d/7d60037118799cadcd00a53424a11914
blob: aed503650cdb9c7f66d50a61b7c60cd5418ecb04 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 b2 40 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe .......@............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 e0 a1 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 ................................
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 15 00 00 00 54 4d 50 5f 53 70 72 69 74 65 41 73 73 65 74 45 64 69 74 6f ............TMP_SpriteAssetEdito
10a0 72 00 00 00 4c a1 00 00 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a 75 73 69 6e r...L...using.UnityEngine;..usin
10c0 67 20 55 6e 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 g.UnityEngine.TextCore;..using.U
10e0 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 49 6e nityEditor;..using.UnityEditorIn
1100 74 65 72 6e 61 6c 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e ternal;..using.System.Collection
1120 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 54 4d s.Generic;..........namespace.TM
1140 50 72 6f 2e 45 64 69 74 6f 72 55 74 69 6c 69 74 69 65 73 0d 0a 7b 0d 0a 0d 0a 20 20 20 20 5b 43 Pro.EditorUtilities..{........[C
1160 75 73 74 6f 6d 45 64 69 74 6f 72 28 74 79 70 65 6f 66 28 54 4d 50 5f 53 70 72 69 74 65 41 73 73 ustomEditor(typeof(TMP_SpriteAss
1180 65 74 29 29 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 54 4d 50 5f 53 70 72 69 et))]......public.class.TMP_Spri
11a0 74 65 41 73 73 65 74 45 64 69 74 6f 72 20 3a 20 45 64 69 74 6f 72 0d 0a 20 20 20 20 7b 0d 0a 20 teAssetEditor.:.Editor......{...
11c0 20 20 20 20 20 20 20 73 74 72 75 63 74 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 0d 0a 20 20 20 .......struct.UI_PanelState.....
11e0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 .....{..............public.stati
1200 63 20 62 6f 6f 6c 20 73 70 72 69 74 65 41 73 73 65 74 49 6e 66 6f 50 61 6e 65 6c 20 3d 20 74 72 c.bool.spriteAssetInfoPanel.=.tr
1220 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 ue;..............public.static.b
1240 6f 6f 6c 20 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 74 50 61 6e 65 6c 20 3d 20 74 ool.fallbackSpriteAssetPanel.=.t
1260 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 rue;..............public.static.
1280 62 6f 6f 6c 20 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 3b 0d bool.spriteCharacterTablePanel;.
12a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 .............public.static.bool.
12c0 73 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 spriteGlyphTablePanel;..........
12e0 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 73 74 72 69 }............private.static.stri
1300 6e 67 5b 5d 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 20 3d 20 6e 65 77 20 73 74 72 69 6e 67 ng[].s_UiStateLabel.=.new.string
1320 5b 5d 20 7b 20 22 3c 69 3e 28 43 6c 69 63 6b 20 74 6f 20 63 6f 6c 6c 61 70 73 65 29 3c 2f 69 3e [].{."<i>(Click.to.collapse)</i>
1340 20 22 2c 20 22 3c 69 3e 28 43 6c 69 63 6b 20 74 6f 20 65 78 70 61 6e 64 29 3c 2f 69 3e 20 22 20 .",."<i>(Click.to.expand)</i>.".
1360 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 78 3b };............int.m_moveToIndex;
1380 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 ..........int.m_selectedElement.
13a0 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 =.-1;..........int.m_CurrentChar
13c0 61 63 74 65 72 50 61 67 65 3b 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e acterPage;..........int.m_Curren
13e0 74 47 6c 79 70 68 50 61 67 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 73 74 72 tGlyphPage;............const.str
1400 69 6e 67 20 6b 5f 55 6e 64 6f 52 65 64 6f 20 3d 20 22 55 6e 64 6f 52 65 64 6f 50 65 72 66 6f 72 ing.k_UndoRedo.=."UndoRedoPerfor
1420 6d 65 64 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6d 5f 43 68 61 72 61 63 med";............string.m_Charac
1440 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 4c 69 73 74 3c terSearchPattern;..........List<
1460 69 6e 74 3e 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 3b 0d 0a 20 20 20 int>.m_CharacterSearchList;.....
1480 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 72 .....bool.m_IsCharacterSearchDir
14a0 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6d 5f 47 6c 79 70 68 53 65 61 ty;............string.m_GlyphSea
14c0 72 63 68 50 61 74 74 65 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 4c 69 73 74 3c 69 6e 74 3e 20 6d rchPattern;..........List<int>.m
14e0 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 3b 0d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 _GlyphSearchList;..........bool.
1500 6d 5f 49 73 47 6c 79 70 68 53 65 61 72 63 68 44 69 72 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 m_IsGlyphSearchDirty;...........
1520 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 73 70 72 69 74 65 41 74 6c 61 .SerializedProperty.m_spriteAtla
1540 73 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 s_prop;..........SerializedPrope
1560 72 74 79 20 6d 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 53 65 rty.m_material_prop;..........Se
1580 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 rializedProperty.m_SpriteCharact
15a0 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c erTableProperty;..........Serial
15c0 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 izedProperty.m_SpriteGlyphTableP
15e0 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 52 65 6f 72 64 65 72 61 62 6c 65 4c 69 73 roperty;..........ReorderableLis
1600 74 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 74 4c 69 73 74 3b 0d 0a 0d 0a t.m_fallbackSpriteAssetList;....
1620 20 20 20 20 20 20 20 20 54 4d 50 5f 53 70 72 69 74 65 41 73 73 65 74 20 6d 5f 53 70 72 69 74 65 ........TMP_SpriteAsset.m_Sprite
1640 41 73 73 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 69 73 41 73 73 65 74 44 69 Asset;............bool.isAssetDi
1660 72 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 5f 78 4f 66 66 73 65 74 3b rty;............float.m_xOffset;
1680 0d 0a 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 5f 79 4f 66 66 73 65 74 3b 0d 0a 20 20 20 20 ..........float.m_yOffset;......
16a0 20 20 20 20 66 6c 6f 61 74 20 6d 5f 78 41 64 76 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 66 ....float.m_xAdvance;..........f
16c0 6c 6f 61 74 20 6d 5f 73 63 61 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 loat.m_scale;............public.
16e0 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 void.OnEnable()..........{......
1700 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 41 73 73 65 74 20 3d 20 74 61 72 67 65 74 20 61 ........m_SpriteAsset.=.target.a
1720 73 20 54 4d 50 5f 53 70 72 69 74 65 41 73 73 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 s.TMP_SpriteAsset;..............
1740 20 20 6d 5f 73 70 72 69 74 65 41 74 6c 61 73 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 ..m_spriteAtlas_prop.=.serialize
1760 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 73 70 72 69 74 65 53 68 65 65 dObject.FindProperty("spriteShee
1780 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f t");..............m_material_pro
17a0 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 p.=.serializedObject.FindPropert
17c0 79 28 22 6d 61 74 65 72 69 61 6c 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 y("material");..............m_Sp
17e0 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 riteCharacterTableProperty.=.ser
1800 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 53 70 ializedObject.FindProperty("m_Sp
1820 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 riteCharacterTable");...........
1840 20 20 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 20 3d 20 ...m_SpriteGlyphTableProperty.=.
1860 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d serializedObject.FindProperty("m
1880 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 _SpriteGlyphTable");............
18a0 20 20 20 20 2f 2f 20 46 61 6c 6c 62 61 63 6b 20 54 4d 50 20 53 70 72 69 74 65 20 41 73 73 65 74 ....//.Fallback.TMP.Sprite.Asset
18c0 20 6c 69 73 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 72 .list..............m_fallbackSpr
18e0 69 74 65 41 73 73 65 74 4c 69 73 74 20 3d 20 6e 65 77 20 52 65 6f 72 64 65 72 61 62 6c 65 4c 69 iteAssetList.=.new.ReorderableLi
1900 73 74 28 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 20 73 65 72 69 61 6c 69 7a 65 64 4f st(serializedObject,.serializedO
1920 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 66 61 6c 6c 62 61 63 6b 53 70 72 69 bject.FindProperty("fallbackSpri
1940 74 65 41 73 73 65 74 73 22 29 2c 20 74 72 75 65 2c 20 74 72 75 65 2c 20 74 72 75 65 2c 20 74 72 teAssets"),.true,.true,.true,.tr
1960 75 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 ue);................m_fallbackSp
1980 72 69 74 65 41 73 73 65 74 4c 69 73 74 2e 64 72 61 77 45 6c 65 6d 65 6e 74 43 61 6c 6c 62 61 63 riteAssetList.drawElementCallbac
19a0 6b 20 3d 20 28 52 65 63 74 20 72 65 63 74 2c 20 69 6e 74 20 69 6e 64 65 78 2c 20 62 6f 6f 6c 20 k.=.(Rect.rect,.int.index,.bool.
19c0 69 73 41 63 74 69 76 65 2c 20 62 6f 6f 6c 20 69 73 46 6f 63 75 73 65 64 29 20 3d 3e 0d 0a 20 20 isActive,.bool.isFocused).=>....
19e0 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ..........{..................var
1a00 20 65 6c 65 6d 65 6e 74 20 3d 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 74 .element.=.m_fallbackSpriteAsset
1a20 4c 69 73 74 2e 73 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 List.serializedProperty.GetArray
1a40 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 ElementAtIndex(index);..........
1a60 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 20 2b 3d 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ........rect.y.+=.2;............
1a80 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6e 65 ......EditorGUI.PropertyField(ne
1aa0 77 20 52 65 63 74 28 72 65 63 74 2e 78 2c 20 72 65 63 74 2e 79 2c 20 72 65 63 74 2e 77 69 64 74 w.Rect(rect.x,.rect.y,.rect.widt
1ac0 68 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 h,.EditorGUIUtility.singleLineHe
1ae0 69 67 68 74 29 2c 20 65 6c 65 6d 65 6e 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 29 ight),.element,.GUIContent.none)
1b00 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ;..............};...............
1b20 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 74 4c 69 73 74 2e 64 72 61 77 48 .m_fallbackSpriteAssetList.drawH
1b40 65 61 64 65 72 43 61 6c 6c 62 61 63 6b 20 3d 20 72 65 63 74 20 3d 3e 0d 0a 20 20 20 20 20 20 20 eaderCallback.=.rect.=>.........
1b60 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 .....{..................EditorGU
1b80 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e I.LabelField(rect,.new.GUIConten
1ba0 74 28 22 46 61 6c 6c 62 61 63 6b 20 53 70 72 69 74 65 20 41 73 73 65 74 20 4c 69 73 74 22 2c 20 t("Fallback.Sprite.Asset.List",.
1bc0 22 53 65 6c 65 63 74 20 74 68 65 20 53 70 72 69 74 65 20 41 73 73 65 74 73 20 74 68 61 74 20 77 "Select.the.Sprite.Assets.that.w
1be0 69 6c 6c 20 62 65 20 73 65 61 72 63 68 65 64 20 61 6e 64 20 75 73 65 64 20 61 73 20 66 61 6c 6c ill.be.searched.and.used.as.fall
1c00 62 61 63 6b 20 77 68 65 6e 20 61 20 67 69 76 65 6e 20 73 70 72 69 74 65 20 69 73 20 6d 69 73 73 back.when.a.given.sprite.is.miss
1c20 69 6e 67 20 66 72 6f 6d 20 74 68 69 73 20 73 70 72 69 74 65 20 61 73 73 65 74 2e 22 29 29 3b 0d ing.from.this.sprite.asset."));.
1c40 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a .............};..........}......
1c60 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 49 ........public.override.void.OnI
1c80 6e 73 70 65 63 74 6f 72 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 0d 0a 20 20 20 20 nspectorGUI()..........{........
1ca0 20 20 20 20 20 20 20 20 2f 2f 44 65 62 75 67 2e 4c 6f 67 28 22 4f 6e 49 6e 73 70 65 63 74 6f 72 ........//Debug.Log("OnInspector
1cc0 47 55 49 20 43 61 6c 6c 65 64 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e GUI.Called.");..............Even
1ce0 74 20 63 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 3b 0d t.currentEvent.=.Event.current;.
1d00 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 65 76 74 5f 63 6d 64 20 3d 20 63 75 .............string.evt_cmd.=.cu
1d20 72 72 65 6e 74 45 76 65 6e 74 2e 63 6f 6d 6d 61 6e 64 4e 61 6d 65 3b 20 2f 2f 20 47 65 74 20 43 rrentEvent.commandName;.//.Get.C
1d40 75 72 72 65 6e 74 20 45 76 65 6e 74 20 43 6f 6d 6d 61 6e 64 4e 61 6d 65 20 74 6f 20 63 68 65 63 urrent.Event.CommandName.to.chec
1d60 6b 20 66 6f 72 20 55 6e 64 6f 20 45 76 65 6e 74 73 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 k.for.Undo.Events...............
1d80 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 55 70 64 61 74 65 28 29 3b 0d 0a 0d 0a 20 .serializedObject.Update();.....
1da0 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 65 63 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 ...........Rect.rect;...........
1dc0 20 20 20 20 20 2f 2f 20 54 45 58 54 4d 45 53 48 50 52 4f 20 53 50 52 49 54 45 20 49 4e 46 4f 20 .....//.TEXTMESHPRO.SPRITE.INFO.
1de0 50 41 4e 45 4c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 PANEL..............GUILayout.Lab
1e00 65 6c 28 22 53 70 72 69 74 65 20 49 6e 66 6f 22 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 62 el("Sprite.Info",.EditorStyles.b
1e20 6f 6c 64 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 oldLabel);..............EditorGU
1e40 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 I.indentLevel.=.1;..............
1e60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 ..............EditorGUI.BeginCha
1e80 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ngeCheck();..............EditorG
1ea0 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 73 70 72 69 74 65 41 UILayout.PropertyField(m_spriteA
1ec0 74 6c 61 73 5f 70 72 6f 70 20 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 53 70 72 69 tlas_prop.,.new.GUIContent("Spri
1ee0 74 65 20 41 74 6c 61 73 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 te.Atlas"));..............if.(Ed
1f00 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 itorGUI.EndChangeCheck()).......
1f20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 73 73 .......{..................//.Ass
1f40 69 67 6e 20 74 68 65 20 6e 65 77 20 73 70 72 69 74 65 20 61 74 6c 61 73 20 74 65 78 74 75 72 65 ign.the.new.sprite.atlas.texture
1f60 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 6d 61 74 65 72 69 61 6c 0d 0a 20 20 20 20 20 20 .to.the.current.material........
1f80 20 20 20 20 20 20 20 20 20 20 54 65 78 74 75 72 65 32 44 20 74 65 78 20 3d 20 6d 5f 73 70 72 69 ..........Texture2D.tex.=.m_spri
1fa0 74 65 41 74 6c 61 73 5f 70 72 6f 70 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 teAtlas_prop.objectReferenceValu
1fc0 65 20 61 73 20 54 65 78 74 75 72 65 32 44 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.as.Texture2D;.................
1fe0 20 69 66 20 28 74 65 78 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .if.(tex.!=.null)...............
2000 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 ...{......................Materi
2020 61 6c 20 6d 61 74 20 3d 20 6d 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f 70 2e 6f 62 6a 65 63 74 52 al.mat.=.m_material_prop.objectR
2040 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 61 73 20 4d 61 74 65 72 69 61 6c 3b 0d 0a 20 20 20 20 eferenceValue.as.Material;......
2060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 74 20 21 3d 20 6e 75 6c 6c 29 ................if.(mat.!=.null)
2080 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 2e 6d 61 ..........................mat.ma
20a0 69 6e 54 65 78 74 75 72 65 20 3d 20 74 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 inTexture.=.tex;................
20c0 20 20 7d 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 20 20 20 ..}..............}..............
20e0 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 ..EditorGUILayout.PropertyField(
2100 6d 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 m_material_prop,.new.GUIContent(
2120 22 44 65 66 61 75 6c 74 20 4d 61 74 65 72 69 61 6c 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 "Default.Material"));...........
2140 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 ..................EditorGUILayou
2160 74 2e 53 70 61 63 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 41 4c t.Space();................//.FAL
2180 4c 42 41 43 4b 20 53 50 52 49 54 45 20 41 53 53 45 54 53 0d 0a 20 20 20 20 20 20 20 20 20 20 20 LBACK.SPRITE.ASSETS.............
21a0 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 20 .EditorGUI.indentLevel.=.0;.....
21c0 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 61 63 6b 53 .........UI_PanelState.fallbackS
21e0 70 72 69 74 65 41 73 73 65 74 50 61 6e 65 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 priteAssetPanel.=.EditorGUILayou
2200 74 2e 46 6f 6c 64 6f 75 74 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 61 63 6b t.Foldout(UI_PanelState.fallback
2220 53 70 72 69 74 65 41 73 73 65 74 50 61 6e 65 6c 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 SpriteAssetPanel,.new.GUIContent
2240 28 22 46 61 6c 6c 62 61 63 6b 20 53 70 72 69 74 65 20 41 73 73 65 74 73 22 2c 20 22 53 65 6c 65 ("Fallback.Sprite.Assets",."Sele
2260 63 74 20 74 68 65 20 53 70 72 69 74 65 20 41 73 73 65 74 73 20 74 68 61 74 20 77 69 6c 6c 20 62 ct.the.Sprite.Assets.that.will.b
2280 65 20 73 65 61 72 63 68 65 64 20 61 6e 64 20 75 73 65 64 20 61 73 20 66 61 6c 6c 62 61 63 6b 20 e.searched.and.used.as.fallback.
22a0 77 68 65 6e 20 61 20 67 69 76 65 6e 20 73 70 72 69 74 65 20 69 73 20 6d 69 73 73 69 6e 67 20 66 when.a.given.sprite.is.missing.f
22c0 72 6f 6d 20 74 68 69 73 20 73 70 72 69 74 65 20 61 73 73 65 74 2e 22 29 2c 20 74 72 75 65 2c 20 rom.this.sprite.asset."),.true,.
22e0 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 62 6f 6c 64 46 6f 6c 64 6f 75 74 29 3b TMP_UIStyleManager.boldFoldout);
2300 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ............................if.(
2320 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 UI_PanelState.fallbackSpriteAsse
2340 74 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 tPanel)..............{..........
2360 20 20 20 20 20 20 20 20 6d 5f 66 61 6c 6c 62 61 63 6b 53 70 72 69 74 65 41 73 73 65 74 4c 69 73 ........m_fallbackSpriteAssetLis
2380 74 2e 44 6f 4c 61 79 6f 75 74 4c 69 73 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d t.DoLayoutList();..............}
23a0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 50 52 49 54 45 20 43 48 41 52 41 43 ................//.SPRITE.CHARAC
23c0 54 45 52 20 54 41 42 4c 45 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 44 TER.TABLE..............#region.D
23e0 69 73 70 6c 61 79 20 53 70 72 69 74 65 20 43 68 61 72 61 63 74 65 72 20 54 61 62 6c 65 0d 0a 20 isplay.Sprite.Character.Table...
2400 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c ...........EditorGUI.indentLevel
2420 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 .=.0;..............rect.=.Editor
2440 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 GUILayout.GetControlRect(false,.
2460 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 24);................if.(GUI.Butt
2480 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 53 70 72 69 on(rect,.new.GUIContent("<b>Spri
24a0 74 65 20 43 68 61 72 61 63 74 65 72 20 54 61 62 6c 65 3c 2f 62 3e 22 2c 20 22 4c 69 73 74 20 6f te.Character.Table</b>",."List.o
24c0 66 20 73 70 72 69 74 65 20 63 68 61 72 61 63 74 65 72 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e f.sprite.characters.contained.in
24e0 20 74 68 69 73 20 73 70 72 69 74 65 20 61 73 73 65 74 2e 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 .this.sprite.asset."),.TMP_UISty
2500 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 20 20 20 leManager.sectionHeader)).......
2520 20 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 73 70 72 69 74 65 43 ...........UI_PanelState.spriteC
2540 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 haracterTablePanel.=.!UI_PanelSt
2560 61 74 65 2e 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a ate.spriteCharacterTablePanel;..
2580 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 ..............GUI.Label(rect,.(U
25a0 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c I_PanelState.spriteCharacterTabl
25c0 65 50 61 6e 65 6c 20 3f 20 22 22 20 3a 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 ePanel.?."".:.s_UiStateLabel[1])
25e0 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 ,.TMP_UIStyleManager.rightLabel)
2600 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 ;................if.(UI_PanelSta
2620 74 65 2e 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 29 0d 0a 20 te.spriteCharacterTablePanel)...
2640 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e ...........{..................in
2660 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 t.arraySize.=.m_SpriteCharacterT
2680 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 ableProperty.arraySize;.........
26a0 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 3d 20 31 30 3b 0d .........int.itemsPerPage.=.10;.
26c0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 47 6c ...................//.Display.Gl
26e0 79 70 68 20 4d 61 6e 61 67 65 6d 65 6e 74 20 54 6f 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 20 20 yph.Management.Tools............
2700 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 ......EditorGUILayout.BeginVerti
2720 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 2c 20 47 55 49 4c 61 79 cal(EditorStyles.helpBox,.GUILay
2740 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 out.ExpandWidth(true));.........
2760 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
2780 2f 2f 20 53 65 61 72 63 68 20 42 61 72 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 //.Search.Bar.implementation....
27a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 44 49 53 50 4c 41 ..................#region.DISPLA
27c0 59 20 53 45 41 52 43 48 20 42 41 52 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Y.SEARCH.BAR....................
27e0 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 ..EditorGUILayout.BeginHorizonta
2800 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 l();......................{.....
2820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 .....................EditorGUIUt
2840 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 31 31 30 66 3b 0d 0a 20 20 20 20 20 20 ility.labelWidth.=.110f;........
2860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 ..................EditorGUI.Begi
2880 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nChangeCheck();.................
28a0 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 .........string.searchPattern.=.
28c0 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 65 78 74 46 69 65 6c 64 28 22 53 70 72 69 74 EditorGUILayout.TextField("Sprit
28e0 65 20 53 65 61 72 63 68 22 2c 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 e.Search",.m_CharacterSearchPatt
2900 65 72 6e 2c 20 22 53 65 61 72 63 68 54 65 78 74 46 69 65 6c 64 22 29 3b 0d 0a 20 20 20 20 20 20 ern,."SearchTextField");........
2920 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e ..................if.(EditorGUI.
2940 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 6d 5f 49 73 43 68 61 72 61 63 74 65 EndChangeCheck().||.m_IsCharacte
2960 72 53 65 61 72 63 68 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rSearchDirty)...................
2980 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......{........................
29a0 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 ......if.(string.IsNullOrEmpty(s
29c0 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 earchPattern).==.false).........
29e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .....................{..........
2a00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 47 55 49 55 74 69 ........................//GUIUti
2a20 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 lity.keyboardControl.=.0;.......
2a40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 ...........................m_Cha
2a60 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 65 61 72 63 68 50 61 74 74 racterSearchPattern.=.searchPatt
2a80 65 72 6e 2e 54 6f 4c 6f 77 65 72 28 53 79 73 74 65 6d 2e 47 6c 6f 62 61 6c 69 7a 61 74 69 6f 6e ern.ToLower(System.Globalization
2aa0 2e 43 75 6c 74 75 72 65 49 6e 66 6f 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 29 2e 54 .CultureInfo.InvariantCulture).T
2ac0 72 69 6d 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rim();..........................
2ae0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 47 6c 79 70 68 20 54 61 62 6c 65 20 ..........//.Search.Glyph.Table.
2b00 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 65 73 0d 0a 20 20 20 20 20 20 20 20 20 for.potential.matches...........
2b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 61 72 63 68 43 68 61 .......................SearchCha
2b40 72 61 63 74 65 72 54 61 62 6c 65 28 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 racterTable(m_CharacterSearchPat
2b60 74 65 72 6e 2c 20 72 65 66 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 29 tern,.ref.m_CharacterSearchList)
2b80 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ;..............................}
2ba0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c ..............................el
2bc0 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 se..............................
2be0 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 6e ....m_CharacterSearchPattern.=.n
2c00 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ull;............................
2c20 20 20 20 20 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 66 ....m_IsCharacterSearchDirty.=.f
2c40 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d alse;..........................}
2c60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 ............................stri
2c80 6e 67 20 73 74 79 6c 65 4e 61 6d 65 20 3d 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d ng.styleName.=.string.IsNullOrEm
2ca0 70 74 79 28 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3f 20 pty(m_CharacterSearchPattern).?.
2cc0 22 53 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 45 6d 70 74 79 22 20 3a 20 22 53 65 61 "SearchCancelButtonEmpty".:."Sea
2ce0 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 rchCancelButton";...............
2d00 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 ...........if.(GUILayout.Button(
2d20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 73 74 79 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 GUIContent.none,.styleName))....
2d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ......................{.........
2d60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e .....................GUIUtility.
2d80 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 keyboardControl.=.0;............
2da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 ..................m_CharacterSea
2dc0 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 rchPattern.=.string.Empty;......
2de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 ....................}...........
2e00 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........}....................
2e20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 ..EditorGUILayout.EndHorizontal(
2e40 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 );......................#endregi
2e60 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 on........................//.Dis
2e80 70 6c 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 play.Page.Navigation............
2ea0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d ..........if.(!string.IsNullOrEm
2ec0 70 74 79 28 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a pty(m_CharacterSearchPattern))..
2ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 53 69 7a ........................arraySiz
2f00 65 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 2e 43 6f 75 6e 74 3b e.=.m_CharacterSearchList.Count;
2f20 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c ........................//.Displ
2f40 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ay.Page.Navigation..............
2f60 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 ........DisplayPageNavigation(re
2f80 66 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 2c 20 61 72 72 61 79 53 f.m_CurrentCharacterPage,.arrayS
2fa0 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ize,.itemsPerPage);.............
2fc0 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 .....}..................EditorGU
2fe0 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 ILayout.EndVertical();..........
3000 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 72 72 61 79 53 69 7a 65 20 3e 20 30 29 0d 0a 20 20 ..........if.(arraySize.>.0)....
3020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
3040 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 65 61 63 68 20 53 70 72 69 74 65 49 6e 66 6f 20 .....//.Display.each.SpriteInfo.
3060 65 6e 74 72 79 20 75 73 69 6e 67 20 74 68 65 20 53 70 72 69 74 65 49 6e 66 6f 20 70 72 6f 70 65 entry.using.the.SpriteInfo.prope
3080 72 74 79 20 64 72 61 77 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rty.drawer......................
30a0 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 6d 5f 43 .for.(int.i.=.itemsPerPage.*.m_C
30c0 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 3b 20 69 20 3c 20 61 72 72 61 79 53 69 urrentCharacterPage;.i.<.arraySi
30e0 7a 65 20 26 26 20 69 20 3c 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 28 6d 5f 43 75 72 72 ze.&&.i.<.itemsPerPage.*.(m_Curr
3100 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 20 2b 20 31 29 3b 20 69 2b 2b 29 0d 0a 20 20 20 entCharacterPage.+.1);.i++).....
3120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
3140 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 73 74 61 72 74 20 ............//.Define.the.start.
3160 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 of.the.selection.region.of.the.e
3180 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lement..........................
31a0 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 .Rect.elementStartRegion.=.GUILa
31c0 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c youtUtility.GetRect(0f,.0f,.GUIL
31e0 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 ayout.ExpandWidth(true));.......
3200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 65 6c 65 6d 65 6e 74 .....................int.element
3220 49 6e 64 65 78 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Index.=.i;......................
3240 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f ....if.(!string.IsNullOrEmpty(m_
3260 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 CharacterSearchPattern))........
3280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 49 6e 64 ......................elementInd
32a0 65 78 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 5b 69 5d 3b 0d 0a ex.=.m_CharacterSearchList[i];..
32c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c ..........................Serial
32e0 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 50 72 6f 70 izedProperty.spriteCharacterProp
3300 65 72 74 79 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f erty.=.m_SpriteCharacterTablePro
3320 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 65 6c 65 perty.GetArrayElementAtIndex(ele
3340 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 mentIndex);.....................
3360 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 .......EditorGUILayout.BeginVert
3380 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 ical(EditorStyles.helpBox);.....
33a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .....................{..........
33c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 ....................EditorGUI.Be
33e0 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 69 20 21 3d 20 6d 5f 73 65 6c 65 63 74 65 64 ginDisabledGroup(i.!=.m_selected
3400 45 6c 65 6d 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Element);.......................
3420 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......{........................
3440 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 ..........EditorGUILayout.Proper
3460 74 79 46 69 65 6c 64 28 73 70 72 69 74 65 43 68 61 72 61 63 74 65 72 50 72 6f 70 65 72 74 79 29 tyField(spriteCharacterProperty)
3480 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ;..............................}
34a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 ..............................Ed
34c0 69 74 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 29 3b 0d 0a 20 20 20 itorGUI.EndDisabledGroup();.....
34e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 .....................}..........
3500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e ................EditorGUILayout.
3520 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 EndVertical();..................
3540 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 65 6e 64 20 6f 66 20 74 ..........//.Define.the.end.of.t
3560 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c 65 6d 65 he.selection.region.of.the.eleme
3580 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 nt...........................Rec
35a0 74 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 t.elementEndRegion.=.GUILayoutUt
35c0 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e ility.GetRect(0f,.0f,.GUILayout.
35e0 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ExpandWidth(true));.............
3600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 49 74 65 6d ...............//.Check.for.Item
3620 20 73 65 6c 65 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .selection......................
3640 20 20 20 20 52 65 63 74 20 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 20 3d 20 6e 65 77 20 52 65 63 ....Rect.selectionArea.=.new.Rec
3660 74 28 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 78 2c 20 65 6c 65 6d 65 6e 74 53 t(elementStartRegion.x,.elementS
3680 74 61 72 74 52 65 67 69 6f 6e 2e 79 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 77 tartRegion.y,.elementEndRegion.w
36a0 69 64 74 68 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 79 20 2d 20 65 6c 65 6d 65 idth,.elementEndRegion.y.-.eleme
36c0 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ntStartRegion.y);...............
36e0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 44 6f 53 65 6c 65 63 74 69 6f 6e 43 68 65 63 6b 28 ...........if.(DoSelectionCheck(
3700 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 selectionArea)).................
3720 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
3740 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 3d ........if.(m_selectedElement.==
3760 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .i).............................
3780 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .{..............................
37a0 20 20 20 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 ....m_selectedElement.=.-1;.....
37c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 .........................}......
37e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 ........................else....
3800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ..........................{.....
3820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 .............................m_s
3840 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 electedElement.=.i;.............
3860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e .....................GUIUtility.
3880 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 keyboardControl.=.0;............
38a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
38c0 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............}..................
38e0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 26 20 48 61 6e 64 6c 65 20 53 65 63 74 69 ..........//.Draw.&.Handle.Secti
3900 6f 6e 20 41 72 65 61 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 on.Area.........................
3920 20 69 66 20 28 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 3d 20 69 29 0d 0a 20 20 .if.(m_selectedElement.==.i)....
3940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ......................{.........
3960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 73 65 6c .....................//.Draw.sel
3980 65 63 74 69 6f 6e 20 68 69 67 68 6c 69 67 68 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ection.highlight................
39a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e ..............TMP_EditorUtility.
39c0 44 72 61 77 42 6f 78 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 2c 20 32 66 2c 20 6e 65 77 20 43 DrawBox(selectionArea,.2f,.new.C
39e0 6f 6c 6f 72 33 32 28 34 30 2c 20 31 39 32 2c 20 32 35 35 2c 20 32 35 35 29 29 3b 0d 0a 0d 0a 20 olor32(40,.192,.255,.255));.....
3a00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 ...........................//.Dr
3a20 61 77 20 6f 70 74 69 6f 6e 73 20 74 6f 20 4d 6f 76 65 55 70 2c 20 4d 6f 76 65 44 6f 77 6e 2c 20 aw.options.to.MoveUp,.MoveDown,.
3a40 41 64 64 20 6f 72 20 52 65 6d 6f 76 65 20 53 70 72 69 74 65 73 0d 0a 20 20 20 20 20 20 20 20 20 Add.or.Remove.Sprites...........
3a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 72 6f 6c 52 ...................Rect.controlR
3a80 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c ect.=.EditorGUILayout.GetControl
3aa0 52 65 63 74 28 74 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 Rect(true,.EditorGUIUtility.sing
3ac0 6c 65 4c 69 6e 65 48 65 69 67 68 74 20 2a 20 31 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 leLineHeight.*.1f);.............
3ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 .................controlRect.wid
3b00 74 68 20 2f 3d 20 38 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 th./=.8;........................
3b20 20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 75 70 2e 0d 0a 20 20 20 20 ........//.Move.sprite.up.......
3b40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 67 75 69 ........................bool.gui
3b60 45 6e 61 62 6c 65 64 20 3d 20 47 55 49 2e 65 6e 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 Enabled.=.GUI.enabled;..........
3b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 20 3d 3d 20 30 29 20 ....................if.(i.==.0).
3ba0 7b 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 20 20 20 {.GUI.enabled.=.false;.}........
3bc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 ......................if.(GUI.Bu
3be0 74 74 6f 6e 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 55 70 22 29 29 0d 0a 20 20 20 20 20 20 tton(controlRect,."Up"))........
3c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ......................{.........
3c20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 77 61 70 43 68 61 .........................SwapCha
3c40 72 61 63 74 65 72 45 6c 65 6d 65 6e 74 73 28 69 2c 20 69 20 2d 20 31 29 3b 0d 0a 20 20 20 20 20 racterElements(i,.i.-.1);.......
3c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 .......................}........
3c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 ......................GUI.enable
3ca0 64 20 3d 20 67 75 69 45 6e 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 d.=.guiEnabled;.................
3cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 64 6f ...............//.Move.sprite.do
3ce0 77 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 wn..............................
3d00 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 .controlRect.x.+=.controlRect.wi
3d20 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dth;............................
3d40 20 20 69 66 20 28 69 20 3d 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 31 29 20 7b 20 47 55 49 2e ..if.(i.==.arraySize.-.1).{.GUI.
3d60 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 enabled.=.false;.}..............
3d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 ................if.(GUI.Button(c
3da0 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 44 6f 77 6e 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ontrolRect,."Down"))............
3dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
3de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 77 61 70 43 68 61 72 61 63 74 .....................SwapCharact
3e00 65 72 45 6c 65 6d 65 6e 74 73 28 69 2c 20 69 20 2b 20 31 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 erElements(i,.i.+.1);...........
3e20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ...................}............
3e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 ..................GUI.enabled.=.
3e60 67 75 69 45 6e 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 guiEnabled;.....................
3e80 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 74 6f 20 6e 65 77 ...........//.Move.sprite.to.new
3ea0 20 69 6e 64 65 78 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .index..........................
3ec0 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 ....controlRect.x.+=.controlRect
3ee0 2e 77 69 64 74 68 20 2a 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .width.*.2;.....................
3f00 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 69 20 3d 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 .........//if.(i.==.arraySize.-.
3f20 31 29 20 7b 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 1).{.GUI.enabled.=.false;.}.....
3f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6d 6f 76 65 54 .........................m_moveT
3f60 6f 49 6e 64 65 78 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 49 6e 74 46 69 65 6c 64 28 63 6f 6e 74 oIndex.=.EditorGUI.IntField(cont
3f80 72 6f 6c 52 65 63 74 2c 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 rolRect,.m_moveToIndex);........
3fa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 ......................controlRec
3fc0 74 2e 78 20 2d 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 t.x.-=.controlRect.width;.......
3fe0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 .......................if.(GUI.B
4000 75 74 74 6f 6e 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 47 6f 74 6f 22 29 29 0d 0a 20 20 20 utton(controlRect,."Goto")).....
4020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 .........................{......
4040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 6f 76 65 ............................Move
4060 43 68 61 72 61 63 74 65 72 54 6f 49 6e 64 65 78 28 69 2c 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 CharacterToIndex(i,.m_moveToInde
4080 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 x);.............................
40a0 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .}..............................
40c0 2f 2f 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 //controlRect.x.+=.controlRect.w
40e0 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 idth;...........................
4100 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 67 75 69 45 6e 61 62 6c 65 64 3b 0d 0a 0d 0a ...GUI.enabled.=.guiEnabled;....
4120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 ............................//.A
4140 64 64 20 6e 65 77 20 53 70 72 69 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dd.new.Sprite...................
4160 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 ...........controlRect.x.+=.cont
4180 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 20 2a 20 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 rolRect.width.*.4;..............
41a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 ................if.(GUI.Button(c
41c0 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 2b 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ontrolRect,."+"))...............
41e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
4200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 ..................m_SpriteCharac
4220 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 20 2b 3d 20 31 3b terTableProperty.arraySize.+=.1;
4240 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
4260 20 20 20 20 69 6e 74 20 69 6e 64 65 78 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 ....int.index.=.m_SpriteCharacte
4280 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a 0d rTableProperty.arraySize.-.1;...
42a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
42c0 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 70 72 69 74 65 49 6e 66 6f 5f 70 .SerializedProperty.spriteInfo_p
42e0 72 6f 70 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 rop.=.m_SpriteCharacterTableProp
4300 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 erty.GetArrayElementAtIndex(inde
4320 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 x);.............................
4340 20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 20 70 72 6f 70 65 72 74 69 65 73 20 6f 66 20 74 68 65 .......//.Copy.properties.of.the
4360 20 73 65 6c 65 63 74 65 64 20 65 6c 65 6d 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .selected.element...............
4380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 43 68 61 72 61 63 74 65 72 ...................CopyCharacter
43a0 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 28 6d 5f 53 70 72 69 74 65 43 68 61 72 61 SerializedProperty(m_SpriteChara
43c0 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e cterTableProperty.GetArrayElemen
43e0 74 41 74 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 2c 20 72 65 66 20 73 70 72 69 tAtIndex(elementIndex),.ref.spri
4400 74 65 49 6e 66 6f 5f 70 72 6f 70 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 teInfo_prop);...................
4420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 73 70 72 69 74 65 49 6e 66 6f 5f 70 72 .................//spriteInfo_pr
4440 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 op.FindPropertyRelative("m_Index
4460 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 69 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ").intValue.=.index;............
4480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 ......................serialized
44a0 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 Object.ApplyModifiedProperties()
44c0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;...............................
44e0 20 20 20 20 20 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 .....m_IsCharacterSearchDirty.=.
4500 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 true;...........................
4520 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...}............................
4540 20 20 20 20 2f 2f 20 44 65 6c 65 74 65 20 73 65 6c 65 63 74 65 64 20 53 70 72 69 74 65 0d 0a 20 ....//.Delete.selected.Sprite...
4560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 ...........................contr
4580 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a olRect.x.+=.controlRect.width;..
45a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ............................if.(
45c0 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 3d 20 2d 31 29 20 47 55 49 2e 65 6e 61 m_selectedElement.==.-1).GUI.ena
45e0 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 bled.=.false;...................
4600 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 6f 6e 74 72 6f ...........if.(GUI.Button(contro
4620 6c 52 65 63 74 2c 20 22 2d 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lRect,."-"))....................
4640 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
4660 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 .............m_SpriteCharacterTa
4680 62 6c 65 50 72 6f 70 65 72 74 79 2e 44 65 6c 65 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 bleProperty.DeleteArrayElementAt
46a0 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 Index(elementIndex);............
46c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 63 74 ........................m_select
46e0 65 64 45 6c 65 6d 65 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 edElement.=.-1;.................
4700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 .................serializedObjec
4720 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a t.ApplyModifiedProperties();....
4740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
4760 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 3b m_IsCharacterSearchDirty.=.true;
4780 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
47a0 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....return;.....................
47c0 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........}......................
47e0 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ........}......................}
4800 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..................}.............
4820 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 .......DisplayPageNavigation(ref
4840 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 2c 20 61 72 72 61 79 53 69 .m_CurrentCharacterPage,.arraySi
4860 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 ze,.itemsPerPage);..............
4880 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 ......EditorGUIUtility.labelWidt
48a0 68 20 3d 20 34 30 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 h.=.40f;..................Editor
48c0 47 55 49 55 74 69 6c 69 74 79 2e 66 69 65 6c 64 57 69 64 74 68 20 3d 20 32 30 66 3b 0d 0a 0d 0a GUIUtility.fieldWidth.=.20f;....
48e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 ................GUILayout.Space(
4900 35 66 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 4c 4f 42 41 5f);....................//.GLOBA
4920 4c 20 54 4f 4f 4c 53 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e L.TOOLS..................#region
4940 20 47 6c 6f 62 61 6c 20 54 6f 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f .Global.Tools................../
4960 2a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d *..................GUI.enabled.=
4980 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 .true;..................EditorGU
49a0 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c ILayout.BeginVertical(EditorStyl
49c0 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 es.helpBox);..................re
49e0 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 ct.=.EditorGUILayout.GetControlR
4a00 65 63 74 28 66 61 6c 73 65 2c 20 34 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ect(false,.40);.................
4a20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 77 69 64 74 68 20 3d 20 ..................float.width.=.
4a40 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 37 35 66 29 20 2f 20 34 3b 0d 0a 20 20 20 20 20 20 20 (rect.width.-.75f)./.4;.........
4a60 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 72 65 .........EditorGUI.LabelField(re
4a80 63 74 2c 20 22 47 6c 6f 62 61 6c 20 4f 66 66 73 65 74 73 20 26 20 53 63 61 6c 65 22 2c 20 45 64 ct,."Global.Offsets.&.Scale",.Ed
4aa0 69 74 6f 72 53 74 79 6c 65 73 2e 62 6f 6c 64 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 itorStyles.boldLabel);..........
4ac0 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 ................................
4ae0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 78 20 2b 3d 20 37 30 3b 0d 0a 20 20 20 20 20 ............rect.x.+=.70;.......
4b00 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6f 6c 64 5f 43 68 61 6e 67 65 64 53 74 61 74 65 ...........bool.old_ChangedState
4b20 20 3d 20 47 55 49 2e 63 68 61 6e 67 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .=.GUI.changed;.................
4b40 20 20 20 47 55 49 2e 63 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 ...GUI.changed.=.false;.........
4b60 20 20 20 20 20 20 20 20 20 6d 5f 78 4f 66 66 73 65 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 46 .........m_xOffset.=.EditorGUI.F
4b80 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b 20 35 66 20 2b loatField(new.Rect(rect.x.+.5f.+
4ba0 20 77 69 64 74 68 20 2a 20 30 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 69 64 74 68 20 2d .width.*.0,.rect.y.+.20,.width.-
4bc0 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 58 3a 22 29 2c .5f,.18),.new.GUIContent("OX:"),
4be0 20 6d 5f 78 4f 66 66 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 .m_xOffset);..................if
4c00 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f 70 65 .(GUI.changed).UpdateGlobalPrope
4c20 72 74 79 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 2c 20 6d 5f 78 4f rty("m_HorizontalBearingX",.m_xO
4c40 66 66 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 ffset);.........................
4c60 20 20 20 20 20 20 20 20 20 20 20 6d 5f 79 4f 66 66 73 65 74 20 3d 20 45 64 69 74 6f 72 47 55 49 ...........m_yOffset.=.EditorGUI
4c80 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b 20 35 66 .FloatField(new.Rect(rect.x.+.5f
4ca0 20 2b 20 77 69 64 74 68 20 2a 20 31 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 69 64 74 68 .+.width.*.1,.rect.y.+.20,.width
4cc0 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 59 3a 22 .-.5f,.18),.new.GUIContent("OY:"
4ce0 29 2c 20 6d 5f 79 4f 66 66 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ),.m_yOffset);..................
4d00 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f if.(GUI.changed).UpdateGlobalPro
4d20 70 65 72 74 79 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 2c 20 6d 5f perty("m_HorizontalBearingY",.m_
4d40 79 4f 66 66 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 yOffset);.......................
4d60 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 78 41 64 76 61 6e 63 65 20 3d 20 45 64 69 74 6f 72 .............m_xAdvance.=.Editor
4d80 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b GUI.FloatField(new.Rect(rect.x.+
4da0 20 35 66 20 2b 20 77 69 64 74 68 20 2a 20 32 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 69 .5f.+.width.*.2,.rect.y.+.20,.wi
4dc0 64 74 68 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 41 dth.-.5f,.18),.new.GUIContent("A
4de0 44 56 2e 22 29 2c 20 6d 5f 78 41 64 76 61 6e 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 DV."),.m_xAdvance);.............
4e00 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 .....if.(GUI.changed).UpdateGlob
4e20 61 6c 50 72 6f 70 65 72 74 79 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 alProperty("m_HorizontalAdvance"
4e40 2c 20 6d 5f 78 41 64 76 61 6e 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ,.m_xAdvance);..................
4e60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 63 61 6c 65 20 3d 20 45 64 69 74 ..................m_scale.=.Edit
4e80 6f 72 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 orGUI.FloatField(new.Rect(rect.x
4ea0 20 2b 20 35 66 20 2b 20 77 69 64 74 68 20 2a 20 33 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 .+.5f.+.width.*.3,.rect.y.+.20,.
4ec0 77 69 64 74 68 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 width.-.5f,.18),.new.GUIContent(
4ee0 22 53 46 2e 22 29 2c 20 6d 5f 73 63 61 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 "SF."),.m_scale);...............
4f00 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c ...if.(GUI.changed).UpdateGlobal
4f20 50 72 6f 70 65 72 74 79 28 22 6d 5f 53 63 61 6c 65 22 2c 20 6d 5f 73 63 61 6c 65 29 3b 0d 0a 0d Property("m_Scale",.m_scale);...
4f40 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 .................EditorGUILayout
4f60 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .EndVertical();.................
4f80 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 68 61 6e 67 65 64 20 3d ...................GUI.changed.=
4fa0 20 6f 6c 64 5f 43 68 61 6e 67 65 64 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .old_ChangedState;..............
4fc0 20 20 20 20 2a 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 ....*/..................#endregi
4fe0 6f 6e 0d 0a 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 on.................}............
5000 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ..#endregion..................//
5020 20 53 50 52 49 54 45 20 47 4c 59 50 48 20 54 41 42 4c 45 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .SPRITE.GLYPH.TABLE.............
5040 20 23 72 65 67 69 6f 6e 20 44 69 73 70 6c 61 79 20 53 70 72 69 74 65 20 47 6c 79 70 68 20 54 61 .#region.Display.Sprite.Glyph.Ta
5060 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e ble..............EditorGUI.inden
5080 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 tLevel.=.0;..............rect.=.
50a0 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 EditorGUILayout.GetControlRect(f
50c0 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 alse,.24);................if.(GU
50e0 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c I.Button(rect,.new.GUIContent("<
5100 62 3e 53 70 72 69 74 65 20 47 6c 79 70 68 20 54 61 62 6c 65 3c 2f 62 3e 22 2c 20 22 41 20 6c 69 b>Sprite.Glyph.Table</b>",."A.li
5120 73 74 20 6f 66 20 74 68 65 20 53 70 72 69 74 65 47 6c 79 70 68 73 20 63 6f 6e 74 61 69 6e 65 64 st.of.the.SpriteGlyphs.contained
5140 20 69 6e 20 74 68 69 73 20 73 70 72 69 74 65 20 61 73 73 65 74 2e 22 29 2c 20 54 4d 50 5f 55 49 .in.this.sprite.asset."),.TMP_UI
5160 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 StyleManager.sectionHeader))....
5180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 73 70 72 69 ..............UI_PanelState.spri
51a0 74 65 47 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 teGlyphTablePanel.=.!UI_PanelSta
51c0 74 65 2e 73 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 te.spriteGlyphTablePanel;.......
51e0 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e .........GUI.Label(rect,.(UI_Pan
5200 65 6c 53 74 61 74 65 2e 73 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 20 3f 20 elState.spriteGlyphTablePanel.?.
5220 22 22 20 3a 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 "".:.s_UiStateLabel[1]),.TMP_UIS
5240 74 79 6c 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 tyleManager.rightLabel);........
5260 20 20 20 20 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 73 70 72 69 74 65 ........if.(UI_PanelState.sprite
5280 47 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d GlyphTablePanel)..............{.
52a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d .................int.arraySize.=
52c0 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 .m_SpriteGlyphTableProperty.arra
52e0 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 74 65 6d ySize;..................int.item
5300 73 50 65 72 50 61 67 65 20 3d 20 31 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 sPerPage.=.10;..................
5320 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 47 6c 79 70 68 20 4d 61 6e 61 67 65 6d 65 6e 74 20 54 6f ..//.Display.Glyph.Management.To
5340 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 ols..................EditorGUILa
5360 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e yout.BeginVertical(EditorStyles.
5380 68 65 6c 70 42 6f 78 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 helpBox,.GUILayout.ExpandWidth(t
53a0 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 rue));..................{.......
53c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 42 61 72 20 69 6d 70 ...............//.Search.Bar.imp
53e0 6c 65 6d 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lementation.....................
5400 20 23 72 65 67 69 6f 6e 20 44 49 53 50 4c 41 59 20 53 45 41 52 43 48 20 42 41 52 0d 0a 20 20 20 .#region.DISPLAY.SEARCH.BAR.....
5420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 .................EditorGUILayout
5440 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .BeginHorizontal();.............
5460 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
5480 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 ....EditorGUIUtility.labelWidth.
54a0 3d 20 31 31 30 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =.110f;.........................
54c0 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a .EditorGUI.BeginChangeCheck();..
54e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 ........................string.s
5500 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 earchPattern.=.EditorGUILayout.T
5520 65 78 74 46 69 65 6c 64 28 22 53 70 72 69 74 65 20 53 65 61 72 63 68 22 2c 20 6d 5f 47 6c 79 70 extField("Sprite.Search",.m_Glyp
5540 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 22 53 65 61 72 63 68 54 65 78 74 46 69 65 6c 64 hSearchPattern,."SearchTextField
5560 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ");..........................if.
5580 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 6d (EditorGUI.EndChangeCheck().||.m
55a0 5f 49 73 47 6c 79 70 68 53 65 61 72 63 68 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 _IsGlyphSearchDirty)............
55c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
55e0 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 .............if.(string.IsNullOr
5600 45 6d 70 74 79 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3d 3d 20 66 61 6c 73 65 29 0d 0a Empty(searchPattern).==.false)..
5620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ............................{...
5640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f .............................../
5660 2f 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b /GUIUtility.keyboardControl.=.0;
5680 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
56a0 20 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 65 61 72 63 68 50 ..m_GlyphSearchPattern.=.searchP
56c0 61 74 74 65 72 6e 2e 54 6f 4c 6f 77 65 72 28 53 79 73 74 65 6d 2e 47 6c 6f 62 61 6c 69 7a 61 74 attern.ToLower(System.Globalizat
56e0 69 6f 6e 2e 43 75 6c 74 75 72 65 49 6e 66 6f 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 ion.CultureInfo.InvariantCulture
5700 29 2e 54 72 69 6d 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ).Trim();.......................
5720 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 47 6c 79 70 68 20 54 61 62 .............//.Search.Glyph.Tab
5740 6c 65 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 65 73 0d 0a 20 20 20 20 20 20 le.for.potential.matches........
5760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 61 72 63 68 ..........................Search
5780 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 CharacterTable(m_GlyphSearchPatt
57a0 65 72 6e 2c 20 72 65 66 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 29 3b 0d 0a 20 20 ern,.ref.m_GlyphSearchList);....
57c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 ..........................}.....
57e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 .........................else...
5800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d ...............................m
5820 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 _GlyphSearchPattern.=.null;.....
5840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 73 47 ...........................m_IsG
5860 6c 79 70 68 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 lyphSearchDirty.=.false;........
5880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..................}.............
58a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 74 79 6c 65 4e 61 6d 65 20 ...............string.styleName.
58c0 3d 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 47 6c 79 70 68 53 65 =.string.IsNullOrEmpty(m_GlyphSe
58e0 61 72 63 68 50 61 74 74 65 72 6e 29 20 3f 20 22 53 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 archPattern).?."SearchCancelButt
5900 6f 6e 45 6d 70 74 79 22 20 3a 20 22 53 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 22 3b onEmpty".:."SearchCancelButton";
5920 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 ..........................if.(GU
5940 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 ILayout.Button(GUIContent.none,.
5960 73 74 79 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 styleName)).....................
5980 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....{..........................
59a0 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d ....GUIUtility.keyboardControl.=
59c0 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .0;.............................
59e0 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 74 72 69 6e 67 2e 45 .m_GlyphSearchPattern.=.string.E
5a00 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d mpty;..........................}
5a20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 ......................}.........
5a40 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 .............EditorGUILayout.End
5a60 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Horizontal();...................
5a80 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...#endregion...................
5aa0 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d .....//.Display.Page.Navigation.
5ac0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 .....................if.(!string
5ae0 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 .IsNullOrEmpty(m_GlyphSearchPatt
5b00 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 ern))..........................a
5b20 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 2e 43 6f 75 rraySize.=.m_GlyphSearchList.Cou
5b40 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 nt;........................//.Di
5b60 73 70 6c 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 splay.Page.Navigation...........
5b80 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e ...........DisplayPageNavigation
5ba0 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 47 6c 79 70 68 50 61 67 65 2c 20 61 72 72 61 79 53 69 (ref.m_CurrentGlyphPage,.arraySi
5bc0 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ze,.itemsPerPage);..............
5be0 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 ....}..................EditorGUI
5c00 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 Layout.EndVertical();...........
5c20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 72 72 61 79 53 69 7a 65 20 3e 20 30 29 0d 0a 20 20 20 .........if.(arraySize.>.0).....
5c40 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
5c60 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 65 61 63 68 20 53 70 72 69 74 65 49 6e 66 6f 20 65 ....//.Display.each.SpriteInfo.e
5c80 6e 74 72 79 20 75 73 69 6e 67 20 74 68 65 20 53 70 72 69 74 65 49 6e 66 6f 20 70 72 6f 70 65 72 ntry.using.the.SpriteInfo.proper
5ca0 74 79 20 64 72 61 77 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty.drawer.......................
5cc0 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 6d 5f 43 75 for.(int.i.=.itemsPerPage.*.m_Cu
5ce0 72 72 65 6e 74 47 6c 79 70 68 50 61 67 65 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 20 26 26 rrentGlyphPage;.i.<.arraySize.&&
5d00 20 69 20 3c 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 28 6d 5f 43 75 72 72 65 6e 74 47 6c .i.<.itemsPerPage.*.(m_CurrentGl
5d20 79 70 68 50 61 67 65 20 2b 20 31 29 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 yphPage.+.1);.i++)..............
5d40 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ........{.......................
5d60 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 73 74 61 72 74 20 6f 66 20 74 68 65 20 73 65 ...//.Define.the.start.of.the.se
5d80 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 2e 0d 0a lection.region.of.the.element...
5da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 65 6c 65 ........................Rect.ele
5dc0 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 mentStartRegion.=.GUILayoutUtili
5de0 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 ty.GetRect(0f,.0f,.GUILayout.Exp
5e00 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 andWidth(true));................
5e20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 69 ............int.elementIndex.=.i
5e40 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 ;..........................if.(!
5e60 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 47 6c 79 70 68 53 65 61 72 string.IsNullOrEmpty(m_GlyphSear
5e80 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 chPattern)).....................
5ea0 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 6d 5f 47 6c 79 70 68 53 .........elementIndex.=.m_GlyphS
5ec0 65 61 72 63 68 4c 69 73 74 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 earchList[i];...................
5ee0 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 70 72 69 .........SerializedProperty.spri
5f00 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 teGlyphProperty.=.m_SpriteGlyphT
5f20 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e ableProperty.GetArrayElementAtIn
5f40 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 dex(elementIndex);..............
5f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 ..............EditorGUILayout.Be
5f80 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 ginVertical(EditorStyles.helpBox
5fa0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 );..........................{...
5fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f ...........................Edito
5fe0 72 47 55 49 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 69 20 21 3d 20 6d 5f 73 rGUI.BeginDisabledGroup(i.!=.m_s
6000 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 electedElement);................
6020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
6040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 .................EditorGUILayout
6060 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 73 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 .PropertyField(spriteGlyphProper
6080 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty);............................
60a0 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..}.............................
60c0 20 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 29 3b 0d 0a .EditorGUI.EndDisabledGroup();..
60e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 ........................}.......
6100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f ...................EditorGUILayo
6120 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ut.EndVertical();...............
6140 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 65 6e 64 20 6f .............//.Define.the.end.o
6160 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c f.the.selection.region.of.the.el
6180 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ement...........................
61a0 52 65 63 74 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 Rect.elementEndRegion.=.GUILayou
61c0 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f tUtility.GetRect(0f,.0f,.GUILayo
61e0 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 ut.ExpandWidth(true));..........
6200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 49 ..................//.Check.for.I
6220 74 65 6d 20 73 65 6c 65 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tem.selection...................
6240 20 20 20 20 20 20 20 52 65 63 74 20 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 20 3d 20 6e 65 77 20 .......Rect.selectionArea.=.new.
6260 52 65 63 74 28 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 78 2c 20 65 6c 65 6d 65 Rect(elementStartRegion.x,.eleme
6280 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f ntStartRegion.y,.elementEndRegio
62a0 6e 2e 77 69 64 74 68 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 79 20 2d 20 65 6c n.width,.elementEndRegion.y.-.el
62c0 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ementStartRegion.y);............
62e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 44 6f 53 65 6c 65 63 74 69 6f 6e 43 68 65 ..............if.(DoSelectionChe
6300 63 6b 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ck(selectionArea))..............
6320 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............{...................
6340 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 ...........if.(m_selectedElement
6360 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .==.i)..........................
6380 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....{...........................
63a0 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 2d 31 3b 0d 0a .......m_selectedElement.=.-1;..
63c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 ............................}...
63e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d ...........................else.
6400 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a .............................{..
6420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
6440 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 m_selectedElement.=.i;..........
6460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 ........................GUIUtili
6480 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 ty.keyboardControl.=.0;.........
64a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 .....................}..........
64c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ................}...............
64e0 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 26 20 48 61 6e 64 6c 65 20 53 65 .............//.Draw.&.Handle.Se
6500 63 74 69 6f 6e 20 41 72 65 61 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ction.Area......................
6520 20 20 20 20 69 66 20 28 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 3d 20 69 29 0d ....if.(m_selectedElement.==.i).
6540 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 .........................{......
6560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 ........................//.Draw.
6580 73 65 6c 65 63 74 69 6f 6e 20 68 69 67 68 6c 69 67 68 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 selection.highlight.............
65a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 .................TMP_EditorUtili
65c0 74 79 2e 44 72 61 77 42 6f 78 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 2c 20 32 66 2c 20 6e 65 ty.DrawBox(selectionArea,.2f,.ne
65e0 77 20 43 6f 6c 6f 72 33 32 28 34 30 2c 20 31 39 32 2c 20 32 35 35 2c 20 32 35 35 29 29 3b 0d 0a w.Color32(40,.192,.255,.255));..
6600 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ..............................//
6620 20 44 72 61 77 20 6f 70 74 69 6f 6e 73 20 74 6f 20 4d 6f 76 65 55 70 2c 20 4d 6f 76 65 44 6f 77 .Draw.options.to.MoveUp,.MoveDow
6640 6e 2c 20 41 64 64 20 6f 72 20 52 65 6d 6f 76 65 20 53 70 72 69 74 65 73 0d 0a 20 20 20 20 20 20 n,.Add.or.Remove.Sprites........
6660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 72 ......................Rect.contr
6680 6f 6c 52 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 olRect.=.EditorGUILayout.GetCont
66a0 72 6f 6c 52 65 63 74 28 74 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 rolRect(true,.EditorGUIUtility.s
66c0 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 20 2a 20 31 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 ingleLineHeight.*.1f);..........
66e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e ....................controlRect.
6700 77 69 64 74 68 20 2f 3d 20 38 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 width./=.8;.....................
6720 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 75 70 2e 0d 0a 20 ...........//.Move.sprite.up....
6740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 ...........................bool.
6760 67 75 69 45 6e 61 62 6c 65 64 20 3d 20 47 55 49 2e 65 6e 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 guiEnabled.=.GUI.enabled;.......
6780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 20 3d 3d 20 .......................if.(i.==.
67a0 30 29 20 7b 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 0).{.GUI.enabled.=.false;.}.....
67c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 .........................if.(GUI
67e0 2e 42 75 74 74 6f 6e 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 55 70 22 29 29 0d 0a 20 20 20 .Button(controlRect,."Up")).....
6800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 .........................{......
6820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 77 61 70 ............................Swap
6840 47 6c 79 70 68 45 6c 65 6d 65 6e 74 73 28 69 2c 20 69 20 2d 20 31 29 3b 0d 0a 20 20 20 20 20 20 GlyphElements(i,.i.-.1);........
6860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 ......................}.........
6880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 .....................GUI.enabled
68a0 20 3d 20 67 75 69 45 6e 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .=.guiEnabled;..................
68c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 64 6f 77 ..............//.Move.sprite.dow
68e0 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n...............................
6900 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 controlRect.x.+=.controlRect.wid
6920 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 th;.............................
6940 20 69 66 20 28 69 20 3d 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 31 29 20 7b 20 47 55 49 2e 65 .if.(i.==.arraySize.-.1).{.GUI.e
6960 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 nabled.=.false;.}...............
6980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 6f ...............if.(GUI.Button(co
69a0 6e 74 72 6f 6c 52 65 63 74 2c 20 22 44 6f 77 6e 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ntrolRect,."Down")).............
69c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
69e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 77 61 70 47 6c 79 70 68 45 6c 65 ....................SwapGlyphEle
6a00 6d 65 6e 74 73 28 69 2c 20 69 20 2b 20 31 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ments(i,.i.+.1);................
6a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
6a40 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 67 75 69 45 6e .............GUI.enabled.=.guiEn
6a60 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 abled;..........................
6a80 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 73 70 72 69 74 65 20 74 6f 20 6e 65 77 20 69 6e 64 65 ......//.Move.sprite.to.new.inde
6aa0 78 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 x..............................c
6ac0 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 ontrolRect.x.+=.controlRect.widt
6ae0 68 20 2a 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 h.*.2;..........................
6b00 20 20 20 20 2f 2f 69 66 20 28 69 20 3d 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 31 29 20 7b 20 ....//if.(i.==.arraySize.-.1).{.
6b20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 GUI.enabled.=.false;.}..........
6b40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 ....................m_moveToInde
6b60 78 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 49 6e 74 46 69 65 6c 64 28 63 6f 6e 74 72 6f 6c 52 65 x.=.EditorGUI.IntField(controlRe
6b80 63 74 2c 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ct,.m_moveToIndex);.............
6ba0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2d .................controlRect.x.-
6bc0 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 =.controlRect.width;............
6be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e ..................if.(GUI.Button
6c00 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2c 20 22 47 6f 74 6f 22 29 29 0d 0a 20 20 20 20 20 20 20 20 (controlRect,."Goto"))..........
6c20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ....................{...........
6c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 6f 76 65 47 6c 79 70 68 .......................MoveGlyph
6c60 54 6f 49 6e 64 65 78 28 69 2c 20 6d 5f 6d 6f 76 65 54 6f 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 ToIndex(i,.m_moveToIndex);......
6c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 ........................}.......
6ca0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 63 6f 6e 74 72 6f 6c .......................//control
6cc0 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 Rect.x.+=.controlRect.width;....
6ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e ..........................GUI.en
6d00 61 62 6c 65 64 20 3d 20 67 75 69 45 6e 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 abled.=.guiEnabled;.............
6d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 6e 65 77 20 53 70 ...................//.Add.new.Sp
6d40 72 69 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rite............................
6d60 20 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 ..controlRect.x.+=.controlRect.w
6d80 69 64 74 68 20 2a 20 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 idth.*.4;.......................
6da0 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 6f 6e 74 72 6f 6c 52 65 63 .......if.(GUI.Button(controlRec
6dc0 74 2c 20 22 2b 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 t,."+"))........................
6de0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ......{.........................
6e00 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 .........m_SpriteGlyphTablePrope
6e20 72 74 79 2e 61 72 72 61 79 53 69 7a 65 20 2b 3d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 rty.arraySize.+=.1;.............
6e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 6e 64 65 78 .......................int.index
6e60 20 3d 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 .=.m_SpriteGlyphTableProperty.ar
6e80 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 raySize.-.1;....................
6ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 ................SerializedProper
6ec0 74 79 20 6e 65 77 53 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 53 70 ty.newSpriteGlyphProperty.=.m_Sp
6ee0 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 riteGlyphTableProperty.GetArrayE
6f00 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 lementAtIndex(index);...........
6f20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 .........................//.Copy
6f40 20 70 72 6f 70 65 72 74 69 65 73 20 6f 66 20 74 68 65 20 73 65 6c 65 63 74 65 64 20 65 6c 65 6d .properties.of.the.selected.elem
6f60 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ent.............................
6f80 20 20 20 20 20 43 6f 70 79 47 6c 79 70 68 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 .....CopyGlyphSerializedProperty
6fa0 28 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 (m_SpriteGlyphTableProperty.GetA
6fc0 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 rrayElementAtIndex(elementIndex)
6fe0 2c 20 72 65 66 20 6e 65 77 53 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 29 3b 0d 0a ,.ref.newSpriteGlyphProperty);..
7000 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
7020 20 20 6e 65 77 53 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f ..newSpriteGlyphProperty.FindPro
7040 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 pertyRelative("m_Index").intValu
7060 65 20 3d 20 69 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.=.index;......................
7080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 ..............serializedObject.A
70a0 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 pplyModifiedProperties();.......
70c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 .............................m_I
70e0 73 47 6c 79 70 68 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 sGlyphSearchDirty.=.true;.......
7100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 ................................
7120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 6d .............................//m
7140 5f 53 70 72 69 74 65 41 73 73 65 74 2e 55 70 64 61 74 65 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 28 _SpriteAsset.UpdateLookupTables(
7160 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 );..............................
7180 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 }...............................
71a0 20 2f 2f 20 44 65 6c 65 74 65 20 73 65 6c 65 63 74 65 64 20 53 70 72 69 74 65 0d 0a 20 20 20 20 .//.Delete.selected.Sprite......
71c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 52 ........................controlR
71e0 65 63 74 2e 78 20 2b 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 ect.x.+=.controlRect.width;.....
7200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 73 .........................if.(m_s
7220 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 3d 20 2d 31 29 20 47 55 49 2e 65 6e 61 62 6c 65 electedElement.==.-1).GUI.enable
7240 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 d.=.false;......................
7260 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 63 6f 6e 74 72 6f 6c 52 65 ........if.(GUI.Button(controlRe
7280 63 74 2c 20 22 2d 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ct,."-")).......................
72a0 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......{........................
72c0 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 65 6c ..........SerializedProperty.sel
72e0 65 63 74 65 64 53 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 53 70 72 ectedSpriteGlyphProperty.=.m_Spr
7300 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c iteGlyphTableProperty.GetArrayEl
7320 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 ementAtIndex(elementIndex);.....
7340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ...............................i
7360 6e 74 20 73 65 6c 65 63 74 65 64 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 73 65 6c 65 63 74 65 64 nt.selectedGlyphIndex.=.selected
7380 53 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 SpriteGlyphProperty.FindProperty
73a0 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d Relative("m_Index").intValue;...
73c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
73e0 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 44 65 6c 65 .m_SpriteGlyphTableProperty.Dele
7400 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 teArrayElementAtIndex(elementInd
7420 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ex);............................
7440 20 20 20 20 20 20 20 20 2f 2f 20 52 65 6d 6f 76 65 20 61 6c 6c 20 53 70 72 69 74 65 20 43 68 61 ........//.Remove.all.Sprite.Cha
7460 72 61 63 74 65 72 73 20 72 65 66 65 72 65 6e 63 69 6e 67 20 74 68 69 73 20 67 6c 79 70 68 2e 0d racters.referencing.this.glyph..
7480 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
74a0 20 66 6f 72 20 28 69 6e 74 20 6a 20 3d 20 30 3b 20 6a 20 3c 20 6d 5f 53 70 72 69 74 65 43 68 61 .for.(int.j.=.0;.j.<.m_SpriteCha
74c0 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 20 6a racterTableProperty.arraySize;.j
74e0 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ++).............................
7500 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....{..........................
7520 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 67 6c 79 70 68 49 6e 64 65 78 20 3d 20 6d 5f 53 ............int.glyphIndex.=.m_S
7540 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 priteCharacterTableProperty.GetA
7560 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 6a 29 2e 46 69 6e 64 50 72 6f 70 65 72 rrayElementAtIndex(j).FindProper
7580 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 tyRelative("m_GlyphIndex").intVa
75a0 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lue;............................
75c0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 67 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 73 65 ............if.(glyphIndex.==.se
75e0 6c 65 63 74 65 64 47 6c 79 70 68 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 lectedGlyphIndex)...............
7600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 .......................{........
7620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
7640 20 20 2f 2f 20 52 65 6d 6f 76 65 20 63 68 61 72 61 63 74 65 72 0d 0a 20 20 20 20 20 20 20 20 20 ..//.Remove.character...........
7660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d ...............................m
7680 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 44 65 _SpriteCharacterTableProperty.De
76a0 6c 65 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 6a 29 3b 0d 0a 20 20 20 leteArrayElementAtIndex(j);.....
76c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
76e0 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .}..............................
7700 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....}...........................
7720 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 2d 31 3b .........m_selectedElement.=.-1;
7740 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
7760 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 ..serializedObject.ApplyModified
7780 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Properties();...................
77a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 73 47 6c 79 70 68 53 65 61 72 63 68 .................m_IsGlyphSearch
77c0 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Dirty.=.true;...................
77e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 6d 5f 53 70 72 69 74 65 41 73 73 65 74 .................//m_SpriteAsset
7800 2e 55 70 64 61 74 65 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 .UpdateLookupTables();..........
7820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e ..........................return
7840 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ;..............................}
7860 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ..............................}.
7880 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 .....................}..........
78a0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 ........}....................Dis
78c0 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 playPageNavigation(ref.m_Current
78e0 47 6c 79 70 68 50 61 67 65 2c 20 61 72 72 61 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 GlyphPage,.arraySize,.itemsPerPa
7900 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 ge);....................EditorGU
7920 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 34 30 66 3b 0d 0a 20 20 20 20 IUtility.labelWidth.=.40f;......
7940 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 66 69 65 ............EditorGUIUtility.fie
7960 6c 64 57 69 64 74 68 20 3d 20 32 30 66 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ldWidth.=.20f;..................
7980 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 35 66 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 ..GUILayout.Space(5f);..........
79a0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 4c 4f 42 41 4c 20 54 4f 4f 4c 53 0d 0a 20 20 20 20 20 ..........//.GLOBAL.TOOLS.......
79c0 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 47 6c 6f 62 61 6c 20 54 6f 6f 6c 73 0d ...........#region.Global.Tools.
79e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 .................GUI.enabled.=.t
7a00 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c rue;..................EditorGUIL
7a20 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 ayout.BeginVertical(EditorStyles
7a40 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 .helpBox);..................rect
7a60 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 .=.EditorGUILayout.GetControlRec
7a80 74 28 66 61 6c 73 65 2c 20 34 30 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 t(false,.40);...................
7aa0 20 66 6c 6f 61 74 20 77 69 64 74 68 20 3d 20 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 37 35 66 .float.width.=.(rect.width.-.75f
7ac0 29 20 2f 20 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 )./.4;..................EditorGU
7ae0 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 72 65 63 74 2c 20 22 47 6c 6f 62 61 6c 20 4f 66 66 73 65 I.LabelField(rect,."Global.Offse
7b00 74 73 20 26 20 53 63 61 6c 65 22 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 62 6f 6c 64 4c 61 ts.&.Scale",.EditorStyles.boldLa
7b20 62 65 6c 29 3b 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e bel);......................rect.
7b40 78 20 2b 3d 20 37 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6f x.+=.70;..................bool.o
7b60 6c 64 5f 43 68 61 6e 67 65 64 53 74 61 74 65 20 3d 20 47 55 49 2e 63 68 61 6e 67 65 64 3b 0d 0a ld_ChangedState.=.GUI.changed;..
7b80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 68 61 6e 67 65 64 20 3d 20 ..................GUI.changed.=.
7ba0 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 78 4f 66 66 73 65 false;..................m_xOffse
7bc0 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 t.=.EditorGUI.FloatField(new.Rec
7be0 74 28 72 65 63 74 2e 78 20 2b 20 35 66 20 2b 20 77 69 64 74 68 20 2a 20 30 2c 20 72 65 63 74 2e t(rect.x.+.5f.+.width.*.0,.rect.
7c00 79 20 2b 20 32 30 2c 20 77 69 64 74 68 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 y.+.20,.width.-.5f,.18),.new.GUI
7c20 43 6f 6e 74 65 6e 74 28 22 4f 58 3a 22 29 2c 20 6d 5f 78 4f 66 66 73 65 74 29 3b 0d 0a 20 20 20 Content("OX:"),.m_xOffset);.....
7c40 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 .............if.(GUI.changed).Up
7c60 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f 70 65 72 74 79 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c dateGlobalProperty("m_Horizontal
7c80 42 65 61 72 69 6e 67 58 22 2c 20 6d 5f 78 4f 66 66 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 BearingX",.m_xOffset);..........
7ca0 20 20 20 20 20 20 20 20 20 20 6d 5f 79 4f 66 66 73 65 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e ..........m_yOffset.=.EditorGUI.
7cc0 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b 20 35 66 20 FloatField(new.Rect(rect.x.+.5f.
7ce0 2b 20 77 69 64 74 68 20 2a 20 31 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 69 64 74 68 20 +.width.*.1,.rect.y.+.20,.width.
7d00 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 59 3a 22 29 -.5f,.18),.new.GUIContent("OY:")
7d20 2c 20 6d 5f 79 4f 66 66 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ,.m_yOffset);..................i
7d40 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f 70 f.(GUI.changed).UpdateGlobalProp
7d60 65 72 74 79 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 2c 20 6d 5f 79 erty("m_HorizontalBearingY",.m_y
7d80 4f 66 66 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 78 41 Offset);....................m_xA
7da0 64 76 61 6e 63 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 dvance.=.EditorGUI.FloatField(ne
7dc0 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b 20 35 66 20 2b 20 77 69 64 74 68 20 2a 20 32 2c 20 w.Rect(rect.x.+.5f.+.width.*.2,.
7de0 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 69 64 74 68 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 rect.y.+.20,.width.-.5f,.18),.ne
7e00 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 41 44 56 2e 22 29 2c 20 6d 5f 78 41 64 76 61 6e 63 65 w.GUIContent("ADV."),.m_xAdvance
7e20 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e );..................if.(GUI.chan
7e40 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f 70 65 72 74 79 28 22 6d 5f 48 6f 72 ged).UpdateGlobalProperty("m_Hor
7e60 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 2c 20 6d 5f 78 41 64 76 61 6e 63 65 29 3b 0d 0a 0d izontalAdvance",.m_xAdvance);...
7e80 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 63 61 6c 65 20 3d 20 45 64 69 74 6f .................m_scale.=.Edito
7ea0 72 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 rGUI.FloatField(new.Rect(rect.x.
7ec0 2b 20 35 66 20 2b 20 77 69 64 74 68 20 2a 20 33 2c 20 72 65 63 74 2e 79 20 2b 20 32 30 2c 20 77 +.5f.+.width.*.3,.rect.y.+.20,.w
7ee0 69 64 74 68 20 2d 20 35 66 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 idth.-.5f,.18),.new.GUIContent("
7f00 53 46 2e 22 29 2c 20 6d 5f 73 63 61 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 SF."),.m_scale);................
7f20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 29 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 ..if.(GUI.changed).UpdateGlobalP
7f40 72 6f 70 65 72 74 79 28 22 6d 5f 53 63 61 6c 65 22 2c 20 6d 5f 73 63 61 6c 65 29 3b 0d 0a 0d 0a roperty("m_Scale",.m_scale);....
7f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e ................EditorGUILayout.
7f80 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 EndVertical();..................
7fa0 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 #endregion....................GU
7fc0 49 2e 63 68 61 6e 67 65 64 20 3d 20 6f 6c 64 5f 43 68 61 6e 67 65 64 53 74 61 74 65 3b 0d 0a 0d I.changed.=.old_ChangedState;...
7fe0 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 .............}..............#end
8000 72 65 67 69 6f 6e 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 72 69 region..................if.(seri
8020 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 alizedObject.ApplyModifiedProper
8040 74 69 65 73 28 29 20 7c 7c 20 65 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 20 ties().||.evt_cmd.==.k_UndoRedo.
8060 7c 7c 20 69 73 41 73 73 65 74 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d ||.isAssetDirty)..............{.
8080 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 70 72 69 74 65 41 73 73 .................if.(m_SpriteAss
80a0 65 74 2e 6d 5f 49 73 53 70 72 69 74 65 41 73 73 65 74 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 44 69 et.m_IsSpriteAssetLookupTablesDi
80c0 72 74 79 20 7c 7c 20 65 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 29 0d 0a 20 rty.||.evt_cmd.==.k_UndoRedo)...
80e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 41 73 73 65 74 ...................m_SpriteAsset
8100 2e 55 70 64 61 74 65 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 .UpdateLookupTables();..........
8120 20 20 20 20 20 20 20 20 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 72 2e 4f 4e 5f ..........TMPro_EventManager.ON_
8140 53 50 52 49 54 45 5f 41 53 53 45 54 5f 50 52 4f 50 45 52 54 59 5f 43 48 41 4e 47 45 44 28 74 72 SPRITE_ASSET_PROPERTY_CHANGED(tr
8160 75 65 2c 20 6d 5f 53 70 72 69 74 65 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ue,.m_SpriteAsset);.............
8180 20 20 20 20 20 20 20 69 73 41 73 73 65 74 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 .......isAssetDirty.=.false;....
81a0 20 20 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 44 ..............EditorUtility.SetD
81c0 69 72 74 79 28 74 61 72 67 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a irty(target);..............}....
81e0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6c 65 61 72 20 73 65 6c 65 63 74 69 6f 6e 20 69 ............//.Clear.selection.i
8200 66 20 6d 6f 75 73 65 20 65 76 65 6e 74 20 77 61 73 20 6e 6f 74 20 63 6f 6e 73 75 6d 65 64 2e 20 f.mouse.event.was.not.consumed..
8220 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 ..............GUI.enabled.=.true
8240 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 72 65 6e 74 45 76 65 6e 74 2e ;..............if.(currentEvent.
8260 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 4d 6f 75 73 65 44 6f 77 6e 20 26 26 20 63 type.==.EventType.MouseDown.&&.c
8280 75 72 72 65 6e 74 45 76 65 6e 74 2e 62 75 74 74 6f 6e 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 urrentEvent.button.==.0)........
82a0 20 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 2d 31 ..........m_selectedElement.=.-1
82c0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ;............}..............///.
82e0 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 <summary>..........///..........
8300 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 .///.</summary>..........///.<pa
8320 72 61 6d 20 6e 61 6d 65 3d 22 61 72 72 61 79 53 69 7a 65 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 ram.name="arraySize"></param>...
8340 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 74 65 6d 73 50 65 72 .......///.<param.name="itemsPer
8360 50 61 67 65 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 69 73 Page"></param>..........void.Dis
8380 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 20 69 6e 74 20 63 75 72 72 65 playPageNavigation(ref.int.curre
83a0 6e 74 50 61 67 65 2c 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 2c 20 69 6e 74 20 69 74 65 6d 73 ntPage,.int.arraySize,.int.items
83c0 50 65 72 50 61 67 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 PerPage)..........{.............
83e0 20 52 65 63 74 20 70 61 67 65 50 6f 73 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e .Rect.pagePos.=.EditorGUILayout.
8400 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 30 29 3b 0d 0a 20 20 20 20 GetControlRect(false,.20);......
8420 20 20 20 20 20 20 20 20 70 61 67 65 50 6f 73 2e 77 69 64 74 68 20 2f 3d 20 33 3b 0d 0a 0d 0a 20 ........pagePos.width./=.3;.....
8440 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 73 68 69 66 74 4d 75 6c 74 69 70 6c 69 65 72 20 3d ...........int.shiftMultiplier.=
8460 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 73 68 69 66 74 20 3f 20 31 30 20 3a 20 31 3b 20 2f .Event.current.shift.?.10.:.1;./
8480 2f 20 50 61 67 65 20 2b 20 53 68 69 66 74 20 67 6f 65 73 20 31 30 20 70 61 67 65 20 66 6f 72 77 /.Page.+.Shift.goes.10.page.forw
84a0 61 72 64 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 72 65 76 69 6f 75 73 20 50 ard................//.Previous.P
84c0 61 67 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 63 age..............GUI.enabled.=.c
84e0 75 72 72 65 6e 74 50 61 67 65 20 3e 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 urrentPage.>.0;................i
8500 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 70 61 67 65 50 6f 73 2c 20 22 50 72 65 76 69 6f 75 73 f.(GUI.Button(pagePos,."Previous
8520 20 50 61 67 65 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 .Page"))..............{.........
8540 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 50 61 67 65 20 2d 3d 20 31 20 2a 20 73 68 69 66 .........currentPage.-=.1.*.shif
8560 74 4d 75 6c 74 69 70 6c 69 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f tMultiplier;..................//
8580 6d 5f 69 73 4e 65 77 50 61 67 65 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 m_isNewPage.=.true;.............
85a0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 61 67 65 20 43 6f 75 6e 74 65 .}................//.Page.Counte
85c0 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 r..............GUI.enabled.=.tru
85e0 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 67 65 50 6f 73 2e 78 20 2b 3d 20 70 61 67 e;..............pagePos.x.+=.pag
8600 65 50 6f 73 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 74 6f 74 ePos.width;..............int.tot
8620 61 6c 50 61 67 65 73 20 3d 20 28 69 6e 74 29 28 61 72 72 61 79 53 69 7a 65 20 2f 20 28 66 6c 6f alPages.=.(int)(arraySize./.(flo
8640 61 74 29 69 74 65 6d 73 50 65 72 50 61 67 65 20 2b 20 30 2e 39 39 39 66 29 3b 0d 0a 20 20 20 20 at)itemsPerPage.+.0.999f);......
8660 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 70 61 67 65 50 6f 73 2c 20 22 50 61 67 65 ........GUI.Label(pagePos,."Page
8680 20 22 20 2b 20 28 63 75 72 72 65 6e 74 50 61 67 65 20 2b 20 31 29 20 2b 20 22 20 2f 20 22 20 2b .".+.(currentPage.+.1).+."./.".+
86a0 20 74 6f 74 61 6c 50 61 67 65 73 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e .totalPages,.TMP_UIStyleManager.
86c0 63 65 6e 74 65 72 65 64 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f centeredLabel);................/
86e0 2f 20 4e 65 78 74 20 50 61 67 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 67 65 50 6f 73 /.Next.Page..............pagePos
8700 2e 78 20 2b 3d 20 70 61 67 65 50 6f 73 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .x.+=.pagePos.width;............
8720 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 28 ..GUI.enabled.=.itemsPerPage.*.(
8740 63 75 72 72 65 6e 74 50 61 67 65 20 2b 20 31 29 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d currentPage.+.1).<.arraySize;...
8760 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 70 61 67 65 .............if.(GUI.Button(page
8780 50 6f 73 2c 20 22 4e 65 78 74 20 50 61 67 65 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Pos,."Next.Page"))..............
87a0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 50 61 67 65 20 2b {..................currentPage.+
87c0 3d 20 31 20 2a 20 73 68 69 66 74 4d 75 6c 74 69 70 6c 69 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 =.1.*.shiftMultiplier;..........
87e0 20 20 20 20 20 20 20 20 2f 2f 6d 5f 69 73 4e 65 77 50 61 67 65 20 3d 20 74 72 75 65 3b 0d 0a 20 ........//m_isNewPage.=.true;...
8800 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 ...........}................//.C
8820 6c 61 6d 70 20 70 61 67 65 20 72 61 6e 67 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 lamp.page.range..............cur
8840 72 65 6e 74 50 61 67 65 20 3d 20 4d 61 74 68 66 2e 43 6c 61 6d 70 28 63 75 72 72 65 6e 74 50 61 rentPage.=.Mathf.Clamp(currentPa
8860 67 65 2c 20 30 2c 20 61 72 72 61 79 53 69 7a 65 20 2f 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 ge,.0,.arraySize./.itemsPerPage)
8880 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 ;................GUI.enabled.=.t
88a0 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f rue;..........}..............///
88c0 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 65 74 68 6f 64 20 74 .<summary>..........///.Method.t
88e0 6f 20 75 70 64 61 74 65 20 74 68 65 20 70 72 6f 70 65 72 74 69 65 73 20 6f 66 20 61 6c 6c 20 73 o.update.the.properties.of.all.s
8900 70 72 69 74 65 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a prites..........///.</summary>..
8920 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 70 72 6f 70 65 72 74 ........///.<param.name="propert
8940 79 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 y"></param>..........///.<param.
8960 6e 61 6d 65 3d 22 76 61 6c 75 65 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 name="value"></param>..........v
8980 6f 69 64 20 55 70 64 61 74 65 47 6c 6f 62 61 6c 50 72 6f 70 65 72 74 79 28 73 74 72 69 6e 67 20 oid.UpdateGlobalProperty(string.
89a0 70 72 6f 70 65 72 74 79 2c 20 66 6c 6f 61 74 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 property,.float.value)..........
89c0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d {..............int.arraySize.=.m
89e0 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 _SpriteGlyphTableProperty.arrayS
8a00 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d ize;................for.(int.i.=
8a20 20 30 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 .0;.i.<.arraySize;.i++).........
8a40 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 61 .....{..................//.Get.a
8a60 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 73 70 72 69 74 65 20 67 6c 79 70 68 2e 0d .reference.to.the.sprite.glyph..
8a80 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 .................SerializedPrope
8aa0 72 74 79 20 73 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 53 70 72 69 rty.spriteGlyphProperty.=.m_Spri
8ac0 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 teGlyphTableProperty.GetArrayEle
8ae0 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 mentAtIndex(i);.................
8b00 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 20 3d 3d 20 22 6d 5f 53 63 61 6c 65 22 29 0d 0a 20 ...if.(property.==."m_Scale")...
8b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
8b40 20 20 20 20 20 20 73 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 ......spriteGlyphProperty.FindPr
8b60 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 70 72 6f 70 65 72 74 79 29 2e 66 6c 6f 61 74 56 61 opertyRelative(property).floatVa
8b80 6c 75 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d lue.=.value;..................}.
8ba0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 .................else...........
8bc0 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 .......{......................Se
8be0 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 67 6c 79 70 68 4d 65 74 72 69 63 73 50 72 6f rializedProperty.glyphMetricsPro
8c00 70 65 72 74 79 20 3d 20 73 70 72 69 74 65 47 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 perty.=.spriteGlyphProperty.Find
8c20 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a PropertyRelative("m_Metrics");..
8c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 6c 79 70 68 4d 65 74 72 69 63 73 ....................glyphMetrics
8c60 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 70 72 Property.FindPropertyRelative(pr
8c80 6f 70 65 72 74 79 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 operty).floatValue.=.value;.....
8ca0 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d .............}..............}...
8cc0 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 .............GUI.changed.=.false
8ce0 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b ;..........}............//.Check
8d00 20 69 66 20 61 6e 79 20 6f 66 20 74 68 65 20 53 74 79 6c 65 20 65 6c 65 6d 65 6e 74 73 20 77 65 .if.any.of.the.Style.elements.we
8d20 72 65 20 63 6c 69 63 6b 65 64 20 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 re.clicked.on...........private.
8d40 62 6f 6f 6c 20 44 6f 53 65 6c 65 63 74 69 6f 6e 43 68 65 63 6b 28 52 65 63 74 20 73 65 6c 65 63 bool.DoSelectionCheck(Rect.selec
8d60 74 69 6f 6e 41 72 65 61 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 tionArea)..........{............
8d80 20 20 45 76 65 6e 74 20 63 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 45 76 65 6e 74 2e 63 75 72 ..Event.currentEvent.=.Event.cur
8da0 72 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 63 75 72 rent;................switch.(cur
8dc0 72 65 6e 74 45 76 65 6e 74 2e 74 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a rentEvent.type)..............{..
8de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 45 76 65 6e 74 54 79 70 65 2e 4d ................case.EventType.M
8e00 6f 75 73 65 44 6f 77 6e 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ouseDown:......................i
8e20 66 20 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 2e 43 6f 6e 74 61 69 6e 73 28 63 75 72 72 65 6e f.(selectionArea.Contains(curren
8e40 74 45 76 65 6e 74 2e 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 29 20 26 26 20 63 75 72 72 65 6e 74 tEvent.mousePosition).&&.current
8e60 45 76 65 6e 74 2e 62 75 74 74 6f 6e 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Event.button.==.0)..............
8e80 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ........{.......................
8ea0 20 20 20 63 75 72 72 65 6e 74 45 76 65 6e 74 2e 55 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ...currentEvent.Use();..........
8ec0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 ................return.true;....
8ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
8f00 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a .........break;..............}..
8f20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 ..............return.false;.....
8f40 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .....}..............///.<summary
8f60 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 77 61 70 20 74 68 65 20 73 70 72 69 74 65 20 69 >..........///.Swap.the.sprite.i
8f80 74 65 6d 20 61 74 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 6c 65 63 74 65 64 20 61 72 tem.at.the.currently.selected.ar
8fa0 72 61 79 20 69 6e 64 65 78 20 74 6f 20 61 6e 6f 74 68 65 72 20 69 6e 64 65 78 2e 0d 0a 20 20 20 ray.index.to.another.index......
8fc0 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
8fe0 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 65 6c 65 63 74 65 64 49 6e 64 65 78 22 3e 53 65 6c .<param.name="selectedIndex">Sel
9000 65 63 74 65 64 20 69 6e 64 65 78 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ected.index.</param>..........//
9020 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 65 77 49 6e 64 65 78 22 3e 4e 65 77 20 69 6e 64 /.<param.name="newIndex">New.ind
9040 65 78 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 77 61 70 43 68 ex.</param>..........void.SwapCh
9060 61 72 61 63 74 65 72 45 6c 65 6d 65 6e 74 73 28 69 6e 74 20 73 65 6c 65 63 74 65 64 49 6e 64 65 aracterElements(int.selectedInde
9080 78 2c 20 69 6e 74 20 6e 65 77 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 x,.int.newIndex)..........{.....
90a0 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 .........m_SpriteCharacterTableP
90c0 72 6f 70 65 72 74 79 2e 4d 6f 76 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 28 73 65 6c 65 63 74 65 roperty.MoveArrayElement(selecte
90e0 64 49 6e 64 65 78 2c 20 6e 65 77 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 dIndex,.newIndex);..............
9100 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 6e 65 77 49 6e 64 65 78 3b 0d 0a 20 m_selectedElement.=.newIndex;...
9120 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 ...........m_IsCharacterSearchDi
9140 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 rty.=.true;..............m_Sprit
9160 65 41 73 73 65 74 2e 6d 5f 49 73 53 70 72 69 74 65 41 73 73 65 74 4c 6f 6f 6b 75 70 54 61 62 6c eAsset.m_IsSpriteAssetLookupTabl
9180 65 73 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 esDirty.=.true;..........}......
91a0 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ......///.<summary>..........///
91c0 20 4d 6f 76 65 20 53 70 72 69 74 65 20 45 6c 65 6d 65 6e 74 20 61 74 20 73 65 6c 65 63 74 65 64 .Move.Sprite.Element.at.selected
91e0 20 69 6e 64 65 78 20 74 6f 20 61 6e 6f 74 68 65 72 20 69 6e 64 65 78 20 61 6e 64 20 72 65 6f 72 .index.to.another.index.and.reor
9200 64 65 72 20 73 70 72 69 74 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f der.sprite.list...........///.</
9220 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d summary>..........///.<param.nam
9240 65 3d 22 73 65 6c 65 63 74 65 64 49 6e 64 65 78 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 e="selectedIndex"></param>......
9260 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 65 77 49 6e 64 65 78 22 3e 3c ....///.<param.name="newIndex"><
9280 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 4d 6f 76 65 43 68 61 72 61 63 /param>..........void.MoveCharac
92a0 74 65 72 54 6f 49 6e 64 65 78 28 69 6e 74 20 73 65 6c 65 63 74 65 64 49 6e 64 65 78 2c 20 69 6e terToIndex(int.selectedIndex,.in
92c0 74 20 6e 65 77 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 t.newIndex)..........{..........
92e0 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 ....int.arraySize.=.m_SpriteChar
9300 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d acterTableProperty.arraySize;...
9320 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 49 6e 64 65 78 20 3e 3d 20 61 72 72 .............if.(newIndex.>=.arr
9340 61 79 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 49 6e 64 65 aySize)..................newInde
9360 78 20 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 x.=.arraySize.-.1;..............
9380 20 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 79 ..m_SpriteCharacterTableProperty
93a0 2e 4d 6f 76 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 28 73 65 6c 65 63 74 65 64 49 6e 64 65 78 2c .MoveArrayElement(selectedIndex,
93c0 20 6e 65 77 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c .newIndex);................m_sel
93e0 65 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 6e 65 77 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 ectedElement.=.newIndex;........
9400 20 20 20 20 20 20 6d 5f 49 73 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 44 69 72 74 79 20 3d ......m_IsCharacterSearchDirty.=
9420 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 41 73 73 65 .true;..............m_SpriteAsse
9440 74 2e 6d 5f 49 73 53 70 72 69 74 65 41 73 73 65 74 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 44 69 72 t.m_IsSpriteAssetLookupTablesDir
9460 74 79 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 ty.=.true;................//.TOD
9480 4f 3a 20 4e 65 65 64 20 74 6f 20 68 61 6e 64 6c 65 20 73 77 69 74 63 68 69 6e 67 20 70 61 67 65 O:.Need.to.handle.switching.page
94a0 73 20 69 66 20 74 68 65 20 63 68 61 72 61 63 74 65 72 20 6f 72 20 67 6c 79 70 68 20 69 73 20 6d s.if.the.character.or.glyph.is.m
94c0 6f 76 65 64 20 74 6f 20 61 20 64 69 66 66 65 72 65 6e 74 20 70 61 67 65 2e 0d 0a 20 20 20 20 20 oved.to.a.different.page........
94e0 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 ...}............///.<summary>...
9500 20 20 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 .......///...........///.</summa
9520 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 65 ry>..........///.<param.name="se
9540 6c 65 63 74 65 64 49 6e 64 65 78 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f lectedIndex"></param>........../
9560 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 65 77 49 6e 64 65 78 22 3e 3c 2f 70 61 72 61 //.<param.name="newIndex"></para
9580 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 77 61 70 47 6c 79 70 68 45 6c 65 6d 65 6e m>..........void.SwapGlyphElemen
95a0 74 73 28 69 6e 74 20 73 65 6c 65 63 74 65 64 49 6e 64 65 78 2c 20 69 6e 74 20 6e 65 77 49 6e 64 ts(int.selectedIndex,.int.newInd
95c0 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 ex)..........{..............m_Sp
95e0 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 4d 6f 76 65 41 72 72 61 79 riteGlyphTableProperty.MoveArray
9600 45 6c 65 6d 65 6e 74 28 73 65 6c 65 63 74 65 64 49 6e 64 65 78 2c 20 6e 65 77 49 6e 64 65 78 29 Element(selectedIndex,.newIndex)
9620 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 63 74 65 64 45 6c 65 6d 65 6e 74 ;..............m_selectedElement
9640 20 3d 20 6e 65 77 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 73 47 6c .=.newIndex;..............m_IsGl
9660 79 70 68 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 yphSearchDirty.=.true;..........
9680 20 20 20 20 6d 5f 53 70 72 69 74 65 41 73 73 65 74 2e 6d 5f 49 73 53 70 72 69 74 65 41 73 73 65 ....m_SpriteAsset.m_IsSpriteAsse
96a0 74 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 tLookupTablesDirty.=.true;......
96c0 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a ....}............///.<summary>..
96e0 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 6f 76 65 20 53 70 72 69 74 65 20 45 6c 65 6d 65 6e 74 20 ........///.Move.Sprite.Element.
9700 61 74 20 73 65 6c 65 63 74 65 64 20 69 6e 64 65 78 20 74 6f 20 61 6e 6f 74 68 65 72 20 69 6e 64 at.selected.index.to.another.ind
9720 65 78 20 61 6e 64 20 72 65 6f 72 64 65 72 20 73 70 72 69 74 65 20 6c 69 73 74 2e 0d 0a 20 20 20 ex.and.reorder.sprite.list......
9740 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .....///.</summary>..........///
9760 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 65 6c 65 63 74 65 64 49 6e 64 65 78 22 3e 3c 2f 70 .<param.name="selectedIndex"></p
9780 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 aram>..........///.<param.name="
97a0 6e 65 77 49 6e 64 65 78 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 newIndex"></param>..........void
97c0 20 4d 6f 76 65 47 6c 79 70 68 54 6f 49 6e 64 65 78 28 69 6e 74 20 73 65 6c 65 63 74 65 64 49 6e .MoveGlyphToIndex(int.selectedIn
97e0 64 65 78 2c 20 69 6e 74 20 6e 65 77 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 dex,.int.newIndex)..........{...
9800 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 53 70 72 ...........int.arraySize.=.m_Spr
9820 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b iteGlyphTableProperty.arraySize;
9840 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 49 6e 64 65 78 20 3e 3d 20 ................if.(newIndex.>=.
9860 61 72 72 61 79 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 49 arraySize)..................newI
9880 6e 64 65 78 20 3d 20 61 72 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 ndex.=.arraySize.-.1;...........
98a0 20 20 20 20 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f 70 65 72 74 79 2e .....m_SpriteGlyphTableProperty.
98c0 4d 6f 76 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 28 73 65 6c 65 63 74 65 64 49 6e 64 65 78 2c 20 MoveArrayElement(selectedIndex,.
98e0 6e 65 77 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 73 65 6c 65 newIndex);................m_sele
9900 63 74 65 64 45 6c 65 6d 65 6e 74 20 3d 20 6e 65 77 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 ctedElement.=.newIndex;.........
9920 20 20 20 20 20 6d 5f 49 73 47 6c 79 70 68 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 .....m_IsGlyphSearchDirty.=.true
9940 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 70 72 69 74 65 41 73 73 65 74 2e 6d 5f 49 ;..............m_SpriteAsset.m_I
9960 73 53 70 72 69 74 65 41 73 73 65 74 4c 6f 6f 6b 75 70 54 61 62 6c 65 73 44 69 72 74 79 20 3d 20 sSpriteAssetLookupTablesDirty.=.
9980 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 3a 20 4e 65 true;................//.TODO:.Ne
99a0 65 64 20 74 6f 20 68 61 6e 64 6c 65 20 73 77 69 74 63 68 69 6e 67 20 70 61 67 65 73 20 69 66 20 ed.to.handle.switching.pages.if.
99c0 74 68 65 20 63 68 61 72 61 63 74 65 72 20 6f 72 20 67 6c 79 70 68 20 69 73 20 6d 6f 76 65 64 20 the.character.or.glyph.is.moved.
99e0 74 6f 20 61 20 64 69 66 66 65 72 65 6e 74 20 70 61 67 65 2e 0d 0a 20 20 20 20 20 20 20 20 7d 0d to.a.different.page...........}.
9a00 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 .............///.<summary>......
9a20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e ....///...........///.</summary>
9a40 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 6f 75 72 63 ..........///.<param.name="sourc
9a60 65 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 e"></param>..........///.<param.
9a80 6e 61 6d 65 3d 22 74 61 72 67 65 74 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 name="target"></param>..........
9aa0 76 6f 69 64 20 43 6f 70 79 43 68 61 72 61 63 74 65 72 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 void.CopyCharacterSerializedProp
9ac0 65 72 74 79 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 2c 20 erty(SerializedProperty.source,.
9ae0 72 65 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 74 61 72 67 65 74 29 0d 0a ref.SerializedProperty.target)..
9b00 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 72 67 65 74 2e 46 69 ........{..............target.Fi
9b20 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4e 61 6d 65 22 29 2e 73 74 72 ndPropertyRelative("m_Name").str
9b40 69 6e 67 56 61 6c 75 65 20 3d 20 73 6f 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 ingValue.=.source.FindPropertyRe
9b60 6c 61 74 69 76 65 28 22 6d 5f 4e 61 6d 65 22 29 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 20 lative("m_Name").stringValue;...
9b80 20 20 20 20 20 20 20 20 20 20 20 74 61 72 67 65 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 ...........target.FindPropertyRe
9ba0 6c 61 74 69 76 65 28 22 6d 5f 48 61 73 68 43 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 lative("m_HashCode").intValue.=.
9bc0 73 6f 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 source.FindPropertyRelative("m_H
9be0 61 73 68 43 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ashCode").intValue;.............
9c00 20 74 61 72 67 65 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f .target.FindPropertyRelative("m_
9c20 55 6e 69 63 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 6f 75 72 63 65 2e 46 69 6e 64 Unicode").intValue.=.source.Find
9c40 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 55 6e 69 63 6f 64 65 22 29 2e 69 6e PropertyRelative("m_Unicode").in
9c60 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 72 67 65 74 2e 46 69 6e 64 tValue;..............target.Find
9c80 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 PropertyRelative("m_GlyphIndex")
9ca0 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 6f 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 .intValue.=.source.FindPropertyR
9cc0 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 elative("m_GlyphIndex").intValue
9ce0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 72 67 65 74 2e 46 69 6e 64 50 72 6f 70 65 72 ;..............target.FindProper
9d00 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 tyRelative("m_Scale").floatValue
9d20 20 3d 20 73 6f 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 .=.source.FindPropertyRelative("
9d40 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d m_Scale").floatValue;..........}
9d60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 43 6f 70 79 47 6c 79 70 68 53 65 72 69 61 6c ............void.CopyGlyphSerial
9d80 69 7a 65 64 50 72 6f 70 65 72 74 79 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 izedProperty(SerializedProperty.
9da0 73 72 63 47 6c 79 70 68 2c 20 72 65 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 srcGlyph,.ref.SerializedProperty
9dc0 20 64 73 74 47 6c 79 70 68 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 .dstGlyph)..........{...........
9de0 20 20 20 2f 2f 20 54 4f 44 4f 20 3a 20 53 68 6f 75 6c 64 20 6d 61 6b 65 20 61 20 67 65 6e 65 72 ...//.TODO.:.Should.make.a.gener
9e00 69 63 20 66 75 6e 63 74 69 6f 6e 20 77 68 69 63 68 20 63 6f 70 69 65 73 20 65 61 63 68 20 6f 66 ic.function.which.copies.each.of
9e20 20 74 68 65 20 70 72 6f 70 65 72 74 69 65 73 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .the.properties.................
9e40 2f 2f 20 49 6e 64 65 78 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 2e 46 //.Index..............dstGlyph.F
9e60 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 indPropertyRelative("m_Index").i
9e80 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 ntValue.=.srcGlyph.FindPropertyR
9ea0 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a elative("m_Index").intValue;....
9ec0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 6c 79 70 68 4d 65 74 72 69 63 73 0d 0a 20 20 20 ............//.GlyphMetrics.....
9ee0 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 72 63 47 .........SerializedProperty.srcG
9f00 6c 79 70 68 4d 65 74 72 69 63 73 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 lyphMetrics.=.srcGlyph.FindPrope
9f20 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a 20 20 20 20 20 rtyRelative("m_Metrics");.......
9f40 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 64 73 74 47 6c 79 .......SerializedProperty.dstGly
9f60 70 68 4d 65 74 72 69 63 73 20 3d 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 phMetrics.=.dstGlyph.FindPropert
9f80 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 yRelative("m_Metrics");.........
9fa0 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 .......dstGlyphMetrics.FindPrope
9fc0 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 74 56 61 6c 75 rtyRelative("m_Width").floatValu
9fe0 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 e.=.srcGlyphMetrics.FindProperty
a000 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d Relative("m_Width").floatValue;.
a020 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e .............dstGlyphMetrics.Fin
a040 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 66 6c dPropertyRelative("m_Height").fl
a060 6f 61 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 oatValue.=.srcGlyphMetrics.FindP
a080 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 66 6c 6f 61 ropertyRelative("m_Height").floa
a0a0 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 tValue;..............dstGlyphMet
a0c0 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 rics.FindPropertyRelative("m_Hor
a0e0 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 73 izontalBearingX").floatValue.=.s
a100 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 rcGlyphMetrics.FindPropertyRelat
a120 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 29 2e 66 6c 6f 61 ive("m_HorizontalBearingX").floa
a140 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 tValue;..............dstGlyphMet
a160 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 rics.FindPropertyRelative("m_Hor
a180 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 73 izontalBearingY").floatValue.=.s
a1a0 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 rcGlyphMetrics.FindPropertyRelat
a1c0 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 2e 66 6c 6f 61 ive("m_HorizontalBearingY").floa
a1e0 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 tValue;..............dstGlyphMet
a200 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 rics.FindPropertyRelative("m_Hor
a220 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 73 72 izontalAdvance").floatValue.=.sr
a240 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 cGlyphMetrics.FindPropertyRelati
a260 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f 61 74 56 ve("m_HorizontalAdvance").floatV
a280 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 6c 79 70 68 52 65 63 alue;................//.GlyphRec
a2a0 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 t..............SerializedPropert
a2c0 79 20 73 72 63 47 6c 79 70 68 52 65 63 74 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 y.srcGlyphRect.=.srcGlyph.FindPr
a2e0 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 52 65 63 74 22 29 3b 0d 0a opertyRelative("m_GlyphRect");..
a300 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 64 ............SerializedProperty.d
a320 73 74 47 6c 79 70 68 52 65 63 74 20 3d 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 stGlyphRect.=.dstGlyph.FindPrope
a340 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 52 65 63 74 22 29 3b 0d 0a 0d 0a 20 rtyRelative("m_GlyphRect");.....
a360 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 ...........dstGlyphRect.FindProp
a380 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 ertyRelative("m_X").intValue.=.s
a3a0 72 63 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 rcGlyphRect.FindPropertyRelative
a3c0 28 22 6d 5f 58 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 ("m_X").intValue;..............d
a3e0 73 74 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 stGlyphRect.FindPropertyRelative
a400 28 22 6d 5f 59 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 52 65 63 74 2e ("m_Y").intValue.=.srcGlyphRect.
a420 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 22 29 2e 69 6e 74 56 FindPropertyRelative("m_Y").intV
a440 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 52 65 63 74 2e alue;..............dstGlyphRect.
a460 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e FindPropertyRelative("m_Width").
a480 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 intValue.=.srcGlyphRect.FindProp
a4a0 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 69 6e 74 56 61 6c 75 65 ertyRelative("m_Width").intValue
a4c0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 ;..............dstGlyphRect.Find
a4e0 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 69 6e 74 PropertyRelative("m_Height").int
a500 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 Value.=.srcGlyphRect.FindPropert
a520 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d yRelative("m_Height").intValue;.
a540 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 ...............dstGlyph.FindProp
a560 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c ertyRelative("m_Scale").floatVal
a580 75 65 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 ue.=.srcGlyph.FindPropertyRelati
a5a0 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 ve("m_Scale").floatValue;.......
a5c0 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 .......dstGlyph.FindPropertyRela
a5e0 74 69 76 65 28 22 6d 5f 41 74 6c 61 73 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 tive("m_AtlasIndex").intValue.=.
a600 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d srcGlyph.FindPropertyRelative("m
a620 5f 41 74 6c 61 73 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 _AtlasIndex").intValue;.........
a640 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 .}..............///.<summary>...
a660 20 20 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 .......///...........///.</summa
a680 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 65 ry>..........///.<param.name="se
a6a0 61 72 63 68 50 61 74 74 65 72 6e 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f archPattern"></param>........../
a6c0 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 //.<returns></returns>..........
a6e0 76 6f 69 64 20 53 65 61 72 63 68 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 28 73 74 72 69 6e 67 void.SearchCharacterTable(string
a700 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 72 65 66 20 4c 69 73 74 3c 69 6e 74 3e 20 73 65 .searchPattern,.ref.List<int>.se
a720 61 72 63 68 52 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 archResults)..........{.........
a740 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 3d 20 6e 75 6c 6c 29 20 .....if.(searchResults.==.null).
a760 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 69 6e 74 3e 28 29 3b searchResults.=.new.List<int>();
a780 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 43 6c 65 61 ..............searchResults.Clea
a7a0 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a r();................int.arraySiz
a7c0 65 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 e.=.m_SpriteCharacterTableProper
a7e0 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 ty.arraySize;................for
a800 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 .(int.i.=.0;.i.<.arraySize;.i++)
a820 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
a840 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 53 70 72 69 74 65 .SerializedProperty.sourceSprite
a860 20 3d 20 6d 5f 53 70 72 69 74 65 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 72 6f 70 65 72 74 .=.m_SpriteCharacterTablePropert
a880 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 0d 0a y.GetArrayElementAtIndex(i);....
a8a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 ................//.Check.for.pot
a8c0 65 6e 74 69 61 6c 20 6d 61 74 63 68 20 61 67 61 69 6e 73 74 20 61 72 72 61 79 20 69 6e 64 65 78 ential.match.against.array.index
a8e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 2e 54 6f 53 74 72 69 6e 67 ..................if.(i.ToString
a900 28 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 ().Contains(searchPattern)).....
a920 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
a940 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 ....searchResults.Add(i);.......
a960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 ...............continue;........
a980 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ..........}..................../
a9a0 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 20 61 67 61 69 /.Check.for.potential.match.agai
a9c0 6e 73 74 20 64 65 63 69 6d 61 6c 20 69 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nst.decimal.id..................
a9e0 69 6e 74 20 69 64 20 3d 20 73 6f 75 72 63 65 53 70 72 69 74 65 2e 46 69 6e 64 50 72 6f 70 65 72 int.id.=.sourceSprite.FindProper
aa00 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 tyRelative("m_GlyphIndex").intVa
aa20 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 64 2e 54 6f 53 lue;..................if.(id.ToS
aa40 74 72 69 6e 67 28 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 tring().Contains(searchPattern))
aa60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
aa80 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a .........searchResults.Add(i);..
aaa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 ....................continue;...
aac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...............}................
aae0 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 ....//.Check.for.potential.match
ab00 20 61 67 61 69 6e 73 74 20 6e 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 .against.name..................s
ab20 74 72 69 6e 67 20 6e 61 6d 65 20 3d 20 73 6f 75 72 63 65 53 70 72 69 74 65 2e 46 69 6e 64 50 72 tring.name.=.sourceSprite.FindPr
ab40 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4e 61 6d 65 22 29 2e 73 74 72 69 6e 67 56 opertyRelative("m_Name").stringV
ab60 61 6c 75 65 2e 54 6f 4c 6f 77 65 72 28 53 79 73 74 65 6d 2e 47 6c 6f 62 61 6c 69 7a 61 74 69 6f alue.ToLower(System.Globalizatio
ab80 6e 2e 43 75 6c 74 75 72 65 49 6e 66 6f 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 29 2e n.CultureInfo.InvariantCulture).
aba0 54 72 69 6d 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 61 6d Trim();..................if.(nam
abc0 65 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 e.Contains(searchPattern))......
abe0 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............{...................
ac00 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 ...searchResults.Add(i);........
ac20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 20 ..............continue;.........
ac40 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 .........}..............}.......
ac60 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 65 61 72 63 68 47 6c 79 70 68 ...}............void.SearchGlyph
ac80 54 61 62 6c 65 28 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 72 65 66 20 Table(string.searchPattern,.ref.
aca0 4c 69 73 74 3c 69 6e 74 3e 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 List<int>.searchResults)........
acc0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 52 65 73 75 6c ..{..............if.(searchResul
ace0 74 73 20 3d 3d 20 6e 75 6c 6c 29 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 20 6e 65 77 20 ts.==.null).searchResults.=.new.
ad00 4c 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 List<int>();..............search
ad20 52 65 73 75 6c 74 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Results.Clear();................
ad40 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 int.arraySize.=.m_SpriteGlyphTab
ad60 6c 65 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 leProperty.arraySize;...........
ad80 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 61 72 72 61 79 53 69 .....for.(int.i.=.0;.i.<.arraySi
ada0 7a 65 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ze;.i++)..............{.........
adc0 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 .........SerializedProperty.sour
ade0 63 65 53 70 72 69 74 65 20 3d 20 6d 5f 53 70 72 69 74 65 47 6c 79 70 68 54 61 62 6c 65 50 72 6f ceSprite.=.m_SpriteGlyphTablePro
ae00 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b perty.GetArrayElementAtIndex(i);
ae20 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 ....................//.Check.for
ae40 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 20 61 67 61 69 6e 73 74 20 61 72 72 61 79 20 69 .potential.match.against.array.i
ae60 6e 64 65 78 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 2e 54 6f 53 74 ndex..................if.(i.ToSt
ae80 72 69 6e 67 28 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d ring().Contains(searchPattern)).
aea0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
aec0 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 ........searchResults.Add(i);...
aee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 ...................continue;....
af00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
af20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 20 ...//.Check.for.potential.match.
af40 61 67 61 69 6e 73 74 20 64 65 63 69 6d 61 6c 20 69 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 against.decimal.id..............
af60 20 20 20 20 69 6e 74 20 69 64 20 3d 20 73 6f 75 72 63 65 53 70 72 69 74 65 2e 46 69 6e 64 50 72 ....int.id.=.sourceSprite.FindPr
af80 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 opertyRelative("m_GlyphIndex").i
afa0 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 64 ntValue;..................if.(id
afc0 2e 54 6f 53 74 72 69 6e 67 28 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 .ToString().Contains(searchPatte
afe0 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 rn))..................{.........
b000 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 .............searchResults.Add(i
b020 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 );......................continue
b040 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ;..................}............
b060 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d ........//.Check.for.potential.m
b080 61 74 63 68 20 61 67 61 69 6e 73 74 20 6e 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 atch.against.name...............
b0a0 20 20 20 73 74 72 69 6e 67 20 6e 61 6d 65 20 3d 20 73 6f 75 72 63 65 53 70 72 69 74 65 2e 46 69 ...string.name.=.sourceSprite.Fi
b0c0 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4e 61 6d 65 22 29 2e 73 74 72 ndPropertyRelative("m_Name").str
b0e0 69 6e 67 56 61 6c 75 65 2e 54 6f 4c 6f 77 65 72 28 53 79 73 74 65 6d 2e 47 6c 6f 62 61 6c 69 7a ingValue.ToLower(System.Globaliz
b100 61 74 69 6f 6e 2e 43 75 6c 74 75 72 65 49 6e 66 6f 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 ation.CultureInfo.InvariantCultu
b120 72 65 29 2e 54 72 69 6d 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 re).Trim();..................if.
b140 28 6e 61 6d 65 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a (name.Contains(searchPattern))..
b160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
b180 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 .......searchResults.Add(i);....
b1a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 ..................continue;.....
b1c0 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 .............}..............}...
b1e0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 7d 0d 0a 7d 00 00 00 00 00 00 00 00 00 00 00 00 .......}........}..}............
b200 00 00 00 00 00 00 00 00 15 00 00 00 54 4d 50 5f 53 70 72 69 74 65 41 73 73 65 74 45 64 69 74 6f ............TMP_SpriteAssetEdito
b220 72 00 00 00 15 00 00 00 54 4d 50 72 6f 2e 45 64 69 74 6f 72 55 74 69 6c 69 74 69 65 73 00 00 00 r.......TMPro.EditorUtilities...