summaryrefslogtreecommitdiff
path: root/Library/Artifacts/af/af1d711ef6a8f35a949c245a85a1a8d3
blob: 8c979bc745e09de65bf070364835bc18922682e5 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 4a cc 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......J.............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 6c 3a 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 l:..............................
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 10 00 00 00 49 6e 70 75 74 53 74 61 74 65 57 69 6e 64 6f 77 de 39 00 00 ............InputStateWindow.9..
10a0 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d #if.UNITY_EDITOR..using.System;.
10c0 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 .using.System.Collections.Generi
10e0 63 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 4c 6f 77 4c c;..using.Unity.Collections.LowL
1100 65 76 65 6c 2e 55 6e 73 61 66 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b evel.Unsafe;..using.UnityEditor;
1120 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 49 4d 47 55 49 2e 43 6f 6e 74 72 6f ..using.UnityEditor.IMGUI.Contro
1140 6c 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 ls;..using.UnityEngine.InputSyst
1160 65 6d 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 61 62 em.LowLevel;....////TODO:.add.ab
1180 69 6c 69 74 79 20 74 6f 20 73 69 6e 67 6c 65 2d 73 74 65 70 20 74 68 72 6f 75 67 68 20 65 76 65 ility.to.single-step.through.eve
11a0 6e 74 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6e 6e 6f 74 61 74 65 20 72 61 77 20 6d 65 nts....////TODO:.annotate.raw.me
11c0 6d 6f 72 79 20 76 69 65 77 20 77 69 74 68 20 63 6f 6e 74 72 6f 6c 20 6f 66 66 73 65 74 20 61 6e mory.view.with.control.offset.an
11e0 64 20 72 61 6e 67 65 73 20 28 70 72 6f 62 61 62 6c 79 20 65 61 73 69 65 73 74 20 74 6f 20 70 75 d.ranges.(probably.easiest.to.pu
1200 74 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 72 65 65 20 61 6e 64 20 72 61 77 20 6d 65 6d 6f 72 t.the.control.tree.and.raw.memor
1220 79 20 76 69 65 77 20 73 69 64 65 20 62 79 20 73 69 64 65 29 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f y.view.side.by.side)....////TODO
1240 3a 20 66 69 6e 64 20 77 61 79 20 74 6f 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 6f 63 6b :.find.way.to.automatically.dock
1260 20 74 68 65 20 73 74 61 74 65 20 77 69 6e 64 6f 77 73 20 6e 65 78 74 20 74 6f 20 74 68 65 69 72 .the.state.windows.next.to.their
1280 20 49 6e 70 75 74 44 65 76 69 63 65 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 0d 0a 2f 2f 2f .InputDeviceDebuggerWindows..///
12a0 2f 20 20 20 20 20 20 28 70 72 6f 62 61 62 6c 79 20 6e 65 65 64 73 20 61 6e 20 65 78 74 65 6e 73 /......(probably.needs.an.extens
12c0 69 6f 6e 20 74 6f 20 74 68 65 20 65 64 69 74 6f 72 20 55 49 20 41 50 49 73 20 61 73 20 74 68 65 ion.to.the.editor.UI.APIs.as.the
12e0 20 6f 6e 6c 79 20 70 72 6f 67 72 61 6d 6d 61 74 69 63 20 64 6f 63 6b 69 6e 67 20 63 6f 6e 74 72 .only.programmatic.docking.contr
1300 6f 6c 73 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 73 65 65 6d 20 74 6f 20 62 65 20 74 68 72 6f 75 67 ols..////......seem.to.be.throug
1320 68 20 47 65 74 57 69 6e 64 6f 77 29 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f 77 20 h.GetWindow)....////TODO:.allow.
1340 73 65 74 74 69 6e 67 20 61 20 43 23 20 73 74 72 75 63 74 20 74 79 70 65 20 74 68 61 74 20 77 65 setting.a.C#.struct.type.that.we
1360 20 63 61 6e 20 75 73 65 20 74 6f 20 64 69 73 70 6c 61 79 20 74 68 65 20 6c 61 79 6f 75 74 20 6f .can.use.to.display.the.layout.o
1380 66 20 74 68 65 20 64 61 74 61 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 66 6f 72 20 64 65 6c 74 f.the.data....////TODO:.for.delt
13a0 61 20 73 74 61 74 65 20 65 76 65 6e 74 73 2c 20 68 69 67 68 6c 69 67 68 74 20 74 68 65 20 63 6f a.state.events,.highlight.the.co
13c0 6e 74 72 6f 6c 73 20 69 6e 63 6c 75 64 65 64 20 69 6e 20 74 68 65 20 65 76 65 6e 74 20 28 6f 72 ntrols.included.in.the.event.(or
13e0 20 73 68 6f 77 20 6f 6e 6c 79 20 74 68 6f 73 65 29 0d 0a 0d 0a 2f 2f 2f 2f 46 49 58 4d 45 3a 20 .show.only.those)....////FIXME:.
1400 6e 65 65 64 20 74 6f 20 70 72 65 76 65 6e 74 20 65 78 74 72 61 20 63 6f 6e 74 72 6f 6c 73 20 61 need.to.prevent.extra.controls.a
1420 70 70 65 6e 64 65 64 20 61 74 20 65 6e 64 20 66 72 6f 6d 20 72 65 61 64 69 6e 67 20 62 65 79 6f ppended.at.end.from.reading.beyo
1440 6e 64 20 74 68 65 20 73 74 61 74 65 20 62 75 66 66 65 72 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 nd.the.state.buffer....namespace
1460 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 0d .UnityEngine.InputSystem.Editor.
1480 0a 7b 0d 0a 20 20 20 20 2f 2f 20 41 64 64 69 74 69 6f 6e 61 6c 20 77 69 6e 64 6f 77 20 74 68 61 .{......//.Additional.window.tha
14a0 74 20 77 65 20 63 61 6e 20 70 6f 70 20 6f 70 65 6e 20 74 6f 20 69 6e 73 70 65 63 74 20 72 61 77 t.we.can.pop.open.to.inspect.raw
14c0 20 73 74 61 74 65 20 28 65 69 74 68 65 72 20 6f 6e 20 65 76 65 6e 74 73 20 6f 72 20 6f 6e 20 63 .state.(either.on.events.or.on.c
14e0 6f 6e 74 72 6f 6c 73 2f 64 65 76 69 63 65 73 29 2e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 ontrols/devices).......internal.
1500 63 6c 61 73 73 20 49 6e 70 75 74 53 74 61 74 65 57 69 6e 64 6f 77 20 3a 20 45 64 69 74 6f 72 57 class.InputStateWindow.:.EditorW
1520 69 6e 64 6f 77 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f indow......{..........private.co
1540 6e 73 74 20 69 6e 74 20 6b 42 79 74 65 73 50 65 72 48 65 78 47 72 6f 75 70 20 3d 20 31 3b 0d 0a nst.int.kBytesPerHexGroup.=.1;..
1560 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 69 6e 74 20 6b 48 65 78 47 72 ........private.const.int.kHexGr
1580 6f 75 70 73 50 65 72 4c 69 6e 65 20 3d 20 38 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 oupsPerLine.=.8;..........privat
15a0 65 20 63 6f 6e 73 74 20 69 6e 74 20 6b 48 65 78 44 75 6d 70 4c 69 6e 65 48 65 69 67 68 74 20 3d e.const.int.kHexDumpLineHeight.=
15c0 20 32 35 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 69 6e 74 20 .25;..........private.const.int.
15e0 6b 4f 66 66 73 65 74 4c 61 62 65 6c 57 69 64 74 68 20 3d 20 33 30 3b 0d 0a 20 20 20 20 20 20 20 kOffsetLabelWidth.=.30;.........
1600 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 69 6e 74 20 6b 48 65 78 47 72 6f 75 70 57 69 64 74 .private.const.int.kHexGroupWidt
1620 68 20 3d 20 32 35 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 49 h.=.25;............public.void.I
1640 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 45 76 65 6e 74 28 49 6e 70 75 74 45 76 65 6e 74 50 74 72 nitializeWithEvent(InputEventPtr
1660 20 65 76 65 6e 74 50 74 72 2c 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 29 .eventPtr,.InputControl.control)
1680 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 43 6f 6e 74 72 ..........{..............m_Contr
16a0 6f 6c 20 3d 20 63 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 ol.=.control;..............m_Sta
16c0 74 65 42 75 66 66 65 72 73 20 3d 20 6e 65 77 20 62 79 74 65 5b 31 5d 5b 5d 3b 0d 0a 20 20 20 20 teBuffers.=.new.byte[1][];......
16e0 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 5b 30 5d 20 3d 20 47 65 74 45 ........m_StateBuffers[0].=.GetE
1700 76 65 6e 74 53 74 61 74 65 42 75 66 66 65 72 28 65 76 65 6e 74 50 74 72 2c 20 63 6f 6e 74 72 6f ventStateBuffer(eventPtr,.contro
1720 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 l);..............m_SelectedState
1740 42 75 66 66 65 72 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 Buffer.=.0;................title
1760 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 63 6f 6e 74 72 6f 6c Content.=.new.GUIContent(control
1780 2e 64 69 73 70 6c 61 79 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 .displayName);..........}.......
17a0 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 45 .....public.void.InitializeWithE
17c0 76 65 6e 74 73 28 49 6e 70 75 74 45 76 65 6e 74 50 74 72 5b 5d 20 65 76 65 6e 74 50 74 72 73 2c vents(InputEventPtr[].eventPtrs,
17e0 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 20 20 20 .InputControl.control)..........
1800 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 75 6d 45 76 65 6e 74 73 20 3d 20 65 {..............var.numEvents.=.e
1820 76 65 6e 74 50 74 72 73 2e 4c 65 6e 67 74 68 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ventPtrs.Length;................
1840 6d 5f 43 6f 6e 74 72 6f 6c 20 3d 20 63 6f 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 m_Control.=.control;............
1860 20 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 20 3d 20 6e 65 77 20 62 79 74 65 5b 6e 75 6d 45 ..m_StateBuffers.=.new.byte[numE
1880 76 65 6e 74 73 5d 5b 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 vents][];..............for.(var.
18a0 69 20 3d 20 30 3b 20 69 20 3c 20 6e 75 6d 45 76 65 6e 74 73 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 i.=.0;.i.<.numEvents;.++i)......
18c0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 5b 69 5d 20 3d 20 ............m_StateBuffers[i].=.
18e0 47 65 74 45 76 65 6e 74 53 74 61 74 65 42 75 66 66 65 72 28 65 76 65 6e 74 50 74 72 73 5b 69 5d GetEventStateBuffer(eventPtrs[i]
1900 2c 20 63 6f 6e 74 72 6f 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6d 70 61 ,.control);..............m_Compa
1920 72 65 53 74 61 74 65 42 75 66 66 65 72 73 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 reStateBuffers.=.true;..........
1940 20 20 20 20 6d 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 20 3d 20 74 72 75 65 3b 0d ....m_ShowDifferentOnly.=.true;.
1960 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 ...............titleContent.=.ne
1980 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 63 6f 6e 74 72 6f 6c 2e 64 69 73 70 6c 61 79 4e 61 6d 65 w.GUIContent(control.displayName
19a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 );..........}............private
19c0 20 75 6e 73 61 66 65 20 62 79 74 65 5b 5d 20 47 65 74 45 76 65 6e 74 53 74 61 74 65 42 75 66 66 .unsafe.byte[].GetEventStateBuff
19e0 65 72 28 49 6e 70 75 74 45 76 65 6e 74 50 74 72 20 65 76 65 6e 74 50 74 72 2c 20 49 6e 70 75 74 er(InputEventPtr.eventPtr,.Input
1a00 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 Control.control)..........{.....
1a20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 75 73 74 20 62 65 20 61 6e 20 65 76 65 6e 74 20 63 61 72 .........//.Must.be.an.event.car
1a40 72 79 69 6e 67 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 65 rying.state...............if.(!e
1a60 76 65 6e 74 50 74 72 2e 49 73 41 3c 53 74 61 74 65 45 76 65 6e 74 3e 28 29 20 26 26 20 21 65 76 ventPtr.IsA<StateEvent>().&&.!ev
1a80 65 6e 74 50 74 72 2e 49 73 41 3c 44 65 6c 74 61 53 74 61 74 65 45 76 65 6e 74 3e 28 29 29 0d 0a entPtr.IsA<DeltaStateEvent>())..
1aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 ................throw.new.Argume
1ac0 6e 74 45 78 63 65 70 74 69 6f 6e 28 22 45 76 65 6e 74 20 6d 75 73 74 20 62 65 20 73 74 61 74 65 ntException("Event.must.be.state
1ae0 20 6f 72 20 64 65 6c 74 61 20 65 76 65 6e 74 22 2c 20 6e 61 6d 65 6f 66 28 65 76 65 6e 74 50 74 .or.delta.event",.nameof(eventPt
1b00 72 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 73 74 61 74 65 r));................//.Get.state
1b20 20 64 61 74 61 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 6f 69 64 2a 20 64 61 74 61 50 74 .data...............void*.dataPt
1b40 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 64 61 74 61 53 69 7a 65 3b 0d 0a r;..............uint.dataSize;..
1b60 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 73 74 61 74 65 53 69 7a 65 3b 0d 0a 20 20 20 ............uint.stateSize;.....
1b80 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 73 74 61 74 65 4f 66 66 73 65 74 20 3d 20 30 3b 0d 0a .........uint.stateOffset.=.0;..
1ba0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 2e 49 73 41 3c 44 ..............if.(eventPtr.IsA<D
1bc0 65 6c 74 61 53 74 61 74 65 45 76 65 6e 74 3e 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 eltaStateEvent>())..............
1be0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 6c 74 61 45 76 65 6e {..................var.deltaEven
1c00 74 50 74 72 20 3d 20 44 65 6c 74 61 53 74 61 74 65 45 76 65 6e 74 2e 46 72 6f 6d 28 65 76 65 6e tPtr.=.DeltaStateEvent.From(even
1c20 74 50 74 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 61 74 65 53 69 7a tPtr);..................stateSiz
1c40 65 20 3d 20 63 6f 6e 74 72 6f 6c 2e 73 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 e.=.control.stateBlock.alignedSi
1c60 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 61 74 zeInBytes;..................stat
1c80 65 4f 66 66 73 65 74 20 3d 20 64 65 6c 74 61 45 76 65 6e 74 50 74 72 2d 3e 73 74 61 74 65 4f 66 eOffset.=.deltaEventPtr->stateOf
1ca0 66 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 61 74 61 50 74 72 20 3d fset;..................dataPtr.=
1cc0 20 64 65 6c 74 61 45 76 65 6e 74 50 74 72 2d 3e 64 65 6c 74 61 53 74 61 74 65 3b 0d 0a 20 20 20 .deltaEventPtr->deltaState;.....
1ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 64 61 74 61 53 69 7a 65 20 3d 20 64 65 6c 74 61 45 76 65 .............dataSize.=.deltaEve
1d00 6e 74 50 74 72 2d 3e 64 65 6c 74 61 53 74 61 74 65 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 ntPtr->deltaStateSizeInBytes;...
1d20 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 65 6c 73 65 0d 0a ...........}..............else..
1d40 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 76 ............{..................v
1d60 61 72 20 73 74 61 74 65 45 76 65 6e 74 50 74 72 20 3d 20 53 74 61 74 65 45 76 65 6e 74 2e 46 72 ar.stateEventPtr.=.StateEvent.Fr
1d80 6f 6d 28 65 76 65 6e 74 50 74 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 om(eventPtr);..................d
1da0 61 74 61 53 69 7a 65 20 3d 20 73 74 61 74 65 53 69 7a 65 20 3d 20 73 74 61 74 65 45 76 65 6e 74 ataSize.=.stateSize.=.stateEvent
1dc0 50 74 72 2d 3e 73 74 61 74 65 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 Ptr->stateSizeInBytes;..........
1de0 20 20 20 20 20 20 20 20 64 61 74 61 50 74 72 20 3d 20 73 74 61 74 65 45 76 65 6e 74 50 74 72 2d ........dataPtr.=.stateEventPtr-
1e00 3e 73 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 >state;..............}..........
1e20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 20 65 76 65 6e 74 20 64 61 74 61 2e 0d 0a 20 20 20 20 20 ......//.Copy.event.data........
1e40 20 20 20 20 20 20 20 76 61 72 20 62 75 66 66 65 72 20 3d 20 6e 65 77 20 62 79 74 65 5b 73 74 61 .......var.buffer.=.new.byte[sta
1e60 74 65 53 69 7a 65 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 69 78 65 64 28 62 79 74 65 teSize];..............fixed(byte
1e80 2a 20 62 75 66 66 65 72 50 74 72 20 3d 20 62 75 66 66 65 72 29 0d 0a 20 20 20 20 20 20 20 20 20 *.bufferPtr.=.buffer)...........
1ea0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c ...{..................UnsafeUtil
1ec0 69 74 79 2e 4d 65 6d 43 70 79 28 62 75 66 66 65 72 50 74 72 20 2b 20 73 74 61 74 65 4f 66 66 73 ity.MemCpy(bufferPtr.+.stateOffs
1ee0 65 74 2c 20 64 61 74 61 50 74 72 2c 20 64 61 74 61 53 69 7a 65 29 3b 0d 0a 20 20 20 20 20 20 20 et,.dataPtr,.dataSize);.........
1f00 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 75 66 .....}................return.buf
1f20 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 fer;..........}............publi
1f40 63 20 75 6e 73 61 66 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 43 6f 6e 74 c.unsafe.void.InitializeWithCont
1f60 72 6f 6c 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 rol(InputControl.control).......
1f80 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 20 3d 20 63 6f ...{..............m_Control.=.co
1fa0 6e 74 72 6f 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 74 ntrol;..............m_SelectedSt
1fc0 61 74 65 42 75 66 66 65 72 20 3d 20 28 69 6e 74 29 42 75 66 66 65 72 53 65 6c 65 63 74 6f 72 2e ateBuffer.=.(int)BufferSelector.
1fe0 44 65 66 61 75 6c 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 66 66 Default;................var.buff
2000 65 72 43 68 6f 69 63 65 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 47 55 49 43 6f 6e 74 65 6e 74 3e erChoices.=.new.List<GUIContent>
2020 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 66 66 65 72 43 68 6f 69 63 ();..............var.bufferChoic
2040 65 56 61 6c 75 65 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 0d 0a 20 20 eValues.=.new.List<int>();......
2060 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 20 66 72 6f 6e 74 20 61 6e 64 20 62 61 63 6b ..........//.Copy.front.and.back
2080 20 62 75 66 66 65 72 20 73 74 61 74 65 20 66 6f 72 20 65 61 63 68 20 75 70 64 61 74 65 20 74 68 .buffer.state.for.each.update.th
20a0 61 74 20 68 61 73 20 76 61 6c 69 64 20 62 75 66 66 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 at.has.valid.buffers............
20c0 20 20 20 76 61 72 20 64 65 76 69 63 65 20 3d 20 63 6f 6e 74 72 6f 6c 2e 64 65 76 69 63 65 3b 0d ...var.device.=.control.device;.
20e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 53 69 7a 65 20 3d 20 63 6f 6e .............var.stateSize.=.con
2100 74 72 6f 6c 2e 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 trol.m_StateBlock.alignedSizeInB
2120 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 74 65 4f 66 66 73 ytes;..............var.stateOffs
2140 65 74 20 3d 20 63 6f 6e 74 72 6f 6c 2e 6d 5f 53 74 61 74 65 42 6c 6f 63 6b 2e 62 79 74 65 4f 66 et.=.control.m_StateBlock.byteOf
2160 66 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 fset;..............m_StateBuffer
2180 73 20 3d 20 6e 65 77 20 62 79 74 65 5b 28 69 6e 74 29 42 75 66 66 65 72 53 65 6c 65 63 74 6f 72 s.=.new.byte[(int)BufferSelector
21a0 2e 43 4f 55 4e 54 5d 5b 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 .COUNT][];..............for.(var
21c0 20 69 20 3d 20 30 3b 20 69 20 3c 20 28 69 6e 74 29 42 75 66 66 65 72 53 65 6c 65 63 74 6f 72 2e .i.=.0;.i.<.(int)BufferSelector.
21e0 43 4f 55 4e 54 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 COUNT;.++i)..............{......
2200 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 6f 72 20 3d 20 28 42 75 66 66 ............var.selector.=.(Buff
2220 65 72 53 65 6c 65 63 74 6f 72 29 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 erSelector)i;..................v
2240 61 72 20 64 65 76 69 63 65 53 74 61 74 65 20 3d 20 54 72 79 47 65 74 44 65 76 69 63 65 53 74 61 ar.deviceState.=.TryGetDeviceSta
2260 74 65 28 64 65 76 69 63 65 2c 20 73 65 6c 65 63 74 6f 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 te(device,.selector);...........
2280 20 20 20 20 20 20 20 69 66 20 28 64 65 76 69 63 65 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d .......if.(deviceState.==.null).
22a0 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 3b 0d 0a .....................continue;..
22c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 66 66 65 72 20 3d 20 6e ..................var.buffer.=.n
22e0 65 77 20 62 79 74 65 5b 73 74 61 74 65 53 69 7a 65 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ew.byte[stateSize];.............
2300 20 20 20 20 20 66 69 78 65 64 28 62 79 74 65 2a 20 73 74 61 74 65 44 61 74 61 50 74 72 20 3d 20 .....fixed(byte*.stateDataPtr.=.
2320 62 75 66 66 65 72 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 buffer)..................{......
2340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 4d 65 ................UnsafeUtility.Me
2360 6d 43 70 79 28 73 74 61 74 65 44 61 74 61 50 74 72 2c 20 28 62 79 74 65 2a 29 64 65 76 69 63 65 mCpy(stateDataPtr,.(byte*)device
2380 53 74 61 74 65 20 2b 20 28 69 6e 74 29 73 74 61 74 65 4f 66 66 73 65 74 2c 20 73 74 61 74 65 53 State.+.(int)stateOffset,.stateS
23a0 69 7a 65 29 3b 0d 0a 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 ize);..................}........
23c0 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 5b 69 5d 20 3d 20 62 75 ..........m_StateBuffers[i].=.bu
23e0 66 66 65 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 ffer;....................if.(m_S
2400 74 61 74 65 42 75 66 66 65 72 73 5b 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 tateBuffers[m_SelectedStateBuffe
2420 72 5d 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r].==.null).....................
2440 20 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 72 20 3d 20 28 69 6e 74 29 73 65 .m_SelectedStateBuffer.=.(int)se
2460 6c 65 63 74 6f 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 lector;....................buffe
2480 72 43 68 6f 69 63 65 73 2e 41 64 64 28 43 6f 6e 74 65 6e 74 73 2e 62 75 66 66 65 72 43 68 6f 69 rChoices.Add(Contents.bufferChoi
24a0 63 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 ces[i]);..................buffer
24c0 43 68 6f 69 63 65 56 61 6c 75 65 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ChoiceValues.Add(i);............
24e0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 ..}................m_BufferChoic
2500 65 73 20 3d 20 62 75 66 66 65 72 43 68 6f 69 63 65 73 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 es.=.bufferChoices.ToArray();...
2520 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 65 56 61 6c 75 65 73 20 ...........m_BufferChoiceValues.
2540 3d 20 62 75 66 66 65 72 43 68 6f 69 63 65 56 61 6c 75 65 73 2e 54 6f 41 72 72 61 79 28 29 3b 0d =.bufferChoiceValues.ToArray();.
2560 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 ...............titleContent.=.ne
2580 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 63 6f 6e 74 72 6f 6c 2e 64 69 73 70 6c 61 79 4e 61 6d 65 w.GUIContent(control.displayName
25a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 );..........}............private
25c0 20 73 74 61 74 69 63 20 75 6e 73 61 66 65 20 76 6f 69 64 2a 20 54 72 79 47 65 74 44 65 76 69 63 .static.unsafe.void*.TryGetDevic
25e0 65 53 74 61 74 65 28 49 6e 70 75 74 44 65 76 69 63 65 20 64 65 76 69 63 65 2c 20 42 75 66 66 65 eState(InputDevice.device,.Buffe
2600 72 53 65 6c 65 63 74 6f 72 20 73 65 6c 65 63 74 6f 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a rSelector.selector)..........{..
2620 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 6e 61 67 65 72 20 3d 20 49 6e 70 75 74 53 ............var.manager.=.InputS
2640 79 73 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ystem.s_Manager;..............va
2660 72 20 64 65 76 69 63 65 49 6e 64 65 78 20 3d 20 64 65 76 69 63 65 2e 6d 5f 44 65 76 69 63 65 49 r.deviceIndex.=.device.m_DeviceI
2680 6e 64 65 78 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 73 65 6c ndex;................switch.(sel
26a0 65 63 74 6f 72 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 20 ector)..............{...........
26c0 20 20 20 20 20 20 20 63 61 73 65 20 42 75 66 66 65 72 53 65 6c 65 63 74 6f 72 2e 50 6c 61 79 65 .......case.BufferSelector.Playe
26e0 72 55 70 64 61 74 65 46 72 6f 6e 74 42 75 66 66 65 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 rUpdateFrontBuffer:.............
2700 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 .........if.(manager.m_StateBuff
2720 65 72 73 2e 6d 5f 50 6c 61 79 65 72 53 74 61 74 65 42 75 66 66 65 72 73 2e 76 61 6c 69 64 29 0d ers.m_PlayerStateBuffers.valid).
2740 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 72 65 74 75 72 6e 20 .........................return.
2760 6d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e 6d 5f 50 6c 61 79 65 72 53 manager.m_StateBuffers.m_PlayerS
2780 74 61 74 65 42 75 66 66 65 72 73 2e 47 65 74 46 72 6f 6e 74 42 75 66 66 65 72 28 64 65 76 69 63 tateBuffers.GetFrontBuffer(devic
27a0 65 49 6e 64 65 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 62 72 eIndex);......................br
27c0 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 42 75 66 66 65 eak;..................case.Buffe
27e0 72 53 65 6c 65 63 74 6f 72 2e 50 6c 61 79 65 72 55 70 64 61 74 65 42 61 63 6b 42 75 66 66 65 72 rSelector.PlayerUpdateBackBuffer
2800 3a 0d 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 6d 61 6e 61 67 :......................if.(manag
2820 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e 6d 5f 50 6c 61 79 65 72 53 74 61 74 65 42 er.m_StateBuffers.m_PlayerStateB
2840 75 66 66 65 72 73 2e 76 61 6c 69 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 uffers.valid)...................
2860 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 .......return.manager.m_StateBuf
2880 66 65 72 73 2e 6d 5f 50 6c 61 79 65 72 53 74 61 74 65 42 75 66 66 65 72 73 2e 47 65 74 42 61 63 fers.m_PlayerStateBuffers.GetBac
28a0 6b 42 75 66 66 65 72 28 64 65 76 69 63 65 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 kBuffer(deviceIndex);...........
28c0 20 20 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 20 ...........break;...............
28e0 20 20 20 63 61 73 65 20 42 75 66 66 65 72 53 65 6c 65 63 74 6f 72 2e 45 64 69 74 6f 72 55 70 64 ...case.BufferSelector.EditorUpd
2900 61 74 65 46 72 6f 6e 74 42 75 66 66 65 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ateFrontBuffer:.................
2920 20 20 20 20 20 69 66 20 28 6d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e .....if.(manager.m_StateBuffers.
2940 6d 5f 45 64 69 74 6f 72 53 74 61 74 65 42 75 66 66 65 72 73 2e 76 61 6c 69 64 29 0d 0a 20 20 20 m_EditorStateBuffers.valid).....
2960 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 20 6d 61 6e 61 .....................return.mana
2980 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e 6d 5f 45 64 69 74 6f 72 53 74 61 74 65 ger.m_StateBuffers.m_EditorState
29a0 42 75 66 66 65 72 73 2e 47 65 74 46 72 6f 6e 74 42 75 66 66 65 72 28 64 65 76 69 63 65 49 6e 64 Buffers.GetFrontBuffer(deviceInd
29c0 65 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 62 72 65 61 6b 3b ex);......................break;
29e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 42 75 66 66 65 72 53 65 6c ..................case.BufferSel
2a00 65 63 74 6f 72 2e 45 64 69 74 6f 72 55 70 64 61 74 65 42 61 63 6b 42 75 66 66 65 72 3a 0d 0a 20 ector.EditorUpdateBackBuffer:...
2a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 6e 61 67 65 72 2e 6d ...................if.(manager.m
2a40 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e 6d 5f 45 64 69 74 6f 72 53 74 61 74 65 42 75 66 66 65 _StateBuffers.m_EditorStateBuffe
2a60 72 73 2e 76 61 6c 69 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rs.valid).......................
2a80 20 20 20 72 65 74 75 72 6e 20 6d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 ...return.manager.m_StateBuffers
2aa0 2e 6d 5f 45 64 69 74 6f 72 53 74 61 74 65 42 75 66 66 65 72 73 2e 47 65 74 42 61 63 6b 42 75 66 .m_EditorStateBuffers.GetBackBuf
2ac0 66 65 72 28 64 65 76 69 63 65 49 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 fer(deviceIndex);...............
2ae0 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 0d 0a .......break;..............}....
2b00 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 ............return.null;........
2b20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 47 55 49 ..}............public.void.OnGUI
2b40 28 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 69 66 20 28 6d ()..........{..............if.(m
2b60 5f 43 6f 6e 74 72 6f 6c 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 _Control.==.null)...............
2b80 20 20 20 6d 5f 53 68 6f 77 52 61 77 42 79 74 65 73 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 ...m_ShowRawBytes.=.true;.......
2ba0 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 6f 75 72 20 73 74 61 74 65 20 69 73 20 6e 6f 20 6c .........//.If.our.state.is.no.l
2bc0 6f 6e 67 65 72 20 76 61 6c 69 64 2c 20 6a 75 73 74 20 63 6c 6f 73 65 20 74 68 65 20 77 69 6e 64 onger.valid,.just.close.the.wind
2be0 6f 77 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 42 75 66 66 ow...............if.(m_StateBuff
2c00 65 72 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ers.==.null)..............{.....
2c20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 6c 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 .............Close();...........
2c40 20 20 20 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 7d 0d 0a 0d .......return;..............}...
2c60 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 .............GUILayout.BeginHori
2c80 7a 6f 6e 74 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 29 3b 0d 0a 20 zontal(EditorStyles.toolbar);...
2ca0 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 68 6f 77 52 61 77 42 79 74 65 73 20 3d 20 47 55 49 4c ...........m_ShowRawBytes.=.GUIL
2cc0 61 79 6f 75 74 2e 54 6f 67 67 6c 65 28 6d 5f 53 68 6f 77 52 61 77 42 79 74 65 73 2c 20 43 6f 6e ayout.Toggle(m_ShowRawBytes,.Con
2ce0 74 65 6e 74 73 2e 73 68 6f 77 52 61 77 4d 65 6d 6f 72 79 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 tents.showRawMemory,.EditorStyle
2d00 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 s.toolbarButton,................
2d20 20 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 64 74 68 28 31 35 30 29 29 3b 0d 0a 0d 0a 20 20 20 20 ..GUILayout.Width(150));........
2d40 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6d 70 61 72 65 53 74 61 74 65 42 75 66 66 65 72 ........if.(m_CompareStateBuffer
2d60 73 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 20 20 20 20 20 s)..............{...............
2d80 20 20 20 76 61 72 20 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 20 3d 20 47 55 49 4c 61 ...var.showDifferentOnly.=.GUILa
2da0 79 6f 75 74 2e 54 6f 67 67 6c 65 28 6d 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 2c yout.Toggle(m_ShowDifferentOnly,
2dc0 20 43 6f 6e 74 65 6e 74 73 2e 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 2c 0d 0a 20 20 .Contents.showDifferentOnly,....
2de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 ..................EditorStyles.t
2e00 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 2c 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 64 74 68 28 31 35 oolbarButton,.GUILayout.Width(15
2e20 30 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 68 6f 77 44 69 0));..................if.(showDi
2e40 66 66 65 72 65 6e 74 4f 6e 6c 79 20 21 3d 20 6d 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e fferentOnly.!=.m_ShowDifferentOn
2e60 6c 79 20 26 26 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 ly.&&.m_ControlTree.!=.null)....
2e80 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 ..............{.................
2ea0 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 73 68 6f 77 44 69 66 66 65 72 65 6e 74 .....m_ControlTree.showDifferent
2ec0 4f 6e 6c 79 20 3d 20 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 3b 0d 0a 20 20 20 20 20 Only.=.showDifferentOnly;.......
2ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 52 65 6c ...............m_ControlTree.Rel
2f00 6f 61 64 28 29 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 oad();..................}.......
2f20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 .............m_ShowDifferentOnly
2f40 20 3d 20 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 .=.showDifferentOnly;...........
2f60 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 77 65 20 68 61 76 ...}................//.If.we.hav
2f80 65 20 6d 75 6c 74 69 70 6c 65 20 73 74 61 74 65 20 62 75 66 66 65 72 73 20 74 6f 20 63 68 6f 6f e.multiple.state.buffers.to.choo
2fa0 73 65 20 66 72 6f 6d 20 61 6e 64 20 77 65 27 72 65 20 6e 6f 74 20 63 6f 6d 70 61 72 69 6e 67 20 se.from.and.we're.not.comparing.
2fc0 74 68 65 6d 20 74 6f 20 65 61 63 68 20 6f 74 68 65 72 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 them.to.each.other,.............
2fe0 20 2f 2f 20 61 64 64 20 64 72 6f 70 64 6f 77 6e 20 74 68 61 74 20 61 6c 6c 6f 77 73 20 73 65 6c .//.add.dropdown.that.allows.sel
3000 65 63 74 69 6e 67 20 77 68 69 63 68 20 62 75 66 66 65 72 20 74 6f 20 64 69 73 70 6c 61 79 2e 0d ecting.which.buffer.to.display..
3020 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e .............if.(m_StateBuffers.
3040 4c 65 6e 67 74 68 20 3e 20 31 20 26 26 20 21 6d 5f 43 6f 6d 70 61 72 65 53 74 61 74 65 42 75 66 Length.>.1.&&.!m_CompareStateBuf
3060 66 65 72 73 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 20 20 fers)..............{............
3080 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 65 64 42 75 66 66 65 72 20 3d 20 45 64 69 74 6f ......var.selectedBuffer.=.Edito
30a0 72 47 55 49 4c 61 79 6f 75 74 2e 49 6e 74 50 6f 70 75 70 28 6d 5f 53 65 6c 65 63 74 65 64 53 74 rGUILayout.IntPopup(m_SelectedSt
30c0 61 74 65 42 75 66 66 65 72 2c 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 65 73 2c 0d 0a 20 20 20 ateBuffer,.m_BufferChoices,.....
30e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 65 56 .................m_BufferChoiceV
3100 61 6c 75 65 73 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 50 6f 70 75 70 alues,.EditorStyles.toolbarPopup
3120 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 64 );..................if.(selected
3140 42 75 66 66 65 72 20 21 3d 20 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 72 29 Buffer.!=.m_SelectedStateBuffer)
3160 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 ..................{.............
3180 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 72 20 3d .........m_SelectedStateBuffer.=
31a0 20 73 65 6c 65 63 74 65 64 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .selectedBuffer;................
31c0 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 ......m_ControlTree.=.null;.....
31e0 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 .............}..............}...
3200 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 .............GUILayout.FlexibleS
3220 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 pace();..............GUILayout.E
3240 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ndHorizontal();................i
3260 66 20 28 6d 5f 53 68 6f 77 52 61 77 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 f.(m_ShowRawBytes)..............
3280 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 48 65 78 44 75 6d 70 28 29 {..................DrawHexDump()
32a0 3b 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 20 20 65 6c ;..............}..............el
32c0 73 65 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 se..............{...............
32e0 20 20 20 69 66 20 28 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 ...if.(m_ControlTree.==.null)...
3300 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 ...............{................
3320 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6d 70 61 72 65 53 74 61 74 65 42 75 66 66 65 72 73 29 ......if.(m_CompareStateBuffers)
3340 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 20 20 20 20 ......................{.........
3360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 20 3d .................m_ControlTree.=
3380 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 54 72 65 65 56 69 65 77 2e 43 72 65 61 74 65 28 6d 5f 43 .InputControlTreeView.Create(m_C
33a0 6f 6e 74 72 6f 6c 2c 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2e 4c 65 6e 67 74 68 2c 20 72 ontrol,.m_StateBuffers.Length,.r
33c0 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 53 74 61 74 65 2c 20 72 65 66 20 6d 5f 43 6f 6e ef.m_ControlTreeState,.ref.m_Con
33e0 74 72 6f 6c 54 72 65 65 48 65 61 64 65 72 53 74 61 74 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 trolTreeHeaderState);...........
3400 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 6d 75 6c ...............m_ControlTree.mul
3420 74 69 70 6c 65 53 74 61 74 65 42 75 66 66 65 72 73 20 3d 20 6d 5f 53 74 61 74 65 42 75 66 66 65 tipleStateBuffers.=.m_StateBuffe
3440 72 73 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 6d 5f 43 rs;..........................m_C
3460 6f 6e 74 72 6f 6c 54 72 65 65 2e 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 20 3d 20 6d ontrolTree.showDifferentOnly.=.m
3480 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 _ShowDifferentOnly;.............
34a0 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 20 20 .........}......................
34c0 65 6c 73 65 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 else......................{.....
34e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 .....................m_ControlTr
3500 65 65 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 54 72 65 65 56 69 65 77 2e 43 72 65 61 74 65 ee.=.InputControlTreeView.Create
3520 28 6d 5f 43 6f 6e 74 72 6f 6c 2c 20 31 2c 20 72 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 (m_Control,.1,.ref.m_ControlTree
3540 53 74 61 74 65 2c 20 72 65 66 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 48 65 61 64 65 72 53 74 State,.ref.m_ControlTreeHeaderSt
3560 61 74 65 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 6d ate);..........................m
3580 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 73 74 61 74 65 42 75 66 66 65 72 20 3d 20 6d 5f 53 74 61 _ControlTree.stateBuffer.=.m_Sta
35a0 74 65 42 75 66 66 65 72 73 5b 6d 5f 53 65 6c 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 72 5d teBuffers[m_SelectedStateBuffer]
35c0 3b 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 ;......................}........
35e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 52 65 6c 6f ..............m_ControlTree.Relo
3600 61 64 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 6d 5f 43 6f 6e ad();......................m_Con
3620 74 72 6f 6c 54 72 65 65 2e 45 78 70 61 6e 64 41 6c 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 trolTree.ExpandAll();...........
3640 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 76 61 72 20 .......}....................var.
3660 72 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 rect.=.EditorGUILayout.GetContro
3680 6c 52 65 63 74 28 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 48 65 69 67 68 74 28 74 72 75 lRect(GUILayout.ExpandHeight(tru
36a0 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 e));..................m_ControlT
36c0 72 65 65 2e 4f 6e 47 55 49 28 72 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ree.OnGUI(rect);..............}.
36e0 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 .........}............////TODO:.
3700 73 75 70 70 6f 72 74 20 64 75 6d 70 69 6e 67 20 6d 75 6c 74 69 70 6c 65 20 73 74 61 74 65 20 73 support.dumping.multiple.state.s
3720 69 64 65 2d 62 79 2d 73 69 64 65 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67 0d 0a 20 20 20 20 ide-by-side.when.comparing......
3740 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 48 65 78 44 75 6d 70 28 29 0d 0a ....private.void.DrawHexDump()..
3760 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 48 65 78 44 75 6d 70 ........{..............m_HexDump
3780 53 63 72 6f 6c 6c 50 6f 73 69 74 69 6f 6e 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 ScrollPosition.=.EditorGUILayout
37a0 2e 42 65 67 69 6e 53 63 72 6f 6c 6c 56 69 65 77 28 6d 5f 48 65 78 44 75 6d 70 53 63 72 6f 6c 6c .BeginScrollView(m_HexDumpScroll
37c0 50 6f 73 69 74 69 6f 6e 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 Position);................var.st
37e0 61 74 65 42 75 66 66 65 72 20 3d 20 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 5b 6d 5f 53 65 6c ateBuffer.=.m_StateBuffers[m_Sel
3800 65 63 74 65 64 53 74 61 74 65 42 75 66 66 65 72 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ectedStateBuffer];..............
3820 76 61 72 20 6e 75 6d 42 79 74 65 73 20 3d 20 73 74 61 74 65 42 75 66 66 65 72 2e 4c 65 6e 67 74 var.numBytes.=.stateBuffer.Lengt
3840 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 75 6d 48 65 78 47 72 6f 75 70 73 h;..............var.numHexGroups
3860 20 3d 20 6e 75 6d 42 79 74 65 73 20 2f 20 6b 42 79 74 65 73 50 65 72 48 65 78 47 72 6f 75 70 20 .=.numBytes./.kBytesPerHexGroup.
3880 2b 20 28 6e 75 6d 42 79 74 65 73 20 25 20 6b 42 79 74 65 73 50 65 72 48 65 78 47 72 6f 75 70 20 +.(numBytes.%.kBytesPerHexGroup.
38a0 3e 20 30 20 3f 20 31 20 3a 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e >.0.?.1.:.0);..............var.n
38c0 75 6d 4c 69 6e 65 73 20 3d 20 6e 75 6d 48 65 78 47 72 6f 75 70 73 20 2f 20 6b 48 65 78 47 72 6f umLines.=.numHexGroups./.kHexGro
38e0 75 70 73 50 65 72 4c 69 6e 65 20 2b 20 28 6e 75 6d 48 65 78 47 72 6f 75 70 73 20 25 20 6b 48 65 upsPerLine.+.(numHexGroups.%.kHe
3900 78 47 72 6f 75 70 73 50 65 72 4c 69 6e 65 20 3e 20 30 20 3f 20 31 20 3a 20 30 29 3b 0d 0a 20 20 xGroupsPerLine.>.0.?.1.:.0);....
3920 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 4f 66 66 73 65 74 20 3d 20 30 3b ..........var.currentOffset.=.0;
3940 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 4c 69 6e 65 52 65 63 ..............var.currentLineRec
3960 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 65 t.=.EditorGUILayout.GetControlRe
3980 63 74 28 47 55 49 4c 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 ct(GUILayout.ExpandWidth(true));
39a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 4c 69 6e 65 52 65 63 74 2e 68 65 ..............currentLineRect.he
39c0 69 67 68 74 20 3d 20 6b 48 65 78 44 75 6d 70 4c 69 6e 65 48 65 69 67 68 74 3b 0d 0a 20 20 20 20 ight.=.kHexDumpLineHeight;......
39e0 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 48 65 78 47 72 6f 75 70 20 3d 20 30 3b ........var.currentHexGroup.=.0;
3a00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 42 79 74 65 20 3d 20 ..............var.currentByte.=.
3a20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 77 68 0;................////REVIEW:.wh
3a40 61 74 20 77 6f 75 6c 64 20 62 65 20 74 6f 74 61 6c 6c 79 20 61 77 65 73 6f 6d 65 20 69 73 20 69 at.would.be.totally.awesome.is.i
3a60 66 20 74 68 69 73 20 6e 6f 74 20 6a 75 73 74 20 64 69 73 70 6c 61 79 65 64 20 61 20 68 65 78 20 f.this.not.just.displayed.a.hex.
3a80 64 75 6d 70 20 62 75 74 20 61 6c 73 6f 20 74 68 65 20 63 6f 72 72 65 6c 61 74 69 6f 6e 20 74 6f dump.but.also.the.correlation.to
3aa0 20 63 75 72 72 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 .current..............////......
3ac0 20 20 63 6f 6e 74 72 6f 6c 20 6f 66 66 73 65 74 20 61 73 73 69 67 6e 6d 65 6e 74 73 0d 0a 0d 0a ..control.offset.assignments....
3ae0 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 6c 69 6e 65 20 3d 20 30 3b 20 6c ............for.(var.line.=.0;.l
3b00 69 6e 65 20 3c 20 6e 75 6d 4c 69 6e 65 73 3b 20 2b 2b 6c 69 6e 65 29 0d 0a 20 20 20 20 20 20 20 ine.<.numLines;.++line).........
3b20 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 44 72 61 77 20 .....{..................//.Draw.
3b40 6f 66 66 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 offset...................var.off
3b60 73 65 74 4c 61 62 65 6c 52 65 63 74 20 3d 20 63 75 72 72 65 6e 74 4c 69 6e 65 52 65 63 74 3b 0d setLabelRect.=.currentLineRect;.
3b80 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 66 73 65 74 4c 61 62 65 6c 52 65 63 74 .................offsetLabelRect
3ba0 2e 77 69 64 74 68 20 3d 20 6b 4f 66 66 73 65 74 4c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 .width.=.kOffsetLabelWidth;.....
3bc0 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 6f 66 66 73 65 74 4c 61 62 .............GUI.Label(offsetLab
3be0 65 6c 52 65 63 74 2c 20 63 75 72 72 65 6e 74 4f 66 66 73 65 74 2e 54 6f 53 74 72 69 6e 67 28 29 elRect,.currentOffset.ToString()
3c00 2c 20 53 74 79 6c 65 73 2e 6f 66 66 73 65 74 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 ,.Styles.offsetLabel);..........
3c20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 4f 66 66 73 65 74 20 2b 3d 20 6b 42 79 74 65 73 50 ........currentOffset.+=.kBytesP
3c40 65 72 48 65 78 47 72 6f 75 70 20 2a 20 6b 48 65 78 47 72 6f 75 70 73 50 65 72 4c 69 6e 65 3b 0d erHexGroup.*.kHexGroupsPerLine;.
3c60 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 68 65 78 20 67 ...................//.Draw.hex.g
3c80 72 6f 75 70 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 65 78 47 roups...................var.hexG
3ca0 72 6f 75 70 52 65 63 74 20 3d 20 6f 66 66 73 65 74 4c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 roupRect.=.offsetLabelRect;.....
3cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 68 65 78 47 72 6f 75 70 52 65 63 74 2e 78 20 2b 3d 20 6b .............hexGroupRect.x.+=.k
3ce0 4f 66 66 73 65 74 4c 61 62 65 6c 57 69 64 74 68 20 2b 20 31 30 3b 0d 0a 20 20 20 20 20 20 20 20 OffsetLabelWidth.+.10;..........
3d00 20 20 20 20 20 20 20 20 68 65 78 47 72 6f 75 70 52 65 63 74 2e 77 69 64 74 68 20 3d 20 6b 48 65 ........hexGroupRect.width.=.kHe
3d20 78 47 72 6f 75 70 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f xGroupWidth;..................fo
3d40 72 20 28 76 61 72 20 67 72 6f 75 70 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 r.(var.group.=.0;...............
3d60 20 20 20 20 20 20 20 20 67 72 6f 75 70 20 3c 20 6b 48 65 78 47 72 6f 75 70 73 50 65 72 4c 69 6e ........group.<.kHexGroupsPerLin
3d80 65 20 26 26 20 63 75 72 72 65 6e 74 48 65 78 47 72 6f 75 70 20 3c 20 6e 75 6d 48 65 78 47 72 6f e.&&.currentHexGroup.<.numHexGro
3da0 75 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 67 72 6f ups;.......................++gro
3dc0 75 70 2c 20 2b 2b 63 75 72 72 65 6e 74 48 65 78 47 72 6f 75 70 29 0d 0a 20 20 20 20 20 20 20 20 up,.++currentHexGroup)..........
3de0 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 2f ........{....................../
3e00 2f 20 43 6f 6e 76 65 72 74 20 62 79 74 65 73 20 74 6f 20 68 65 78 2e 0d 0a 20 20 20 20 20 20 20 /.Convert.bytes.to.hex..........
3e20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 65 78 20 3d 20 73 74 72 69 6e 67 2e 45 6d .............var.hex.=.string.Em
3e40 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 66 6f 72 20 28 76 pty;......................for.(v
3e60 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6b 42 79 74 65 73 50 65 72 48 65 78 47 72 6f 75 70 3b ar.i.=.0;.i.<.kBytesPerHexGroup;
3e80 20 2b 2b 69 29 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 .++i)......................{....
3ea0 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 63 75 72 72 65 6e ......................if.(curren
3ec0 74 42 79 74 65 20 3e 3d 20 6e 75 6d 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 tByte.>=.numBytes)..............
3ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 65 78 20 3d 20 22 20 20 22 20 2b 20 68 65 78 ................hex.=."..".+.hex
3f00 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 65 6c 73 65 0d ;..........................else.
3f20 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 68 65 78 .............................hex
3f40 20 3d 20 73 74 61 74 65 42 75 66 66 65 72 5b 63 75 72 72 65 6e 74 42 79 74 65 5d 2e 54 6f 53 74 .=.stateBuffer[currentByte].ToSt
3f60 72 69 6e 67 28 22 58 32 22 29 20 2b 20 68 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ring("X2").+.hex;...............
3f80 20 20 20 20 20 20 20 20 20 20 20 2b 2b 63 75 72 72 65 6e 74 42 79 74 65 3b 0d 0a 20 20 20 20 20 ...........++currentByte;.......
3fa0 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 ...............}................
3fc0 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 64 72 61 77 20 61 6c 74 65 72 6e 61 74 69 ........////TODO:.draw.alternati
3fe0 6e 67 20 62 61 63 6b 67 72 6f 75 6e 64 73 20 66 6f 72 20 74 68 65 20 68 65 78 20 67 72 6f 75 70 ng.backgrounds.for.the.hex.group
4000 73 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 s........................GUI.Lab
4020 65 6c 28 68 65 78 47 72 6f 75 70 52 65 63 74 2c 20 68 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 el(hexGroupRect,.hex);..........
4040 20 20 20 20 20 20 20 20 20 20 20 20 68 65 78 47 72 6f 75 70 52 65 63 74 2e 78 20 2b 3d 20 6b 48 ............hexGroupRect.x.+=.kH
4060 65 78 47 72 6f 75 70 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d exGroupWidth;..................}
4080 0d 0a 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 4c 69 6e 65 52 ....................currentLineR
40a0 65 63 74 2e 79 20 2b 3d 20 6b 48 65 78 44 75 6d 70 4c 69 6e 65 48 65 69 67 68 74 3b 0d 0a 20 20 ect.y.+=.kHexDumpLineHeight;....
40c0 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 45 64 69 74 6f ..........}................Edito
40e0 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 53 63 72 6f 6c 6c 56 69 65 77 28 29 3b 0d 0a 20 20 20 rGUILayout.EndScrollView();.....
4100 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 63 6f 70 79 20 74 68 65 .....}............//.We.copy.the
4120 20 73 74 61 74 65 20 77 65 27 72 65 20 69 6e 73 70 65 63 74 69 6e 67 20 74 6f 20 61 20 62 75 66 .state.we're.inspecting.to.a.buf
4140 66 65 72 20 77 65 20 6f 77 6e 20 73 6f 20 74 68 61 74 20 77 65 27 72 65 20 73 61 66 65 0d 0a 20 fer.we.own.so.that.we're.safe...
4160 20 20 20 20 20 20 20 2f 2f 20 61 67 61 69 6e 73 74 20 61 6e 79 20 6d 75 74 61 74 69 6f 6e 73 2e .......//.against.any.mutations.
4180 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 57 68 65 6e 20 69 6e 73 70 65 63 74 69 6e 67 20 63 6f 6e ..........//.When.inspecting.con
41a0 74 72 6f 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 65 76 65 6e 74 73 29 2c 20 77 65 trols.(as.opposed.to.events),.we
41c0 20 63 6f 70 79 20 61 6c 6c 20 74 68 65 69 72 20 76 61 72 69 6f 75 73 0d 0a 20 20 20 20 20 20 20 .copy.all.their.various.........
41e0 20 2f 2f 20 73 74 61 74 65 20 62 75 66 66 65 72 73 20 61 6e 64 20 61 6c 6c 6f 77 20 73 77 69 74 .//.state.buffers.and.allow.swit
4200 63 68 69 6e 67 20 62 65 74 77 65 65 6e 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 ching.between.them...........[Se
4220 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 79 74 65 5b 5d 5b 5d 20 6d rializeField].private.byte[][].m
4240 5f 53 74 61 74 65 42 75 66 66 65 72 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 _StateBuffers;..........[Seriali
4260 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 53 zeField].private.int.m_SelectedS
4280 74 61 74 65 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 tateBuffer;..........[SerializeF
42a0 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 43 6f 6d 70 61 72 65 53 74 61 74 ield].private.bool.m_CompareStat
42c0 65 42 75 66 66 65 72 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 eBuffers;..........[SerializeFie
42e0 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 53 68 6f 77 44 69 66 66 65 72 65 6e 74 ld].private.bool.m_ShowDifferent
4300 4f 6e 6c 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 Only;..........[SerializeField].
4320 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 53 68 6f 77 52 61 77 42 79 74 65 73 3b 0d 0a 20 20 private.bool.m_ShowRawBytes;....
4340 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 54 ......[SerializeField].private.T
4360 72 65 65 56 69 65 77 53 74 61 74 65 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 53 74 61 74 65 3b reeViewState.m_ControlTreeState;
4380 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 ..........[SerializeField].priva
43a0 74 65 20 4d 75 6c 74 69 43 6f 6c 75 6d 6e 48 65 61 64 65 72 53 74 61 74 65 20 6d 5f 43 6f 6e 74 te.MultiColumnHeaderState.m_Cont
43c0 72 6f 6c 54 72 65 65 48 65 61 64 65 72 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 rolTreeHeaderState;..........[Se
43e0 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 56 65 63 74 6f 72 32 20 6d 5f rializeField].private.Vector2.m_
4400 48 65 78 44 75 6d 70 53 63 72 6f 6c 6c 50 6f 73 69 74 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 HexDumpScrollPosition;..........
4420 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 43 ..[NonSerialized].private.InputC
4440 6f 6e 74 72 6f 6c 54 72 65 65 56 69 65 77 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 3b 0d 0a 20 ontrolTreeView.m_ControlTree;...
4460 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 47 .......[NonSerialized].private.G
4480 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 65 73 3b 0d 0a 20 20 UIContent[].m_BufferChoices;....
44a0 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 69 6e ......[NonSerialized].private.in
44c0 74 5b 5d 20 6d 5f 42 75 66 66 65 72 43 68 6f 69 63 65 56 61 6c 75 65 73 3b 0d 0a 0d 0a 20 20 20 t[].m_BufferChoiceValues;.......
44e0 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 77 65 20 6c 6f 73 65 20 74 68 69 73 20 6f 6e 20 .....////FIXME:.we.lose.this.on.
4500 64 6f 6d 61 69 6e 20 72 65 6c 6f 61 64 3b 20 68 6f 77 20 73 68 6f 75 6c 64 20 77 65 20 72 65 63 domain.reload;.how.should.we.rec
4520 6f 76 65 72 3f 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 over?..........[NonSerialized].p
4540 72 69 76 61 74 65 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 20 6d 5f 43 6f 6e 74 72 6f 6c 3b 0d 0a rivate.InputControl.m_Control;..
4560 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 65 6e 75 6d 20 42 75 66 66 65 72 53 65 6c ..........private.enum.BufferSel
4580 65 63 74 6f 72 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 50 6c ector..........{..............Pl
45a0 61 79 65 72 55 70 64 61 74 65 46 72 6f 6e 74 42 75 66 66 65 72 2c 0d 0a 20 20 20 20 20 20 20 20 ayerUpdateFrontBuffer,..........
45c0 20 20 20 20 50 6c 61 79 65 72 55 70 64 61 74 65 42 61 63 6b 42 75 66 66 65 72 2c 0d 0a 20 20 20 ....PlayerUpdateBackBuffer,.....
45e0 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 55 70 64 61 74 65 46 72 6f 6e 74 42 75 66 66 65 72 .........EditorUpdateFrontBuffer
4600 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 55 70 64 61 74 65 42 61 63 6b 42 ,..............EditorUpdateBackB
4620 75 66 66 65 72 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 4f 55 4e 54 2c 0d 0a 20 20 20 20 uffer,..............COUNT,......
4640 20 20 20 20 20 20 20 20 44 65 66 61 75 6c 74 20 3d 20 50 6c 61 79 65 72 55 70 64 61 74 65 46 72 ........Default.=.PlayerUpdateFr
4660 6f 6e 74 42 75 66 66 65 72 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ontBuffer..........}............
4680 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 53 74 79 6c 65 73 0d 0a 20 20 20 private.static.class.Styles.....
46a0 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
46c0 63 20 47 55 49 53 74 79 6c 65 20 6f 66 66 73 65 74 4c 61 62 65 6c 20 3d 20 6e 65 77 20 47 55 49 c.GUIStyle.offsetLabel.=.new.GUI
46e0 53 74 79 6c 65 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 Style..............{............
4700 20 20 20 20 20 20 61 6c 69 67 6e 6d 65 6e 74 20 3d 20 54 65 78 74 41 6e 63 68 6f 72 2e 55 70 70 ......alignment.=.TextAnchor.Upp
4720 65 72 52 69 67 68 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 53 74 erRight,..................fontSt
4740 79 6c 65 20 3d 20 46 6f 6e 74 53 74 79 6c 65 2e 42 6f 6c 64 41 6e 64 49 74 61 6c 69 63 2c 0d 0a yle.=.FontStyle.BoldAndItalic,..
4760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 20 3d 20 45 64 69 74 6f 72 53 74 79 ................font.=.EditorSty
4780 6c 65 73 2e 62 6f 6c 64 46 6f 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 les.boldFont,..................f
47a0 6f 6e 74 53 69 7a 65 20 3d 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 62 6f 6c 64 46 6f 6e 74 2e ontSize.=.EditorStyles.boldFont.
47c0 66 6f 6e 74 53 69 7a 65 20 2d 20 32 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e fontSize.-.2,..................n
47e0 6f 72 6d 61 6c 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 53 74 61 74 65 20 7b 20 74 65 78 74 ormal.=.new.GUIStyleState.{.text
4800 43 6f 6c 6f 72 20 3d 20 43 6f 6c 6f 72 2e 62 6c 61 63 6b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 Color.=.Color.black.}...........
4820 20 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 ...};..........}............priv
4840 61 74 65 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 43 6f 6e 74 65 6e 74 73 0d 0a 20 20 20 20 20 ate.static.class.Contents.......
4860 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 63 20 ...{..............public.static.
4880 47 55 49 43 6f 6e 74 65 6e 74 20 73 68 6f 77 52 61 77 4d 65 6d 6f 72 79 20 3d 20 6e 65 77 20 47 GUIContent.showRawMemory.=.new.G
48a0 55 49 43 6f 6e 74 65 6e 74 28 22 44 69 73 70 6c 61 79 20 52 61 77 20 4d 65 6d 6f 72 79 22 29 3b UIContent("Display.Raw.Memory");
48c0 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 47 55 49 43 ..............public.static.GUIC
48e0 6f 6e 74 65 6e 74 20 73 68 6f 77 44 69 66 66 65 72 65 6e 74 4f 6e 6c 79 20 3d 20 6e 65 77 20 47 ontent.showDifferentOnly.=.new.G
4900 55 49 43 6f 6e 74 65 6e 74 28 22 53 68 6f 77 20 4f 6e 6c 79 20 44 69 66 66 65 72 65 6e 63 65 73 UIContent("Show.Only.Differences
4920 22 29 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 47 ");..............public.static.G
4940 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 62 75 66 66 65 72 43 68 6f 69 63 65 73 20 3d 0d 0a 20 20 20 UIContent[].bufferChoices.=.....
4960 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 6e 65 77 20 .........{..................new.
4980 47 55 49 43 6f 6e 74 65 6e 74 28 22 50 6c 61 79 65 72 20 28 43 75 72 72 65 6e 74 29 22 29 2c 0d GUIContent("Player.(Current)"),.
49a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 .................new.GUIContent(
49c0 22 50 6c 61 79 65 72 20 28 50 72 65 76 69 6f 75 73 29 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 "Player.(Previous)"),...........
49e0 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 45 64 69 74 6f 72 20 28 43 .......new.GUIContent("Editor.(C
4a00 75 72 72 65 6e 74 29 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 urrent)"),..................new.
4a20 47 55 49 43 6f 6e 74 65 6e 74 28 22 45 64 69 74 6f 72 20 28 50 72 65 76 69 6f 75 73 29 22 29 0d GUIContent("Editor.(Previous)").
4a40 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 20 20 20 20 .............};..........}......
4a60 7d 0d 0a 7d 0d 0a 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 00 00 }..}..#endif.//.UNITY_EDITOR....
4a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 53 74 61 ........................InputSta
4aa0 74 65 57 69 6e 64 6f 77 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 teWindow....UnityEngine.InputSys
4ac0 74 65 6d 2e 45 64 69 74 6f 72 00 00 tem.Editor..