summaryrefslogtreecommitdiff
path: root/Library/Artifacts/c6/c6f170445e5e61b8b4828f3494f305b7
blob: 3a739e3b38e94ceb7d45661d9c0b3faa739587bd (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 60 3c 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 dc 4f 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 .O..............................
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 19 00 00 00 49 6e 70 75 74 44 65 76 69 63 65 44 65 62 75 67 67 65 72 57 ............InputDeviceDebuggerW
10a0 69 6e 64 6f 77 00 00 00 35 4f 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 indow...5O..#if.UNITY_EDITOR..us
10c0 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 ing.System;..using.System.Collec
10e0 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e tions.Generic;..using.System.Lin
1100 71 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e q;..using.UnityEditor;..using.Un
1120 69 74 79 45 64 69 74 6f 72 2e 49 4d 47 55 49 2e 43 6f 6e 74 72 6f 6c 73 3b 0d 0a 75 73 69 6e 67 ityEditor.IMGUI.Controls;..using
1140 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 4c 6f 77 4c 65 76 65 .UnityEngine.InputSystem.LowLeve
1160 6c 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 65 l;..using.UnityEngine.InputSyste
1180 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f 77 20 m.Utilities;....////TODO:.allow.
11a0 73 65 6c 65 63 74 69 6e 67 20 65 76 65 6e 74 73 20 61 6e 64 20 73 61 76 69 6e 67 20 6f 75 74 20 selecting.events.and.saving.out.
11c0 6f 6e 6c 79 20 74 68 65 20 73 65 6c 65 63 74 65 64 20 6f 6e 65 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f only.the.selected.ones....////TO
11e0 44 4f 3a 20 61 64 64 20 74 68 65 20 61 62 69 6c 69 74 79 20 66 6f 72 20 74 68 65 20 64 65 62 75 DO:.add.the.ability.for.the.debu
1200 67 67 65 72 20 74 6f 20 6a 75 73 74 20 67 65 6e 65 72 61 74 65 20 69 6e 70 75 74 20 6f 6e 20 74 gger.to.just.generate.input.on.t
1220 68 65 20 64 65 76 69 63 65 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 63 6f 6e 74 72 he.device.according.to.the.contr
1240 6f 6c 73 20 69 74 20 66 69 6e 64 73 3b 20 67 6f 6f 64 20 66 6f 72 20 74 65 73 74 69 6e 67 0d 0a ols.it.finds;.good.for.testing..
1260 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 63 6f 6d 6d 61 6e 64 73 20 74 6f 20 65 76 65 6e ..////TODO:.add.commands.to.even
1280 74 20 74 72 61 63 65 20 28 61 6c 73 6f 20 63 6c 69 63 6b 61 62 6c 65 29 0d 0a 0d 0a 2f 2f 2f 2f t.trace.(also.clickable)....////
12a0 54 4f 44 4f 3a 20 61 64 64 20 64 69 66 66 2d 74 6f 2d 70 72 65 76 69 6f 75 73 2d 65 76 65 6e 74 TODO:.add.diff-to-previous-event
12c0 20 61 62 69 6c 69 74 79 20 74 6f 20 65 76 65 6e 74 20 77 69 6e 64 6f 77 0d 0a 0d 0a 2f 2f 2f 2f .ability.to.event.window....////
12e0 46 49 58 4d 45 3a 20 74 68 65 20 72 65 70 61 69 6e 74 20 74 72 69 67 67 65 72 65 64 20 66 72 6f FIXME:.the.repaint.triggered.fro
1300 6d 20 49 49 6e 70 75 74 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 52 65 63 65 69 76 65 72 20 73 6f m.IInputStateCallbackReceiver.so
1320 6d 65 68 6f 77 20 63 6f 6d 65 73 20 77 69 74 68 20 61 20 73 69 67 6e 69 66 69 63 61 6e 74 20 64 mehow.comes.with.a.significant.d
1340 65 6c 61 79 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 41 64 64 20 22 52 65 6d 6f 74 65 3a 22 20 elay....////TODO:.Add."Remote:".
1360 66 69 65 6c 64 20 69 6e 20 6c 69 73 74 20 74 68 61 74 20 61 6c 73 6f 20 68 61 73 20 61 20 62 75 field.in.list.that.also.has.a.bu
1380 74 74 6f 6e 20 66 6f 72 20 6c 6f 63 61 6c 20 64 65 76 69 63 65 73 20 74 68 61 74 20 61 6c 6c 6f tton.for.local.devices.that.allo
13a0 77 73 20 74 6f 20 6d 69 72 72 6f 72 20 74 68 65 6d 20 61 6e 64 20 74 68 65 69 72 20 69 6e 70 75 ws.to.mirror.them.and.their.inpu
13c0 74 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 69 6e 74 6f 20 63 6f 6e 6e 65 63 74 65 64 20 70 6c 61 79 t..////......into.connected.play
13e0 65 72 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 74 68 69 73 20 77 69 6e 64 6f 77 20 73 68 6f ers....////TODO:.this.window.sho
1400 75 6c 64 20 68 65 6c 70 20 64 69 61 67 6e 6f 73 65 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 74 68 uld.help.diagnose.problems.in.th
1420 65 20 65 76 65 6e 74 20 73 74 72 65 61 6d 20 28 65 2e 67 2e 20 69 67 6e 6f 72 65 64 20 73 74 61 e.event.stream.(e.g..ignored.sta
1440 74 65 20 65 76 65 6e 74 73 20 61 6e 64 20 77 68 79 20 74 68 65 79 20 77 65 72 65 20 69 67 6e 6f te.events.and.why.they.were.igno
1460 72 65 64 29 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 74 6f 67 67 6c 65 20 74 6f 20 red)....////TODO:.add.toggle.to.
1480 74 68 61 74 20 73 77 69 74 63 68 65 73 20 74 6f 20 64 69 73 70 6c 61 79 69 6e 67 20 72 61 77 20 that.switches.to.displaying.raw.
14a0 63 6f 6e 74 72 6f 6c 20 76 61 6c 75 65 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 6c 6c 6f control.values....////TODO:.allo
14c0 77 20 61 64 64 69 6e 67 20 76 69 73 75 61 6c 69 7a 65 72 73 20 28 6f 72 20 61 75 74 6f 6d 61 74 w.adding.visualizers.(or.automat
14e0 69 63 61 6c 6c 79 20 61 64 64 20 74 68 65 6d 20 69 6e 20 63 61 73 65 73 29 20 74 6f 20 63 6f 6e ically.add.them.in.cases).to.con
1500 74 72 6f 6c 20 74 68 61 74 20 73 68 6f 77 20 76 61 6c 75 65 20 6f 76 65 72 20 74 69 6d 65 20 28 trol.that.show.value.over.time.(
1520 75 73 69 6e 67 20 49 6e 70 75 74 53 74 61 74 65 48 69 73 74 6f 72 79 29 0d 0a 0d 0a 2f 2f 2f 2f using.InputStateHistory)....////
1540 54 4f 44 4f 3a 20 73 68 6f 77 20 64 65 66 61 75 6c 74 20 73 74 61 74 65 73 20 6f 66 20 63 6f 6e TODO:.show.default.states.of.con
1560 74 72 6f 6c 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 70 72 6f 76 69 64 65 20 61 62 69 6c 69 trols....////TODO:.provide.abili
1580 74 79 20 74 6f 20 73 61 76 65 20 61 6e 64 20 6c 6f 61 64 20 65 76 65 6e 74 20 74 72 61 63 65 73 ty.to.save.and.load.event.traces
15a0 3b 20 61 6c 73 6f 20 61 62 69 6c 69 74 79 20 74 6f 20 72 65 63 6f 72 64 20 64 69 72 65 63 74 6c ;.also.ability.to.record.directl
15c0 79 20 74 6f 20 61 20 66 69 6c 65 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 70 72 6f 76 69 64 65 20 61 y.to.a.file..////TODO:.provide.a
15e0 62 69 6c 69 74 79 20 74 6f 20 73 63 72 75 62 20 62 61 63 6b 20 61 6e 64 20 66 6f 72 74 68 20 74 bility.to.scrub.back.and.forth.t
1600 68 72 6f 75 67 68 20 68 69 73 74 6f 72 79 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 hrough.history....namespace.Unit
1620 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 0a 7b 0d 0a 20 yEngine.InputSystem.Editor..{...
1640 20 20 20 2f 2f 20 53 68 6f 77 73 20 73 74 61 74 75 73 20 61 6e 64 20 61 63 74 69 76 69 74 79 20 ...//.Shows.status.and.activity.
1660 6f 66 20 61 20 73 69 6e 67 6c 65 20 69 6e 70 75 74 20 64 65 76 69 63 65 20 69 6e 20 61 20 73 65 of.a.single.input.device.in.a.se
1680 70 61 72 61 74 65 20 77 69 6e 64 6f 77 2e 0d 0a 20 20 20 20 2f 2f 20 43 61 6e 20 61 6c 73 6f 20 parate.window.......//.Can.also.
16a0 62 65 20 75 73 65 64 20 74 6f 20 61 6c 74 65 72 20 74 68 65 20 73 74 61 74 65 20 6f 66 20 61 20 be.used.to.alter.the.state.of.a.
16c0 64 65 76 69 63 65 20 62 79 20 6d 61 6b 69 6e 67 20 75 70 20 73 74 61 74 65 20 65 76 65 6e 74 73 device.by.making.up.state.events
16e0 2e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 49 6e 70 .......internal.sealed.class.Inp
1700 75 74 44 65 76 69 63 65 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 20 3a 20 45 64 69 74 6f 72 57 utDeviceDebuggerWindow.:.EditorW
1720 69 6e 64 6f 77 2c 20 49 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 43 61 6c 6c 62 61 63 6b 52 65 63 indow,.ISerializationCallbackRec
1740 65 69 76 65 72 2c 20 49 44 69 73 70 6f 73 61 62 6c 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 eiver,.IDisposable......{.......
1760 20 20 20 2f 2f 20 41 54 4d 20 74 68 65 20 64 65 62 75 67 67 65 72 20 77 69 6e 64 6f 77 20 69 73 ...//.ATM.the.debugger.window.is
1780 20 73 75 70 65 72 20 73 6c 6f 77 20 61 6e 64 20 72 65 70 61 69 6e 74 73 20 61 72 65 20 76 65 72 .super.slow.and.repaints.are.ver
17a0 79 20 65 78 70 65 6e 73 69 76 65 2e 20 53 6f 20 6b 65 65 70 20 74 68 65 20 74 6f 74 61 6c 0d 0a y.expensive..So.keep.the.total..
17c0 20 20 20 20 20 20 20 20 2f 2f 20 6e 75 6d 62 65 72 20 6f 66 20 65 76 65 6e 74 73 20 77 65 20 63 ........//.number.of.events.we.c
17e0 61 6e 20 66 69 74 20 61 74 20 61 20 72 65 6c 61 74 69 76 65 6c 79 20 6c 6f 77 20 73 69 7a 65 20 an.fit.at.a.relatively.low.size.
1800 75 6e 74 69 6c 20 77 65 20 68 61 76 65 20 66 69 78 65 64 20 74 68 61 74 20 70 72 6f 62 6c 65 6d until.we.have.fixed.that.problem
1820 2e 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 6b 44 65 ...........private.const.int.kDe
1840 66 61 75 6c 74 45 76 65 6e 74 54 72 61 63 65 53 69 7a 65 49 6e 4b 42 20 3d 20 35 31 32 3b 0d 0a faultEventTraceSizeInKB.=.512;..
1860 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 4d 61 78 45 76 ........private.const.int.kMaxEv
1880 65 6e 74 73 50 65 72 54 72 61 63 65 20 3d 20 31 30 32 34 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 entsPerTrace.=.1024;............
18a0 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 49 6e 6c 69 6e 65 64 41 72 72 61 79 3c 41 63 74 internal.static.InlinedArray<Act
18c0 69 6f 6e 3c 49 6e 70 75 74 44 65 76 69 63 65 3e 3e 20 73 5f 4f 6e 54 6f 6f 6c 62 61 72 47 55 49 ion<InputDevice>>.s_OnToolbarGUI
18e0 41 63 74 69 6f 6e 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 Actions;............public.stati
1900 63 20 65 76 65 6e 74 20 41 63 74 69 6f 6e 3c 49 6e 70 75 74 44 65 76 69 63 65 3e 20 6f 6e 54 6f c.event.Action<InputDevice>.onTo
1920 6f 6c 62 61 72 47 55 49 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 olbarGUI..........{.............
1940 20 61 64 64 20 3d 3e 20 73 5f 4f 6e 54 6f 6f 6c 62 61 72 47 55 49 41 63 74 69 6f 6e 73 2e 41 70 .add.=>.s_OnToolbarGUIActions.Ap
1960 70 65 6e 64 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 6d 6f 76 65 pend(value);..............remove
1980 20 3d 3e 20 73 5f 4f 6e 54 6f 6f 6c 62 61 72 47 55 49 41 63 74 69 6f 6e 73 2e 52 65 6d 6f 76 65 .=>.s_OnToolbarGUIActions.Remove
19a0 28 76 61 6c 75 65 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 (value);..........}............p
19c0 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 43 72 65 61 74 65 4f 72 53 68 6f 77 45 78 ublic.static.void.CreateOrShowEx
19e0 69 73 74 69 6e 67 28 49 6e 70 75 74 44 65 76 69 63 65 20 64 65 76 69 63 65 29 0d 0a 20 20 20 20 isting(InputDevice.device)......
1a00 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 65 76 69 63 65 20 3d 3d ....{..............if.(device.==
1a20 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 .null)..................throw.ne
1a40 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 64 w.ArgumentNullException(nameof(d
1a60 65 76 69 63 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 69 evice));................//.See.i
1a80 66 20 77 65 20 68 61 76 65 20 61 6e 20 65 78 69 73 74 69 6e 67 20 77 69 6e 64 6f 77 20 66 6f 72 f.we.have.an.existing.window.for
1aa0 20 74 68 65 20 64 65 76 69 63 65 20 61 6e 64 20 69 66 20 73 6f 20 70 6f 70 20 69 74 0d 0a 20 20 .the.device.and.if.so.pop.it....
1ac0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 6e 20 66 72 6f 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 ..........//.in.front...........
1ae0 20 20 20 20 69 66 20 28 73 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 20 21 3d ....if.(s_OpenDebuggerWindows.!=
1b00 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 20 20 20 20 20 20 .null)..............{...........
1b20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 73 5f 4f 70 65 .......for.(var.i.=.0;.i.<.s_Ope
1b40 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 2e 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 nDebuggerWindows.Count;.++i)....
1b60 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 ..............{.................
1b80 20 20 20 20 20 76 61 72 20 65 78 69 73 74 69 6e 67 57 69 6e 64 6f 77 20 3d 20 73 5f 4f 70 65 6e .....var.existingWindow.=.s_Open
1ba0 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 DebuggerWindows[i];.............
1bc0 20 20 20 20 20 20 20 20 20 69 66 20 28 65 78 69 73 74 69 6e 67 57 69 6e 64 6f 77 2e 6d 5f 44 65 .........if.(existingWindow.m_De
1be0 76 69 63 65 49 64 20 3d 3d 20 64 65 76 69 63 65 2e 64 65 76 69 63 65 49 64 29 0d 0a 20 20 20 20 viceId.==.device.deviceId)......
1c00 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 ................{...............
1c20 20 20 20 20 20 20 20 20 20 20 20 65 78 69 73 74 69 6e 67 57 69 6e 64 6f 77 2e 53 68 6f 77 28 29 ...........existingWindow.Show()
1c40 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 78 69 73 74 ;..........................exist
1c60 69 6e 67 57 69 6e 64 6f 77 2e 46 6f 63 75 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ingWindow.Focus();..............
1c80 20 20 20 20 20 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 ............return;.............
1ca0 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 7d 0d 0a 20 .........}..................}...
1cc0 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 4e ...........}................//.N
1ce0 6f 2c 20 73 6f 20 63 72 65 61 74 65 20 61 20 6e 65 77 20 6f 6e 65 2e 0d 0a 20 20 20 20 20 20 20 o,.so.create.a.new.one..........
1d00 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 .....var.window.=.CreateInstance
1d20 3c 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 3e 28 29 3b 0d 0a <InputDeviceDebuggerWindow>();..
1d40 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 ............window.InitializeWit
1d60 68 28 64 65 76 69 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 6d h(device);..............window.m
1d80 69 6e 53 69 7a 65 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 32 37 30 2c 20 33 30 30 29 3b 0d inSize.=.new.Vector2(270,.300);.
1da0 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 53 68 6f 77 28 29 3b 0d 0a 20 20 20 .............window.Show();.....
1dc0 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 74 69 74 6c 65 43 6f 6e 74 65 6e 74 20 3d 20 6e .........window.titleContent.=.n
1de0 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 64 65 76 69 63 65 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 ew.GUIContent(device.name);.....
1e00 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 .....}............internal.void.
1e20 4f 6e 44 65 73 74 72 6f 79 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 OnDestroy()..........{..........
1e40 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 ....if.(m_Device.!=.null).......
1e60 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 52 65 6d 6f 76 65 .......{..................Remove
1e80 46 72 6f 6d 4c 69 73 74 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 FromList();....................I
1ea0 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 44 65 76 69 63 65 43 68 61 6e 67 65 20 2d 3d 20 4f 6e 44 nputSystem.onDeviceChange.-=.OnD
1ec0 65 76 69 63 65 43 68 61 6e 67 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e eviceChange;..................In
1ee0 70 75 74 53 74 61 74 65 2e 6f 6e 43 68 61 6e 67 65 20 2d 3d 20 4f 6e 44 65 76 69 63 65 53 74 61 putState.onChange.-=.OnDeviceSta
1f00 74 65 43 68 61 6e 67 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 teChange;..............}........
1f20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 3f 2e 44 69 73 70 6f 73 65 28 29 3b ........m_EventTrace?.Dispose();
1f40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 20 3d 20 6e 75 6c ..............m_EventTrace.=.nul
1f60 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f l;................m_ReplayContro
1f80 6c 6c 65 72 3f 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f ller?.Dispose();..............m_
1fa0 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 ReplayController.=.null;........
1fc0 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 44 69 73 70 6f ..}............public.void.Dispo
1fe0 73 65 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 6d 5f 45 se()..........{..............m_E
2000 76 65 6e 74 54 72 61 63 65 3f 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ventTrace?.Dispose();...........
2020 20 20 20 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 3f 2e 44 69 73 70 6f 73 65 28 29 ...m_ReplayController?.Dispose()
2040 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c ;..........}............internal
2060 20 76 6f 69 64 20 4f 6e 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 .void.OnGUI()..........{........
2080 20 20 20 20 20 20 2f 2f 20 46 69 6e 64 20 64 65 76 69 63 65 20 61 67 61 69 6e 20 69 66 20 77 65 ......//.Find.device.again.if.we
20a0 27 76 65 20 67 6f 6e 65 20 74 68 72 6f 75 67 68 20 61 20 64 6f 6d 61 69 6e 20 72 65 6c 6f 61 64 've.gone.through.a.domain.reload
20c0 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 20 3d 3d 20 6e ...............if.(m_Device.==.n
20e0 75 6c 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 20 20 20 ull)..............{.............
2100 20 20 20 20 20 6d 5f 44 65 76 69 63 65 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 47 65 74 44 .....m_Device.=.InputSystem.GetD
2120 65 76 69 63 65 42 79 49 64 28 6d 5f 44 65 76 69 63 65 49 64 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 eviceById(m_DeviceId);..........
2140 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 20 3d 3d 20 6e 75 6c 6c 29 0d ..........if.(m_Device.==.null).
2160 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 .................{..............
2180 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 ........EditorGUILayout.HelpBox(
21a0 53 74 79 6c 65 73 2e 6e 6f 74 46 6f 75 6e 64 48 65 6c 70 54 65 78 74 2c 20 4d 65 73 73 61 67 65 Styles.notFoundHelpText,.Message
21c0 54 79 70 65 2e 57 61 72 6e 69 6e 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Type.Warning);..................
21e0 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 7d 0d 0a ....return;..................}..
2200 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 ..................InitializeWith
2220 28 6d 5f 44 65 76 69 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 (m_Device);..............}......
2240 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 77 69 74 68 20 45 78 70 61 6e 64 ..........////FIXME:.with.Expand
2260 48 65 69 67 68 74 28 66 61 6c 73 65 29 2c 20 65 64 69 74 6f 72 20 73 74 69 6c 6c 20 65 78 70 61 Height(false),.editor.still.expa
2280 6e 64 73 20 68 65 69 67 68 74 20 66 6f 72 20 73 6f 6d 65 20 72 65 61 73 6f 6e 2e 2e 2e 2e 0d 0a nds.height.for.some.reason......
22a0 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 67 69 ............EditorGUILayout.Begi
22c0 6e 56 65 72 74 69 63 61 6c 28 22 4f 4c 20 42 6f 78 22 2c 20 47 55 49 4c 61 79 6f 75 74 2e 48 65 nVertical("OL.Box",.GUILayout.He
22e0 69 67 68 74 28 31 37 30 29 29 3b 2f 2f 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 48 65 ight(170));//.GUILayout.ExpandHe
2300 69 67 68 74 28 66 61 6c 73 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f ight(false));..............Edito
2320 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 4e 61 6d 65 22 2c 20 6d 5f rGUILayout.LabelField("Name",.m_
2340 44 65 76 69 63 65 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f Device.name);..............Edito
2360 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 4c 61 79 6f 75 74 22 2c 20 rGUILayout.LabelField("Layout",.
2380 6d 5f 44 65 76 69 63 65 2e 6c 61 79 6f 75 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 m_Device.layout);..............E
23a0 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 54 79 70 65 22 ditorGUILayout.LabelField("Type"
23c0 2c 20 6d 5f 44 65 76 69 63 65 2e 47 65 74 54 79 70 65 28 29 2e 4e 61 6d 65 29 3b 0d 0a 20 20 20 ,.m_Device.GetType().Name);.....
23e0 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 70 .........if.(!string.IsNullOrEmp
2400 74 79 28 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f 6e 2e 69 6e 74 65 72 66 61 63 ty(m_Device.description.interfac
2420 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 45 64 69 74 6f 72 47 eName))..................EditorG
2440 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 49 6e 74 65 72 66 61 63 65 22 2c UILayout.LabelField("Interface",
2460 20 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f 6e 2e 69 6e 74 65 72 66 61 63 65 4e .m_Device.description.interfaceN
2480 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 ame);..............if.(!string.I
24a0 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f sNullOrEmpty(m_Device.descriptio
24c0 6e 2e 70 72 6f 64 75 63 74 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 n.product))..................Edi
24e0 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 50 72 6f 64 75 63 74 torGUILayout.LabelField("Product
2500 22 2c 20 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f 6e 2e 70 72 6f 64 75 63 74 29 ",.m_Device.description.product)
2520 3b 0d 0a 20 20 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 ;..............if.(!string.IsNul
2540 6c 4f 72 45 6d 70 74 79 28 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f 6e 2e 6d 61 lOrEmpty(m_Device.description.ma
2560 6e 75 66 61 63 74 75 72 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 nufacturer))..................Ed
2580 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 4d 61 6e 75 66 61 itorGUILayout.LabelField("Manufa
25a0 63 74 75 72 65 72 22 2c 20 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 69 6f 6e 2e 6d 61 cturer",.m_Device.description.ma
25c0 6e 75 66 61 63 74 75 72 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 nufacturer);..............if.(!s
25e0 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 44 65 76 69 63 65 2e 64 65 73 tring.IsNullOrEmpty(m_Device.des
2600 63 72 69 70 74 69 6f 6e 2e 73 65 72 69 61 6c 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 cription.serial))...............
2620 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 53 ...EditorGUILayout.LabelField("S
2640 65 72 69 61 6c 20 4e 75 6d 62 65 72 22 2c 20 6d 5f 44 65 76 69 63 65 2e 64 65 73 63 72 69 70 74 erial.Number",.m_Device.descript
2660 69 6f 6e 2e 73 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 ion.serial);..............Editor
2680 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 44 65 76 69 63 65 20 49 44 22 GUILayout.LabelField("Device.ID"
26a0 2c 20 6d 5f 44 65 76 69 63 65 49 64 53 74 72 69 6e 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ,.m_DeviceIdString);............
26c0 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 44 65 ..if.(!string.IsNullOrEmpty(m_De
26e0 76 69 63 65 55 73 61 67 65 73 53 74 72 69 6e 67 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 viceUsagesString))..............
2700 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 ....EditorGUILayout.LabelField("
2720 55 73 61 67 65 73 22 2c 20 6d 5f 44 65 76 69 63 65 55 73 61 67 65 73 53 74 72 69 6e 67 29 3b 0d Usages",.m_DeviceUsagesString);.
2740 0a 20 20 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 .............if.(!string.IsNullO
2760 72 45 6d 70 74 79 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 53 74 72 69 6e 67 29 29 0d 0a 20 20 rEmpty(m_DeviceFlagsString))....
2780 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 4c 61 ..............EditorGUILayout.La
27a0 62 65 6c 46 69 65 6c 64 28 22 46 6c 61 67 73 22 2c 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 53 belField("Flags",.m_DeviceFlagsS
27c0 74 72 69 6e 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 tring);..............if.(m_Devic
27e0 65 20 69 73 20 4b 65 79 62 6f 61 72 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.is.Keyboard)..................
2800 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 4b 65 79 62 EditorGUILayout.LabelField("Keyb
2820 6f 61 72 64 20 4c 61 79 6f 75 74 22 2c 20 28 28 4b 65 79 62 6f 61 72 64 29 6d 5f 44 65 76 69 63 oard.Layout",.((Keyboard)m_Devic
2840 65 29 2e 6b 65 79 62 6f 61 72 64 4c 61 79 6f 75 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 e).keyboardLayout);.............
2860 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d .EditorGUILayout.EndVertical();.
2880 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6f 6e 74 72 6f 6c 54 72 65 65 28 29 ...............DrawControlTree()
28a0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 45 76 65 6e 74 4c 69 73 74 28 29 3b 0d ;..............DrawEventList();.
28c0 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 20 76 6f .........}............private.vo
28e0 69 64 20 44 72 61 77 43 6f 6e 74 72 6f 6c 54 72 65 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d id.DrawControlTree()..........{.
2900 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 75 70 64 61 74 65 54 79 70 65 54 6f 53 68 6f .............var.updateTypeToSho
2920 77 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 2e 64 65 66 61 75 6c w.=.InputSystem.s_Manager.defaul
2940 74 55 70 64 61 74 65 54 79 70 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c tUpdateType;................GUIL
2960 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 45 64 69 74 6f 72 53 74 79 6c ayout.BeginHorizontal(EditorStyl
2980 65 73 2e 74 6f 6f 6c 62 61 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 es.toolbar);..............GUILay
29a0 6f 75 74 2e 4c 61 62 65 6c 28 24 22 43 6f 6e 74 72 6f 6c 73 20 28 7b 75 70 64 61 74 65 54 79 70 out.Label($"Controls.({updateTyp
29c0 65 54 6f 53 68 6f 77 7d 20 53 74 61 74 65 29 22 2c 20 47 55 49 4c 61 79 6f 75 74 2e 4d 69 6e 57 eToShow}.State)",.GUILayout.MinW
29e0 69 64 74 68 28 31 30 30 29 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 idth(100),.GUILayout.ExpandWidth
2a00 28 74 72 75 65 29 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 (true));..............GUILayout.
2a20 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 FlexibleSpace();................
2a40 2f 2f 20 41 6c 6c 6f 77 20 70 6c 75 67 69 6e 73 20 74 6f 20 61 64 64 20 74 6f 6f 6c 62 61 72 20 //.Allow.plugins.to.add.toolbar.
2a60 62 75 74 74 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 buttons...............for.(var.i
2a80 20 3d 20 30 3b 20 69 20 3c 20 73 5f 4f 6e 54 6f 6f 6c 62 61 72 47 55 49 41 63 74 69 6f 6e 73 2e .=.0;.i.<.s_OnToolbarGUIActions.
2aa0 6c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f length;.++i)..................s_
2ac0 4f 6e 54 6f 6f 6c 62 61 72 47 55 49 41 63 74 69 6f 6e 73 5b 69 5d 28 6d 5f 44 65 76 69 63 65 29 OnToolbarGUIActions[i](m_Device)
2ae0 3b 0d 0a 0d 0a 20 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 ;................if.(GUILayout.B
2b00 75 74 74 6f 6e 28 43 6f 6e 74 65 6e 74 73 2e 73 74 61 74 65 43 6f 6e 74 65 6e 74 2c 20 45 64 69 utton(Contents.stateContent,.Edi
2b20 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 29 29 0d 0a 20 20 20 20 20 torStyles.toolbarButton)).......
2b40 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 20 77 69 .......{..................var.wi
2b60 6e 64 6f 77 20 3d 20 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 49 6e 70 75 74 53 74 61 74 65 ndow.=.CreateInstance<InputState
2b80 57 69 6e 64 6f 77 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 Window>();..................wind
2ba0 6f 77 2e 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 43 6f 6e 74 72 6f 6c 28 6d 5f 44 65 76 69 63 ow.InitializeWithControl(m_Devic
2bc0 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 53 68 6f 77 e);..................window.Show
2be0 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 ();..............}..............
2c00 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 0d 0a ..GUILayout.EndHorizontal();....
2c20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 4e 65 65 64 43 6f 6e 74 72 6f 6c 56 61 6c ............if.(m_NeedControlVal
2c40 75 65 52 65 66 72 65 73 68 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ueRefresh)..............{.......
2c60 20 20 20 20 20 20 20 20 20 20 20 52 65 66 72 65 73 68 43 6f 6e 74 72 6f 6c 54 72 65 65 56 61 6c ...........RefreshControlTreeVal
2c80 75 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4e 65 65 64 43 6f ues();..................m_NeedCo
2ca0 6e 74 72 6f 6c 56 61 6c 75 65 52 65 66 72 65 73 68 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 ntrolValueRefresh.=.false;......
2cc0 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 2f 2f 54 4f 44 ........}................////TOD
2ce0 4f 3a 20 54 68 65 20 68 65 6c 70 20 62 6f 78 20 63 6f 75 6c 64 20 75 73 65 20 73 6f 6d 65 20 72 O:.The.help.box.could.use.some.r
2d00 69 63 68 54 65 78 74 20 73 74 79 6c 69 6e 67 20 62 75 74 20 61 6c 6c 20 74 68 65 20 65 66 66 69 ichText.styling.but.all.the.effi
2d20 6e 67 20 55 6e 69 74 79 20 41 50 49 73 20 74 6f 20 64 6f 20 74 68 69 73 20 61 72 65 20 69 6e 74 ng.Unity.APIs.to.do.this.are.int
2d40 65 72 6e 61 6c 2e 20 57 6f 75 6c 64 20 68 61 76 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f ernal..Would.have............../
2d60 2f 2f 2f 20 20 20 20 20 20 74 6f 20 72 6f 6c 6c 20 6f 75 72 20 6f 77 6e 20 68 65 6c 70 20 62 6f ///......to.roll.our.own.help.bo
2d80 78 20 66 72 6f 6d 20 73 63 72 61 74 63 68 2e 20 53 69 67 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 x.from.scratch..Sigh............
2da0 20 20 20 69 66 20 28 21 6d 5f 44 65 76 69 63 65 2e 65 6e 61 62 6c 65 64 29 0d 0a 20 20 20 20 20 ...if.(!m_Device.enabled).......
2dc0 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 48 65 6c 70 42 ...........EditorGUILayout.HelpB
2de0 6f 78 28 22 44 65 76 69 63 65 20 69 73 20 44 49 53 41 42 4c 45 44 2e 20 43 6f 6e 74 72 6f 6c 20 ox("Device.is.DISABLED..Control.
2e00 76 61 6c 75 65 73 20 77 69 6c 6c 20 6e 6f 74 20 72 65 63 65 69 76 65 73 20 75 70 64 61 74 65 73 values.will.not.receives.updates
2e20 2e 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 22 54 6f 20 66 .."......................+."To.f
2e40 6f 72 63 65 2d 65 6e 61 62 6c 65 20 74 68 65 20 64 65 76 69 63 65 2c 20 79 6f 75 20 63 61 6e 20 orce-enable.the.device,.you.can.
2e60 72 69 67 68 74 2d 63 6c 69 63 6b 20 69 74 20 69 6e 20 74 68 65 20 69 6e 70 75 74 20 64 65 62 75 right-click.it.in.the.input.debu
2e80 67 67 65 72 20 61 6e 64 20 75 73 65 20 27 45 6e 61 62 6c 65 20 44 65 76 69 63 65 27 2e 22 2c 20 gger.and.use.'Enable.Device'.",.
2ea0 4d 65 73 73 61 67 65 54 79 70 65 2e 49 6e 66 6f 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 MessageType.Info);..............
2ec0 20 20 76 61 72 20 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 ..var.rect.=.EditorGUILayout.Get
2ee0 43 6f 6e 74 72 6f 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 ControlRect(GUILayout.ExpandHeig
2f00 68 74 28 74 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f ht(true));..............m_Contro
2f20 6c 54 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 7d 0d 0a 0d lTree.OnGUI(rect);..........}...
2f40 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 44 72 61 77 45 76 65 6e 74 4c .........private.void.DrawEventL
2f60 69 73 74 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 47 55 ist()..........{..............GU
2f80 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 45 64 69 74 6f 72 53 74 ILayout.BeginHorizontal(EditorSt
2fa0 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c yles.toolbar);..............GUIL
2fc0 61 79 6f 75 74 2e 4c 61 62 65 6c 28 22 45 76 65 6e 74 73 22 2c 20 47 55 49 4c 61 79 6f 75 74 2e ayout.Label("Events",.GUILayout.
2fe0 4d 69 6e 57 69 64 74 68 28 31 30 30 29 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 MinWidth(100),.GUILayout.ExpandW
3000 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 idth(true));..............GUILay
3020 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 out.FlexibleSpace();............
3040 20 20 20 20 69 66 20 28 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 20 21 3d 20 6e 75 ....if.(m_ReplayController.!=.nu
3060 6c 6c 20 26 26 20 21 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 2e 66 69 6e 69 73 68 ll.&&.!m_ReplayController.finish
3080 65 64 29 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 ed)..................EditorGUILa
30a0 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 50 6c 61 79 69 6e 67 2e 2e 2e 22 2c 20 45 64 yout.LabelField("Playing...",.Ed
30c0 69 74 6f 72 53 74 79 6c 65 73 2e 6d 69 6e 69 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 itorStyles.miniLabel);..........
30e0 20 20 20 20 20 20 2f 2f 20 54 65 78 74 20 66 69 65 6c 64 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 ......//.Text.field.to.determine
3100 20 73 69 7a 65 20 6f 66 20 65 76 65 6e 74 20 74 72 61 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 .size.of.event.trace............
3120 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 54 72 61 63 65 53 69 7a 65 49 6e 4b 62 20 3d 20 6d 5f ...var.currentTraceSizeInKb.=.m_
3140 45 76 65 6e 74 54 72 61 63 65 2e 61 6c 6c 6f 63 61 74 65 64 53 69 7a 65 49 6e 42 79 74 65 73 20 EventTrace.allocatedSizeInBytes.
3160 2f 20 31 30 32 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 6c 64 53 69 7a 65 /.1024;..............var.oldSize
3180 54 65 78 74 20 3d 20 63 75 72 72 65 6e 74 54 72 61 63 65 53 69 7a 65 49 6e 4b 62 20 2b 20 22 20 Text.=.currentTraceSizeInKb.+.".
31a0 4b 42 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 53 69 7a 65 54 65 78 KB";..............var.newSizeTex
31c0 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 44 65 6c 61 79 65 64 54 65 78 74 46 t.=.EditorGUILayout.DelayedTextF
31e0 69 65 6c 64 28 6f 6c 64 53 69 7a 65 54 65 78 74 2c 20 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 ield(oldSizeText,.Styles.toolbar
3200 54 65 78 74 46 69 65 6c 64 2c 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 64 74 68 28 37 35 29 29 3b TextField,.GUILayout.Width(75));
3220 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6f 6c 64 53 69 7a 65 54 65 78 74 20 21 3d ..............if.(oldSizeText.!=
3240 20 6e 65 77 53 69 7a 65 54 65 78 74 20 26 26 20 53 74 72 69 6e 67 48 65 6c 70 65 72 73 2e 46 72 .newSizeText.&&.StringHelpers.Fr
3260 6f 6d 4e 69 63 69 66 69 65 64 4d 65 6d 6f 72 79 53 69 7a 65 28 6e 65 77 53 69 7a 65 54 65 78 74 omNicifiedMemorySize(newSizeText
3280 2c 20 6f 75 74 20 76 61 72 20 6e 65 77 53 69 7a 65 49 6e 42 79 74 65 73 2c 20 64 65 66 61 75 6c ,.out.var.newSizeInBytes,.defaul
32a0 74 4d 75 6c 74 69 70 6c 69 65 72 3a 20 31 30 32 34 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tMultiplier:.1024)).............
32c0 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 52 65 73 69 7a 65 28 6e 65 77 53 69 7a 65 .....m_EventTrace.Resize(newSize
32e0 49 6e 42 79 74 65 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 75 74 74 InBytes);................//.Butt
3300 6f 6e 20 74 6f 20 63 6c 65 61 72 20 65 76 65 6e 74 20 74 72 61 63 65 2e 0d 0a 20 20 20 20 20 20 on.to.clear.event.trace.........
3320 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 43 6f 6e 74 65 ......if.(GUILayout.Button(Conte
3340 6e 74 73 2e 63 6c 65 61 72 43 6f 6e 74 65 6e 74 2c 20 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 nts.clearContent,.Styles.toolbar
3360 42 75 74 74 6f 6e 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 Button))..............{.........
3380 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 43 6c 65 61 72 28 29 3b 0d 0a .........m_EventTrace.Clear();..
33a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 65 65 2e 52 65 6c 6f ................m_EventTree.Relo
33c0 61 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ad();..............}............
33e0 20 20 20 20 2f 2f 20 42 75 74 74 6f 6e 20 74 6f 20 64 69 73 61 62 6c 65 20 65 76 65 6e 74 20 74 ....//.Button.to.disable.event.t
3400 72 61 63 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 57 65 racing...............//.NOTE:.We
3420 20 66 6f 72 63 65 2d 64 69 73 61 62 6c 65 20 65 76 65 6e 74 20 74 72 61 63 69 6e 67 20 77 68 69 .force-disable.event.tracing.whi
3440 6c 65 20 61 20 72 65 70 6c 61 79 20 69 73 20 69 6e 20 70 72 6f 67 72 65 73 73 2e 0d 0a 20 20 20 le.a.replay.is.in.progress......
3460 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 45 64 69 74 6f 72 47 55 49 2e 44 69 .........using.(new.EditorGUI.Di
3480 73 61 62 6c 65 64 53 63 6f 70 65 28 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 20 21 sabledScope(m_ReplayController.!
34a0 3d 20 6e 75 6c 6c 20 26 26 20 21 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 2e 66 69 =.null.&&.!m_ReplayController.fi
34c0 6e 69 73 68 65 64 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 nished))..............{.........
34e0 20 20 20 20 20 20 20 20 20 76 61 72 20 65 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 4e .........var.eventTraceDisabledN
3500 6f 77 20 3d 20 47 55 49 4c 61 79 6f 75 74 2e 54 6f 67 67 6c 65 28 21 6d 5f 45 76 65 6e 74 54 72 ow.=.GUILayout.Toggle(!m_EventTr
3520 61 63 65 44 69 73 61 62 6c 65 64 2c 20 43 6f 6e 74 65 6e 74 73 2e 70 61 75 73 65 43 6f 6e 74 65 aceDisabled,.Contents.pauseConte
3540 6e 74 2c 20 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 29 3b 0d 0a 20 20 20 20 nt,.Styles.toolbarButton);......
3560 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c ............if.(eventTraceDisabl
3580 65 64 4e 6f 77 20 21 3d 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 29 0d 0a edNow.!=.m_EventTraceDisabled)..
35a0 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 ................{...............
35c0 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 20 3d 20 65 76 .......m_EventTraceDisabled.=.ev
35e0 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 4e 6f 77 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 entTraceDisabledNow;............
3600 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 ..........if.(eventTraceDisabled
3620 4e 6f 77 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 6d 5f Now)..........................m_
3640 45 76 65 6e 74 54 72 61 63 65 2e 44 69 73 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 EventTrace.Disable();...........
3660 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 20 20 20 20 20 20 ...........else.................
3680 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 45 6e 61 62 6c 65 28 29 3b 0d .........m_EventTrace.Enable();.
36a0 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 20 20 20 20 20 20 .................}..............
36c0 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 75 74 74 6f 6e 20 74 6f 20 74 6f }................//.Button.to.to
36e0 67 67 6c 65 20 72 65 63 6f 72 64 69 6e 67 20 6f 66 20 66 72 61 6d 65 20 6d 61 72 6b 65 72 73 2e ggle.recording.of.frame.markers.
3700 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 72 65 63 6f 72 ..............m_EventTrace.recor
3720 64 46 72 61 6d 65 4d 61 72 6b 65 72 73 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dFrameMarkers.=.................
3740 20 47 55 49 4c 61 79 6f 75 74 2e 54 6f 67 67 6c 65 28 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 72 .GUILayout.Toggle(m_EventTrace.r
3760 65 63 6f 72 64 46 72 61 6d 65 4d 61 72 6b 65 72 73 2c 20 43 6f 6e 74 65 6e 74 73 2e 72 65 63 6f ecordFrameMarkers,.Contents.reco
3780 72 64 46 72 61 6d 65 73 43 6f 6e 74 65 6e 74 2c 20 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 42 rdFramesContent,.Styles.toolbarB
37a0 75 74 74 6f 6e 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 75 74 74 6f 6e utton);................//.Button
37c0 20 74 6f 20 73 61 76 65 20 65 76 65 6e 74 20 74 72 61 63 65 20 74 6f 20 66 69 6c 65 2e 0d 0a 20 .to.save.event.trace.to.file....
37e0 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(
3800 43 6f 6e 74 65 6e 74 73 2e 73 61 76 65 43 6f 6e 74 65 6e 74 2c 20 53 74 79 6c 65 73 2e 74 6f 6f Contents.saveContent,.Styles.too
3820 6c 62 61 72 42 75 74 74 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 lbarButton))..............{.....
3840 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 66 61 75 6c 74 4e 61 6d 65 20 3d 20 6d .............var.defaultName.=.m
3860 5f 44 65 76 69 63 65 3f 2e 64 69 73 70 6c 61 79 4e 61 6d 65 20 2b 20 22 2e 69 6e 70 75 74 74 72 _Device?.displayName.+.".inputtr
3880 61 63 65 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 66 69 6c 65 4e ace";..................var.fileN
38a0 61 6d 65 20 3d 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 53 61 76 65 46 69 6c 65 50 61 6e 65 ame.=.EditorUtility.SaveFilePane
38c0 6c 28 22 43 68 6f 6f 73 65 20 77 68 65 72 65 20 74 6f 20 73 61 76 65 20 65 76 65 6e 74 20 74 72 l("Choose.where.to.save.event.tr
38e0 61 63 65 22 2c 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 2c 20 64 65 66 61 75 6c 74 4e 61 6d 65 2c ace",.string.Empty,.defaultName,
3900 20 22 69 6e 70 75 74 74 72 61 63 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ."inputtrace");.................
3920 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 66 69 6c 65 4e .if.(!string.IsNullOrEmpty(fileN
3940 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 20 6d 5f 45 76 65 ame))......................m_Eve
3960 6e 74 54 72 61 63 65 2e 57 72 69 74 65 54 6f 28 66 69 6c 65 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 ntTrace.WriteTo(fileName);......
3980 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 42 75 74 74 ........}................//.Butt
39a0 6f 6e 20 74 6f 20 6c 6f 61 64 20 65 76 65 6e 74 20 74 72 61 63 65 20 66 72 6f 6d 20 66 69 6c 65 on.to.load.event.trace.from.file
39c0 2e 0d 0a 20 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 ...............if.(GUILayout.But
39e0 74 6f 6e 28 43 6f 6e 74 65 6e 74 73 2e 6c 6f 61 64 43 6f 6e 74 65 6e 74 2c 20 53 74 79 6c 65 73 ton(Contents.loadContent,.Styles
3a00 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d .toolbarButton))..............{.
3a20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 66 69 6c 65 4e 61 6d 65 20 3d 20 .................var.fileName.=.
3a40 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 4f 70 65 6e 46 69 6c 65 50 61 6e 65 6c 28 22 43 68 6f EditorUtility.OpenFilePanel("Cho
3a60 6f 73 65 20 65 76 65 6e 74 20 74 72 61 63 65 20 74 6f 20 6c 6f 61 64 22 2c 20 73 74 72 69 6e 67 ose.event.trace.to.load",.string
3a80 2e 45 6d 70 74 79 2c 20 22 69 6e 70 75 74 74 72 61 63 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 .Empty,."inputtrace");..........
3aa0 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 70 74 ........if.(!string.IsNullOrEmpt
3ac0 79 28 66 69 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 7b 0d y(fileName))..................{.
3ae0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 72 65 70 6c 61 .....................//.If.repla
3b00 79 20 69 73 20 69 6e 20 70 72 6f 67 72 65 73 73 2c 20 73 74 6f 70 20 69 74 2e 0d 0a 20 20 20 20 y.is.in.progress,.stop.it.......
3b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 ................if.(m_ReplayCont
3b40 72 6f 6c 6c 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 roller.!=.null).................
3b60 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 .....{..........................
3b80 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 m_ReplayController.Dispose();...
3ba0 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 52 65 70 6c 61 79 43 .......................m_ReplayC
3bc0 6f 6e 74 72 6f 6c 6c 65 72 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ontroller.=.null;...............
3be0 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 20 20 20 20 .......}........................
3c00 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 65 76 65 6e 74 20 74 72 61 63 65 20 69 73 6e 27 74 20 72 //.Make.sure.event.trace.isn't.r
3c20 65 63 6f 72 64 69 6e 67 20 77 68 69 6c 65 20 77 65 27 72 65 20 70 6c 61 79 69 6e 67 2e 0d 0a 20 ecording.while.we're.playing....
3c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e ...................m_EventTrace.
3c60 44 69 73 61 62 6c 65 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 Disable();......................
3c80 6d 5f 45 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a m_EventTraceDisabled.=.true;....
3ca0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 ....................m_EventTrace
3cc0 2e 52 65 61 64 46 72 6f 6d 28 66 69 6c 65 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .ReadFrom(fileName);............
3ce0 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 65 65 2e 52 65 6c 6f 61 64 28 29 3b 0d ..........m_EventTree.Reload();.
3d00 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 65 70 6c 61 79 43 .......................m_ReplayC
3d20 6f 6e 74 72 6f 6c 6c 65 72 20 3d 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 52 65 70 6c 61 79 28 ontroller.=.m_EventTrace.Replay(
3d40 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 2e 50 6c 61 79 )...........................Play
3d60 41 6c 6c 46 72 61 6d 65 73 4f 6e 65 42 79 4f 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 AllFramesOneByOne().............
3d80 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 4f 6e 46 69 6e 69 73 68 65 64 28 28 29 20 3d 3e 0d 0a ..............OnFinished(().=>..
3da0 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 20 ........................{.......
3dc0 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 52 65 70 6c 61 79 43 .......................m_ReplayC
3de0 6f 6e 74 72 6f 6c 6c 65 72 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ontroller.Dispose();............
3e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 65 70 6c 61 79 43 6f 6e 74 72 6f ..................m_ReplayContro
3e20 6c 6c 65 72 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ller.=.null;....................
3e40 20 20 20 20 20 20 20 20 20 20 52 65 70 61 69 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ..........Repaint();............
3e60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............});...............
3e80 20 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 ...}..............}.............
3ea0 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 0d ...GUILayout.EndHorizontal();...
3ec0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 .............var.rect.=.EditorGU
3ee0 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 47 55 49 4c 61 79 6f 75 74 ILayout.GetControlRect(GUILayout
3f00 2e 45 78 70 61 6e 64 48 65 69 67 68 74 28 74 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 .ExpandHeight(true));...........
3f20 20 20 20 6d 5f 45 76 65 6e 74 54 72 65 65 2e 4f 6e 47 55 49 28 72 65 63 74 29 3b 0d 0a 20 20 20 ...m_EventTree.OnGUI(rect);.....
3f40 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 73 6f 6d .....}............////FIXME:.som
3f60 65 20 6f 66 20 74 68 65 20 73 74 61 74 65 20 69 6e 20 68 65 72 65 20 64 6f 65 73 6e 27 74 20 67 e.of.the.state.in.here.doesn't.g
3f80 65 74 20 72 65 66 72 65 73 68 65 64 20 77 68 65 6e 20 69 74 27 73 20 63 68 61 6e 67 65 64 20 6f et.refreshed.when.it's.changed.o
3fa0 6e 20 74 68 65 20 64 65 76 69 63 65 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f n.the.device..........private.vo
3fc0 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 57 69 74 68 28 49 6e 70 75 74 44 65 76 69 63 65 20 64 65 id.InitializeWith(InputDevice.de
3fe0 76 69 63 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 20 6d 5f vice)..........{..............m_
4000 44 65 76 69 63 65 20 3d 20 64 65 76 69 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f Device.=.device;..............m_
4020 44 65 76 69 63 65 49 64 20 3d 20 64 65 76 69 63 65 2e 64 65 76 69 63 65 49 64 3b 0d 0a 20 20 20 DeviceId.=.device.deviceId;.....
4040 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 49 64 53 74 72 69 6e 67 20 3d 20 64 65 76 69 .........m_DeviceIdString.=.devi
4060 63 65 2e 64 65 76 69 63 65 49 64 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 ce.deviceId.ToString();.........
4080 20 20 20 20 20 6d 5f 44 65 76 69 63 65 55 73 61 67 65 73 53 74 72 69 6e 67 20 3d 20 73 74 72 69 .....m_DeviceUsagesString.=.stri
40a0 6e 67 2e 4a 6f 69 6e 28 22 2c 20 22 2c 20 64 65 76 69 63 65 2e 75 73 61 67 65 73 2e 53 65 6c 65 ng.Join(",.",.device.usages.Sele
40c0 63 74 28 78 20 3d 3e 20 78 2e 54 6f 53 74 72 69 6e 67 28 29 29 2e 54 6f 41 72 72 61 79 28 29 29 ct(x.=>.x.ToString()).ToArray())
40e0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 70 64 61 74 65 44 65 76 69 63 65 46 6c 61 ;................UpdateDeviceFla
4100 67 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 74 20 75 70 20 65 gs();................//.Set.up.e
4120 76 65 6e 74 20 74 72 61 63 65 2e 20 54 68 65 20 64 65 66 61 75 6c 74 20 74 72 61 63 65 20 73 69 vent.trace..The.default.trace.si
4140 7a 65 20 6f 66 20 35 31 32 6b 62 20 66 69 74 73 20 61 20 74 6f 6e 20 6f 66 20 65 76 65 6e 74 73 ze.of.512kb.fits.a.ton.of.events
4160 20 61 6e 64 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6c 69 6b 65 6c 79 .and.will..............//.likely
4180 20 62 6f 67 20 64 6f 77 6e 20 74 68 65 20 55 49 20 69 66 20 77 65 20 74 72 79 20 74 6f 20 64 69 .bog.down.the.UI.if.we.try.to.di
41a0 73 70 6c 61 79 20 74 68 61 74 20 6d 61 6e 79 20 65 76 65 6e 74 73 2e 20 49 6e 73 74 65 61 64 2c splay.that.many.events..Instead,
41c0 20 63 6f 6d 65 20 75 70 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 77 69 74 68 20 61 20 .come.up..............//.with.a.
41e0 6d 6f 72 65 20 72 65 61 73 6f 6e 61 62 6c 65 20 73 69 7a 65 64 20 62 61 73 65 64 20 6f 6e 20 74 more.reasonable.sized.based.on.t
4200 68 65 20 73 74 61 74 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 64 65 76 69 63 65 2e 0d 0a 20 20 he.state.size.of.the.device.....
4220 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 45 76 65 6e 74 54 72 61 63 65 20 3d 3d 20 6e 75 ..........if.(m_EventTrace.==.nu
4240 6c 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 20 20 20 20 ll)..............{..............
4260 20 20 20 20 76 61 72 20 64 65 76 69 63 65 53 74 61 74 65 53 69 7a 65 20 3d 20 28 69 6e 74 29 64 ....var.deviceStateSize.=.(int)d
4280 65 76 69 63 65 2e 73 74 61 74 65 42 6c 6f 63 6b 2e 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 evice.stateBlock.alignedSizeInBy
42a0 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 72 61 63 65 53 tes;..................var.traceS
42c0 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 28 6b 44 65 66 61 75 6c 74 45 76 65 6e 74 54 72 61 63 65 izeInBytes.=.(kDefaultEventTrace
42e0 53 69 7a 65 49 6e 4b 42 20 2a 20 31 30 32 34 29 2e 41 6c 69 67 6e 54 6f 4d 75 6c 74 69 70 6c 65 SizeInKB.*.1024).AlignToMultiple
4300 4f 66 28 64 65 76 69 63 65 53 74 61 74 65 53 69 7a 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 Of(deviceStateSize);............
4320 20 20 20 20 20 20 69 66 20 28 74 72 61 63 65 53 69 7a 65 49 6e 42 79 74 65 73 20 2f 20 64 65 76 ......if.(traceSizeInBytes./.dev
4340 69 63 65 53 74 61 74 65 53 69 7a 65 20 3e 20 6b 4d 61 78 45 76 65 6e 74 73 50 65 72 54 72 61 63 iceStateSize.>.kMaxEventsPerTrac
4360 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 63 65 53 69 7a e)......................traceSiz
4380 65 49 6e 42 79 74 65 73 20 3d 20 6b 4d 61 78 45 76 65 6e 74 73 50 65 72 54 72 61 63 65 20 2a 20 eInBytes.=.kMaxEventsPerTrace.*.
43a0 64 65 76 69 63 65 53 74 61 74 65 53 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 deviceStateSize;................
43c0 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ....m_EventTrace.=..............
43e0 20 20 20 20 20 20 20 20 6e 65 77 20 49 6e 70 75 74 45 76 65 6e 74 54 72 61 63 65 28 74 72 61 63 ........new.InputEventTrace(trac
4400 65 53 69 7a 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b eSizeInBytes)..................{
4420 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 76 69 63 65 49 64 20 3d ......................deviceId.=
4440 20 64 65 76 69 63 65 2e 64 65 76 69 63 65 49 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .device.deviceId................
4460 20 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..};..............}.............
4480 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2e 6f 6e 45 76 65 6e 74 20 2b 3d 20 5f 20 3d 3e 0d ...m_EventTrace.onEvent.+=._.=>.
44a0 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 20 .............{..................
44c0 2f 2f 2f 2f 46 49 58 4d 45 3a 20 74 68 69 73 20 69 73 20 76 65 72 79 20 69 6e 65 66 66 69 63 69 ////FIXME:.this.is.very.ineffici
44e0 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 65 65 ent..................m_EventTree
4500 2e 52 65 6c 6f 61 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 20 20 20 20 .Reload();..............};......
4520 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 45 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 ........if.(!m_EventTraceDisable
4540 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 d)..................m_EventTrace
4560 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 74 .Enable();................//.Set
4580 20 75 70 20 65 76 65 6e 74 20 74 72 65 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 .up.event.tree...............m_E
45a0 76 65 6e 74 54 72 65 65 20 3d 20 49 6e 70 75 74 45 76 65 6e 74 54 72 65 65 56 69 65 77 2e 43 72 ventTree.=.InputEventTreeView.Cr
45c0 65 61 74 65 28 6d 5f 44 65 76 69 63 65 2c 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 2c 20 72 65 66 eate(m_Device,.m_EventTrace,.ref
45e0 20 6d 5f 45 76 65 6e 74 54 72 65 65 53 74 61 74 65 2c 20 72 65 66 20 6d 5f 45 76 65 6e 74 54 72 .m_EventTreeState,.ref.m_EventTr
4600 65 65 48 65 61 64 65 72 53 74 61 74 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f eeHeaderState);................/
4620 2f 20 53 65 74 20 75 70 20 63 6f 6e 74 72 6f 6c 20 74 72 65 65 2e 0d 0a 20 20 20 20 20 20 20 20 /.Set.up.control.tree...........
4640 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c ....m_ControlTree.=.InputControl
4660 54 72 65 65 56 69 65 77 2e 43 72 65 61 74 65 28 6d 5f 44 65 76 69 63 65 2c 20 31 2c 20 72 65 66 TreeView.Create(m_Device,.1,.ref
4680 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 74 72 .m_ControlTreeState,.ref.m_Contr
46a0 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 20 20 olTreeHeaderState);.............
46c0 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 52 65 6c 6f 61 64 28 29 3b 0d 0a 20 20 20 20 20 20 .m_ControlTree.Reload();........
46e0 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 2e 45 78 70 61 6e 64 41 6c 6c 28 29 3b ......m_ControlTree.ExpandAll();
4700 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 54 6f 4c 69 73 74 28 29 3b 0d 0a 0d 0a ................AddToList();....
4720 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 6f 6e 44 65 76 69 63 65 ............InputSystem.onDevice
4740 43 68 61 6e 67 65 20 2b 3d 20 4f 6e 44 65 76 69 63 65 43 68 61 6e 67 65 3b 0d 0a 20 20 20 20 20 Change.+=.OnDeviceChange;.......
4760 20 20 20 20 20 20 20 49 6e 70 75 74 53 74 61 74 65 2e 6f 6e 43 68 61 6e 67 65 20 2b 3d 20 4f 6e .......InputState.onChange.+=.On
4780 44 65 76 69 63 65 53 74 61 74 65 43 68 61 6e 67 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d DeviceStateChange;..........}...
47a0 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 55 70 64 61 74 65 44 65 76 69 .........private.void.UpdateDevi
47c0 63 65 46 6c 61 67 73 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 ceFlags()..........{............
47e0 20 20 76 61 72 20 66 6c 61 67 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 73 74 72 69 6e 67 3e 28 29 ..var.flags.=.new.List<string>()
4800 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 28 6d 5f 44 65 76 69 63 65 2e 6d 5f 44 ;..............if.((m_Device.m_D
4820 65 76 69 63 65 46 6c 61 67 73 20 26 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 eviceFlags.&.InputDevice.DeviceF
4840 6c 61 67 73 2e 4e 61 74 69 76 65 29 20 3d 3d 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 lags.Native).==.InputDevice.Devi
4860 63 65 46 6c 61 67 73 2e 4e 61 74 69 76 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ceFlags.Native).................
4880 20 66 6c 61 67 73 2e 41 64 64 28 22 4e 61 74 69 76 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 .flags.Add("Native");...........
48a0 20 20 20 69 66 20 28 28 6d 5f 44 65 76 69 63 65 2e 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 ...if.((m_Device.m_DeviceFlags.&
48c0 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 52 65 6d 6f 74 65 29 .InputDevice.DeviceFlags.Remote)
48e0 20 3d 3d 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 52 65 6d 6f .==.InputDevice.DeviceFlags.Remo
4900 74 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 67 73 2e 41 64 64 28 22 te)..................flags.Add("
4920 52 65 6d 6f 74 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 28 6d 5f 44 65 Remote");..............if.((m_De
4940 76 69 63 65 2e 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 26 20 49 6e 70 75 74 44 65 76 69 63 65 vice.m_DeviceFlags.&.InputDevice
4960 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 55 70 64 61 74 65 42 65 66 6f 72 65 52 65 6e 64 65 72 29 .DeviceFlags.UpdateBeforeRender)
4980 20 3d 3d 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 55 70 64 61 .==.InputDevice.DeviceFlags.Upda
49a0 74 65 42 65 66 6f 72 65 52 65 6e 64 65 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 teBeforeRender).................
49c0 20 66 6c 61 67 73 2e 41 64 64 28 22 55 70 64 61 74 65 42 65 66 6f 72 65 52 65 6e 64 65 72 22 29 .flags.Add("UpdateBeforeRender")
49e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 28 6d 5f 44 65 76 69 63 65 2e 6d 5f 44 ;..............if.((m_Device.m_D
4a00 65 76 69 63 65 46 6c 61 67 73 20 26 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 eviceFlags.&.InputDevice.DeviceF
4a20 6c 61 67 73 2e 48 61 73 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 29 20 3d 3d 20 49 6e 70 75 74 lags.HasStateCallbacks).==.Input
4a40 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 48 61 73 53 74 61 74 65 43 61 6c 6c 62 Device.DeviceFlags.HasStateCallb
4a60 61 63 6b 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 67 73 2e 41 64 64 acks)..................flags.Add
4a80 28 22 48 61 73 53 74 61 74 65 43 61 6c 6c 62 61 63 6b 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 ("HasStateCallbacks");..........
4aa0 20 20 20 20 69 66 20 28 28 6d 5f 44 65 76 69 63 65 2e 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 ....if.((m_Device.m_DeviceFlags.
4ac0 26 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 44 69 73 61 62 6c &.InputDevice.DeviceFlags.Disabl
4ae0 65 64 29 20 3d 3d 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 73 2e 44 ed).==.InputDevice.DeviceFlags.D
4b00 69 73 61 62 6c 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 67 73 2e isabled)..................flags.
4b20 41 64 64 28 22 44 69 73 61 62 6c 65 64 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f Add("Disabled");..............m_
4b40 44 65 76 69 63 65 46 6c 61 67 73 20 3d 20 6d 5f 44 65 76 69 63 65 2e 6d 5f 44 65 76 69 63 65 46 DeviceFlags.=.m_Device.m_DeviceF
4b60 6c 61 67 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 lags;..............m_DeviceFlags
4b80 53 74 72 69 6e 67 20 3d 20 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 2c 20 22 2c 20 66 6c 61 67 73 String.=.string.Join(",.",.flags
4ba0 2e 54 6f 41 72 72 61 79 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 .ToArray());..........}.........
4bc0 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 52 65 66 72 65 73 68 43 6f 6e 74 72 6f 6c 54 72 ...private.void.RefreshControlTr
4be0 65 65 56 61 6c 75 65 73 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 eeValues()..........{...........
4c00 20 20 20 76 61 72 20 75 70 64 61 74 65 54 79 70 65 54 6f 53 68 6f 77 20 3d 20 49 6e 70 75 74 53 ...var.updateTypeToShow.=.InputS
4c20 79 73 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 2e 64 65 66 61 75 6c 74 55 70 64 61 74 65 54 79 70 ystem.s_Manager.defaultUpdateTyp
4c40 65 3b 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 55 70 64 61 74 e;..............var.currentUpdat
4c60 65 54 79 70 65 20 3d 20 49 6e 70 75 74 53 74 61 74 65 2e 63 75 72 72 65 6e 74 55 70 64 61 74 65 eType.=.InputState.currentUpdate
4c80 54 79 70 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 74 61 74 65 42 Type;................InputStateB
4ca0 75 66 66 65 72 73 2e 53 77 69 74 63 68 54 6f 28 49 6e 70 75 74 53 79 73 74 65 6d 2e 73 5f 4d 61 uffers.SwitchTo(InputSystem.s_Ma
4cc0 6e 61 67 65 72 2e 6d 5f 53 74 61 74 65 42 75 66 66 65 72 73 2c 20 75 70 64 61 74 65 54 79 70 65 nager.m_StateBuffers,.updateType
4ce0 54 6f 53 68 6f 77 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 ToShow);..............m_ControlT
4d00 72 65 65 2e 52 65 66 72 65 73 68 43 6f 6e 74 72 6f 6c 56 61 6c 75 65 73 28 29 3b 0d 0a 20 20 20 ree.RefreshControlValues();.....
4d20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 74 61 74 65 42 75 66 66 65 72 73 2e 53 77 69 74 63 .........InputStateBuffers.Switc
4d40 68 54 6f 28 49 6e 70 75 74 53 79 73 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 2e 6d 5f 53 74 61 74 hTo(InputSystem.s_Manager.m_Stat
4d60 65 42 75 66 66 65 72 73 2c 20 63 75 72 72 65 6e 74 55 70 64 61 74 65 54 79 70 65 29 3b 0d 0a 20 eBuffers,.currentUpdateType);...
4d80 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 77 69 6c 6c 20 6c .......}............//.We.will.l
4da0 6f 73 65 20 6f 75 72 20 64 65 76 69 63 65 20 6f 6e 20 64 6f 6d 61 69 6e 20 72 65 6c 6f 61 64 20 ose.our.device.on.domain.reload.
4dc0 61 6e 64 20 74 68 65 6e 20 6c 6f 6f 6b 20 69 74 20 62 61 63 6b 20 75 70 20 74 68 65 20 66 69 72 and.then.look.it.back.up.the.fir
4de0 73 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 74 69 6d 65 20 77 65 20 68 69 74 20 61 20 72 65 70 st..........//.time.we.hit.a.rep
4e00 61 69 6e 74 20 61 66 74 65 72 20 61 20 72 65 6c 6f 61 64 2e 20 42 79 20 74 68 61 74 20 74 69 6d aint.after.a.reload..By.that.tim
4e20 65 2c 20 74 68 65 20 69 6e 70 75 74 20 73 79 73 74 65 6d 20 73 68 6f 75 6c 64 20 68 61 76 65 0d e,.the.input.system.should.have.
4e40 0a 20 20 20 20 20 20 20 20 2f 2f 20 66 75 6c 6c 79 20 63 6f 6d 65 20 62 61 63 6b 20 74 6f 20 6c .........//.fully.come.back.to.l
4e60 69 66 65 20 61 73 20 77 65 6c 6c 2e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e ife.as.well...........private.In
4e80 70 75 74 44 65 76 69 63 65 20 6d 5f 44 65 76 69 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 putDevice.m_Device;..........pri
4ea0 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 44 65 76 69 63 65 49 64 53 74 72 69 6e 67 3b 0d 0a 20 vate.string.m_DeviceIdString;...
4ec0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 44 65 76 69 63 65 55 73 .......private.string.m_DeviceUs
4ee0 61 67 65 73 53 74 72 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 agesString;..........private.str
4f00 69 6e 67 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 53 74 72 69 6e 67 3b 0d 0a 20 20 20 20 20 20 ing.m_DeviceFlagsString;........
4f20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 44 65 76 69 63 65 2e 44 65 76 69 63 65 46 6c 61 67 ..private.InputDevice.DeviceFlag
4f40 73 20 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 s.m_DeviceFlags;..........privat
4f60 65 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 54 72 65 65 56 69 65 77 20 6d 5f 43 6f 6e 74 72 6f 6c e.InputControlTreeView.m_Control
4f80 54 72 65 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 45 76 65 6e Tree;..........private.InputEven
4fa0 74 54 72 65 65 56 69 65 77 20 6d 5f 45 76 65 6e 74 54 72 65 65 3b 0d 0a 20 20 20 20 20 20 20 20 tTreeView.m_EventTree;..........
4fc0 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 4e 65 65 64 43 6f 6e 74 72 6f 6c 56 61 6c 75 65 52 private.bool.m_NeedControlValueR
4fe0 65 66 72 65 73 68 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 45 76 efresh;..........private.InputEv
5000 65 6e 74 54 72 61 63 65 2e 52 65 70 6c 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 20 6d 5f 52 65 70 6c entTrace.ReplayController.m_Repl
5020 61 79 43 6f 6e 74 72 6f 6c 6c 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 ayController;..........private.I
5040 6e 70 75 74 45 76 65 6e 74 54 72 61 63 65 20 6d 5f 45 76 65 6e 74 54 72 61 63 65 3b 0d 0a 0d 0a nputEventTrace.m_EventTrace;....
5060 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 74 65 ........[SerializeField].private
5080 20 69 6e 74 20 6d 5f 44 65 76 69 63 65 49 64 20 3d 20 49 6e 70 75 74 44 65 76 69 63 65 2e 49 6e .int.m_DeviceId.=.InputDevice.In
50a0 76 61 6c 69 64 44 65 76 69 63 65 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 validDeviceId;..........[Seriali
50c0 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 54 72 65 65 56 69 65 77 53 74 61 74 65 20 6d zeField].private.TreeViewState.m
50e0 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 _ControlTreeState;..........[Ser
5100 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 54 72 65 65 56 69 65 77 53 74 61 ializeField].private.TreeViewSta
5120 74 65 20 6d 5f 45 76 65 6e 74 54 72 65 65 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 te.m_EventTreeState;..........[S
5140 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 4d 75 6c 74 69 43 6f 6c 75 erializeField].private.MultiColu
5160 6d 6e 48 65 61 64 65 72 53 74 61 74 65 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 48 65 61 64 65 mnHeaderState.m_ControlTreeHeade
5180 72 53 74 61 74 65 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 rState;..........[SerializeField
51a0 5d 20 70 72 69 76 61 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 ].private.MultiColumnHeaderState
51c0 20 6d 5f 45 76 65 6e 74 54 72 65 65 48 65 61 64 65 72 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 .m_EventTreeHeaderState;........
51e0 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 62 6f 6f 6c 20 ..[SerializeField].private.bool.
5200 6d 5f 45 76 65 6e 74 54 72 61 63 65 44 69 73 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 m_EventTraceDisabled;...........
5220 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 4c 69 73 74 3c 49 6e 70 75 74 44 65 76 69 63 65 .private.static.List<InputDevice
5240 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 3e 20 73 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 DebuggerWindow>.s_OpenDebuggerWi
5260 6e 64 6f 77 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 41 ndows;............private.void.A
5280 64 64 54 6f 4c 69 73 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ddToList()..........{...........
52a0 20 20 20 69 66 20 28 73 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 20 3d 3d 20 ...if.(s_OpenDebuggerWindows.==.
52c0 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 4f 70 65 6e 44 65 62 null)..................s_OpenDeb
52e0 75 67 67 65 72 57 69 6e 64 6f 77 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 49 6e 70 75 74 44 65 76 uggerWindows.=.new.List<InputDev
5300 69 63 65 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 iceDebuggerWindow>();...........
5320 20 20 20 69 66 20 28 21 73 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 2e 43 6f ...if.(!s_OpenDebuggerWindows.Co
5340 6e 74 61 69 6e 73 28 74 68 69 73 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 ntains(this))..................s
5360 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 73 2e 41 64 64 28 74 68 69 73 29 3b 0d _OpenDebuggerWindows.Add(this);.
5380 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 20 76 6f .........}............private.vo
53a0 69 64 20 52 65 6d 6f 76 65 46 72 6f 6d 4c 69 73 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a id.RemoveFromList()..........{..
53c0 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 ............s_OpenDebuggerWindow
53e0 73 3f 2e 52 65 6d 6f 76 65 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 s?.Remove(this);..........}.....
5400 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 44 65 76 69 63 65 43 68 61 6e .......private.void.OnDeviceChan
5420 67 65 28 49 6e 70 75 74 44 65 76 69 63 65 20 64 65 76 69 63 65 2c 20 49 6e 70 75 74 44 65 76 69 ge(InputDevice.device,.InputDevi
5440 63 65 43 68 61 6e 67 65 20 63 68 61 6e 67 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ceChange.change)..........{.....
5460 20 20 20 20 20 20 20 20 20 69 66 20 28 64 65 76 69 63 65 2e 64 65 76 69 63 65 49 64 20 21 3d 20 .........if.(device.deviceId.!=.
5480 6d 5f 44 65 76 69 63 65 49 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 m_DeviceId)..................ret
54a0 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 61 6e 67 65 20 3d urn;................if.(change.=
54c0 3d 20 49 6e 70 75 74 44 65 76 69 63 65 43 68 61 6e 67 65 2e 52 65 6d 6f 76 65 64 29 0d 0a 20 20 =.InputDeviceChange.Removed)....
54e0 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 43 6c 6f ..........{..................Clo
5500 73 65 28 29 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 se();..............}............
5520 20 20 65 6c 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 ..else..............{...........
5540 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 20 21 3d 20 64 65 76 69 .......if.(m_DeviceFlags.!=.devi
5560 63 65 2e 6d 5f 44 65 76 69 63 65 46 6c 61 67 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ce.m_DeviceFlags)...............
5580 20 20 20 20 20 20 20 55 70 64 61 74 65 44 65 76 69 63 65 46 6c 61 67 73 28 29 3b 0d 0a 20 20 20 .......UpdateDeviceFlags();.....
55a0 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 70 61 69 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 .............Repaint();.........
55c0 20 20 20 20 20 7d 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 .....}..........}............pri
55e0 76 61 74 65 20 76 6f 69 64 20 4f 6e 44 65 76 69 63 65 53 74 61 74 65 43 68 61 6e 67 65 28 49 6e vate.void.OnDeviceStateChange(In
5600 70 75 74 44 65 76 69 63 65 20 64 65 76 69 63 65 2c 20 49 6e 70 75 74 45 76 65 6e 74 50 74 72 20 putDevice.device,.InputEventPtr.
5620 65 76 65 6e 74 50 74 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 eventPtr)..........{............
5640 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 49 64 65 61 6c 6c 79 20 77 65 20 77 6f 75 6c 64 20 64 ..////REVIEW:.Ideally.we.would.d
5660 65 66 65 72 20 74 68 65 20 72 65 66 72 65 73 68 20 75 6e 74 69 6c 20 77 65 20 72 65 70 61 69 6e efer.the.refresh.until.we.repain
5680 74 2e 20 54 68 61 74 20 77 61 79 2c 20 77 65 20 77 6f 75 6c 64 20 6e 6f 74 20 72 65 66 72 65 73 t..That.way,.we.would.not.refres
56a0 68 20 6f 6e 20 65 76 65 72 79 20 73 69 6e 67 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f h.on.every.single............../
56c0 2f 2f 2f 20 20 20 20 20 20 20 20 73 74 61 74 65 20 63 68 61 6e 67 65 20 62 75 74 20 72 61 74 68 ///........state.change.but.rath
56e0 65 72 20 6f 6e 6c 79 20 6f 6e 63 65 20 66 6f 72 20 61 20 72 65 70 61 69 6e 74 2e 20 48 6f 77 65 er.only.once.for.a.repaint..Howe
5700 76 65 72 2c 20 66 6f 72 20 73 6f 6d 65 20 72 65 61 73 6f 6e 2c 20 69 66 20 77 65 20 6d 6f 76 65 ver,.for.some.reason,.if.we.move
5720 20 74 68 65 20 72 65 66 72 65 73 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 .the.refresh..............////..
5740 20 20 20 20 20 20 69 6e 74 6f 20 4f 6e 47 55 49 2c 20 73 6f 6d 65 74 68 69 6e 67 20 69 6e 20 55 ......into.OnGUI,.something.in.U
5760 6e 69 74 79 20 62 6c 6f 77 73 20 75 70 20 61 6e 64 20 74 61 6b 65 73 20 66 6f 72 65 76 65 72 2e nity.blows.up.and.takes.forever.
5780 20 49 74 20 73 65 65 6d 73 20 74 68 61 74 20 77 65 20 61 72 65 20 69 6e 76 61 6c 69 64 61 74 69 .It.seems.that.we.are.invalidati
57a0 6e 67 20 73 6f 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 ng.some..............////.......
57c0 20 63 61 63 68 65 64 20 6d 61 74 65 72 69 61 6c 20 64 61 74 61 20 6f 76 65 72 20 61 6e 64 20 6f .cached.material.data.over.and.o
57e0 76 65 72 20 61 6e 64 20 6f 76 65 72 20 73 6f 20 74 68 61 74 20 4f 6e 47 55 49 20 73 75 64 64 65 ver.and.over.so.that.OnGUI.sudde
5800 6e 6c 79 20 62 65 63 6f 6d 65 73 20 63 72 61 7a 79 20 65 78 70 65 6e 73 69 76 65 2e 0d 0a 0d 0a nly.becomes.crazy.expensive.....
5820 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 52 65 61 64 69 6e 67 20 76 ............////FIXME:.Reading.v
5840 61 6c 75 65 73 20 68 65 72 65 20 6d 65 61 6e 73 20 77 65 20 77 6f 6e 27 74 20 62 65 20 73 68 6f alues.here.means.we.won't.be.sho
5860 77 69 6e 67 20 74 68 65 20 65 66 66 65 63 74 20 6f 66 20 45 64 69 74 6f 72 57 69 6e 64 6f 77 53 wing.the.effect.of.EditorWindowS
5880 70 61 63 65 50 72 6f 63 65 73 73 6f 72 20 63 6f 72 72 65 63 74 6c 79 2e 20 49 6e 20 74 68 65 0d paceProcessor.correctly..In.the.
58a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 69 6e 70 75 74 20 75 70 .............////.......input.up
58c0 64 61 74 65 2c 20 74 68 65 72 65 20 69 73 20 6e 6f 20 63 75 72 72 65 6e 74 20 45 64 69 74 6f 72 date,.there.is.no.current.Editor
58e0 57 69 6e 64 6f 77 20 73 6f 20 6e 6f 20 77 69 6e 64 6f 77 20 74 6f 20 62 65 20 72 65 6c 61 74 69 Window.so.no.window.to.be.relati
5900 76 65 20 74 6f 2e 20 48 6f 77 65 76 65 72 2c 20 65 76 65 6e 20 69 66 20 77 65 20 72 65 61 64 20 ve.to..However,.even.if.we.read.
5920 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 76 61 6c 75 the..............////.......valu
5940 65 73 20 69 6e 20 4f 6e 47 55 49 28 29 2c 20 74 68 65 20 72 65 73 75 6c 74 20 77 6f 75 6c 64 20 es.in.OnGUI(),.the.result.would.
5960 61 6c 77 61 79 73 20 62 65 20 72 65 6c 61 74 69 76 65 20 74 6f 20 74 68 65 20 64 65 62 75 67 67 always.be.relative.to.the.debugg
5980 65 72 20 77 69 6e 64 6f 77 20 28 74 68 61 74 27 64 20 70 72 6f 62 61 62 6c 79 20 62 65 20 66 69 er.window.(that'd.probably.be.fi
59a0 6e 65 29 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 49 6e 70 75 74 53 74 61 ne).................if.(InputSta
59c0 74 65 2e 63 75 72 72 65 6e 74 55 70 64 61 74 65 54 79 70 65 20 21 3d 20 49 6e 70 75 74 53 79 73 te.currentUpdateType.!=.InputSys
59e0 74 65 6d 2e 73 5f 4d 61 6e 61 67 65 72 2e 64 65 66 61 75 6c 74 55 70 64 61 74 65 54 79 70 65 29 tem.s_Manager.defaultUpdateType)
5a00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 ..................return;.......
5a20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 54 72 65 65 3f 2e 52 65 66 72 65 73 68 43 6f 6e .......m_ControlTree?.RefreshCon
5a40 74 72 6f 6c 56 61 6c 75 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 70 61 69 trolValues();..............Repai
5a60 6e 74 28 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 nt();..........}............priv
5a80 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 20 20 20 20 ate.static.class.Styles.........
5aa0 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 73 74 .{..............public.static.st
5ac0 72 69 6e 67 20 6e 6f 74 46 6f 75 6e 64 48 65 6c 70 54 65 78 74 20 3d 20 22 44 65 76 69 63 65 20 ring.notFoundHelpText.=."Device.
5ae0 63 6f 75 6c 64 20 6e 6f 74 20 62 65 20 66 6f 75 6e 64 2e 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 could.not.be.found.";...........
5b00 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 53 74 79 6c 65 20 74 6f 6f 6c .....public.static.GUIStyle.tool
5b20 62 61 72 54 65 78 74 46 69 65 6c 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 barTextField;..............publi
5b40 63 20 73 74 61 74 69 63 20 47 55 49 53 74 79 6c 65 20 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 3b c.static.GUIStyle.toolbarButton;
5b60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 53 74 79 6c 65 73 28 29 0d ................static.Styles().
5b80 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 20 .............{..................
5ba0 74 6f 6f 6c 62 61 72 54 65 78 74 46 69 65 6c 64 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 28 toolbarTextField.=.new.GUIStyle(
5bc0 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 74 6f 6f 6c 62 61 72 54 65 78 74 46 69 65 6c 64 29 3b 0d EditorStyles.toolbarTextField);.
5be0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 6f 6c 62 61 72 54 65 78 74 46 69 65 6c .................toolbarTextFiel
5c00 64 2e 61 6c 69 67 6e 6d 65 6e 74 20 3d 20 54 65 78 74 41 6e 63 68 6f 72 2e 4d 69 64 64 6c 65 52 d.alignment.=.TextAnchor.MiddleR
5c20 69 67 68 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 6f 6c 62 61 72 ight;....................toolbar
5c40 42 75 74 74 6f 6e 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 28 45 64 69 74 6f 72 53 74 79 6c Button.=.new.GUIStyle(EditorStyl
5c60 65 73 2e 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 es.toolbarButton);..............
5c80 20 20 20 20 74 6f 6f 6c 62 61 72 42 75 74 74 6f 6e 2e 61 6c 69 67 6e 6d 65 6e 74 20 3d 20 54 65 ....toolbarButton.alignment.=.Te
5ca0 78 74 41 6e 63 68 6f 72 2e 4d 69 64 64 6c 65 43 65 6e 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 xtAnchor.MiddleCenter;..........
5cc0 20 20 20 20 7d 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
5ce0 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.......
5d00 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.
5d20 47 55 49 43 6f 6e 74 65 6e 74 20 63 6c 65 61 72 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 GUIContent.clearContent.=.new.GU
5d40 49 43 6f 6e 74 65 6e 74 28 22 43 6c 65 61 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 IContent("Clear");..............
5d60 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 70 61 75 73 65 43 6f public.static.GUIContent.pauseCo
5d80 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 50 61 75 73 65 22 29 3b ntent.=.new.GUIContent("Pause");
5da0 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
5dc0 6f 6e 74 65 6e 74 20 73 61 76 65 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 ontent.saveContent.=.new.GUICont
5de0 65 6e 74 28 22 53 61 76 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ent("Save");..............public
5e00 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 6c 6f 61 64 43 6f 6e 74 65 6e 74 20 3d .static.GUIContent.loadContent.=
5e20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 6f 61 64 22 29 3b 0d 0a 20 20 20 20 20 20 .new.GUIContent("Load");........
5e40 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 72 ......public.static.GUIContent.r
5e60 65 63 6f 72 64 46 72 61 6d 65 73 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 ecordFramesContent.=.new.GUICont
5e80 65 6e 74 28 22 52 65 63 6f 72 64 20 46 72 61 6d 65 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ent("Record.Frames");...........
5ea0 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 74 61 74 ...public.static.GUIContent.stat
5ec0 65 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 22 53 74 61 74 65 eContent.=.new.GUIContent("State
5ee0 22 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 76 6f 69 64 20 49 ");..........}............void.I
5f00 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 43 61 6c 6c 62 61 63 6b 52 65 63 65 69 76 65 72 2e 4f 6e SerializationCallbackReceiver.On
5f20 42 65 66 6f 72 65 53 65 72 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 BeforeSerialize()..........{....
5f40 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 49 53 65 72 69 61 6c 69 ......}............void.ISeriali
5f60 7a 61 74 69 6f 6e 43 61 6c 6c 62 61 63 6b 52 65 63 65 69 76 65 72 2e 4f 6e 41 66 74 65 72 44 65 zationCallbackReceiver.OnAfterDe
5f80 73 65 72 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 serialize()..........{..........
5fa0 20 20 20 20 41 64 64 54 6f 4c 69 73 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 ....AddToList();..........}.....
5fc0 20 7d 0d 0a 7d 0d 0a 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 .}..}....#endif.//.UNITY_EDITOR.
5fe0 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 19 00 00 00 49 6e 70 75 ............................Inpu
6000 74 44 65 76 69 63 65 44 65 62 75 67 67 65 72 57 69 6e 64 6f 77 00 00 00 1e 00 00 00 55 6e 69 74 tDeviceDebuggerWindow.......Unit
6020 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 00 00 yEngine.InputSystem.Editor..