summaryrefslogtreecommitdiff
path: root/Library/Artifacts/62/62dc95967a24b137776b3afa9bf659ac
blob: 5480f35920c51f5d7ca763a4754bb654eccb9d30 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 80 34 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe .......4............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 d4 6f 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 11 00 00 00 50 6c 61 79 65 72 49 6e 70 75 74 45 64 69 74 6f 72 00 00 00 ............PlayerInputEditor...
10a0 3f 6f 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 69 6e 67 20 53 79 73 74 ?o..#if.UNITY_EDITOR..using.Syst
10c0 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 em;..using.System.Collections.Ge
10e0 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0d 0a 75 73 69 6e 67 20 neric;..using.System.IO;..using.
1100 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 54 65 78 74 3b System.Linq;..using.System.Text;
1120 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 69 74 ..using.UnityEditor;..using.Unit
1140 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 73 65 72 73 3b 0d 0a 75 73 69 6e yEngine.InputSystem.Users;..usin
1160 67 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 55 74 69 6c 69 74 g.UnityEngine.InputSystem.Utilit
1180 69 65 73 3b 0d 0a 0d 0a 23 69 66 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d 5f 45 ies;....#if.UNITY_INPUT_SYSTEM_E
11a0 4e 41 42 4c 45 5f 55 49 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 NABLE_UI..using.UnityEngine.Inpu
11c0 74 53 79 73 74 65 6d 2e 55 49 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 tSystem.UI;..using.UnityEngine.I
11e0 6e 70 75 74 53 79 73 74 65 6d 2e 55 49 2e 45 64 69 74 6f 72 3b 0d 0a 23 65 6e 64 69 66 0d 0a 0d nputSystem.UI.Editor;..#endif...
1200 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 64 65 74 65 63 74 20 69 66 20 6e 65 77 20 69 6e 70 75 74 20 73 .////TODO:.detect.if.new.input.s
1220 79 73 74 65 6d 20 69 73 6e 27 74 20 65 6e 61 62 6c 65 64 20 61 6e 64 20 70 72 6f 76 69 64 65 20 ystem.isn't.enabled.and.provide.
1240 55 49 20 74 6f 20 65 6e 61 62 6c 65 20 69 74 0d 0a 23 70 72 61 67 6d 61 20 77 61 72 6e 69 6e 67 UI.to.enable.it..#pragma.warning
1260 20 64 69 73 61 62 6c 65 20 30 34 31 34 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e .disable.0414..namespace.UnityEn
1280 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 20 20 20 gine.InputSystem.Editor..{......
12a0 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 20 63 75 73 74 6f 6d 20 ///.<summary>......///.A.custom.
12c0 69 6e 73 70 65 63 74 6f 72 20 66 6f 72 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 50 6c 61 inspector.for.the.<see.cref="Pla
12e0 79 65 72 49 6e 70 75 74 22 2f 3e 20 63 6f 6d 70 6f 6e 65 6e 74 2e 0d 0a 20 20 20 20 2f 2f 2f 20 yerInput"/>.component.......///.
1300 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 5b 43 75 73 74 6f 6d 45 64 69 74 6f 72 28 74 79 </summary>......[CustomEditor(ty
1320 70 65 6f 66 28 50 6c 61 79 65 72 49 6e 70 75 74 29 29 5d 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 peof(PlayerInput))]......interna
1340 6c 20 63 6c 61 73 73 20 50 6c 61 79 65 72 49 6e 70 75 74 45 64 69 74 6f 72 20 3a 20 55 6e 69 74 l.class.PlayerInputEditor.:.Unit
1360 79 45 64 69 74 6f 72 2e 45 64 69 74 6f 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 yEditor.Editor......{..........p
1380 75 62 6c 69 63 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 44 65 66 61 75 6c 74 49 6e 70 75 74 ublic.const.string.kDefaultInput
13a0 41 63 74 69 6f 6e 73 41 73 73 65 74 50 61 74 68 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ActionsAssetPath.=..............
13c0 22 50 61 63 6b 61 67 65 73 2f 63 6f 6d 2e 75 6e 69 74 79 2e 69 6e 70 75 74 73 79 73 74 65 6d 2f "Packages/com.unity.inputsystem/
13e0 49 6e 70 75 74 53 79 73 74 65 6d 2f 50 6c 75 67 69 6e 73 2f 50 6c 61 79 65 72 49 6e 70 75 74 2f InputSystem/Plugins/PlayerInput/
1400 44 65 66 61 75 6c 74 49 6e 70 75 74 41 63 74 69 6f 6e 73 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 DefaultInputActions.inputactions
1420 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 45 6e 61 62 ";............public.void.OnEnab
1440 6c 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 49 6e 70 le()..........{..............Inp
1460 75 74 41 63 74 69 6f 6e 49 6d 70 6f 72 74 65 72 2e 6f 6e 49 6d 70 6f 72 74 20 2b 3d 20 52 65 66 utActionImporter.onImport.+=.Ref
1480 72 65 73 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 55 73 65 72 2e 6f 6e 43 resh;..............InputUser.onC
14a0 68 61 6e 67 65 20 2b 3d 20 4f 6e 55 73 65 72 43 68 61 6e 67 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 hange.+=.OnUserChange;..........
14c0 20 20 20 20 20 20 2f 2f 20 4c 6f 6f 6b 20 75 70 20 70 72 6f 70 65 72 74 69 65 73 2e 0d 0a 20 20 ......//.Look.up.properties.....
14e0 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 20 3d 20 73 65 ..........m_ActionsProperty.=.se
1500 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 rializedObject.FindProperty("m_A
1520 63 74 69 6f 6e 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 66 61 75 6c 74 ctions");..............m_Default
1540 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a ControlSchemeProperty.=.serializ
1560 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 44 65 66 61 75 6c 74 edObject.FindProperty("m_Default
1580 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f ControlScheme");..............m_
15a0 4e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 50 72 6f NeverAutoSwitchControlSchemesPro
15c0 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f perty.=.serializedObject.FindPro
15e0 70 65 72 74 79 28 22 6d 5f 4e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 43 6f 6e 74 72 6f 6c 53 perty("m_NeverAutoSwitchControlS
1600 63 68 65 6d 65 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 66 61 75 6c 74 chemes");..............m_Default
1620 41 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 ActionMapProperty.=.serializedOb
1640 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 44 65 66 61 75 6c 74 41 63 74 69 ject.FindProperty("m_DefaultActi
1660 6f 6e 4d 61 70 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4e 6f 74 69 66 69 63 61 onMap");..............m_Notifica
1680 74 69 6f 6e 42 65 68 61 76 69 6f 72 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 tionBehaviorProperty.=.serialize
16a0 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 4e 6f 74 69 66 69 63 61 dObject.FindProperty("m_Notifica
16c0 74 69 6f 6e 42 65 68 61 76 69 6f 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 tionBehavior");..............m_C
16e0 61 6d 65 72 61 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 ameraProperty.=.serializedObject
1700 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 43 61 6d 65 72 61 22 29 3b 0d 0a 20 20 20 20 .FindProperty("m_Camera");......
1720 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 45 76 65 6e 74 73 50 72 6f 70 65 72 74 79 20 3d ........m_ActionEventsProperty.=
1740 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 .serializedObject.FindProperty("
1760 6d 5f 41 63 74 69 6f 6e 45 76 65 6e 74 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d m_ActionEvents");..............m
1780 5f 44 65 76 69 63 65 4c 6f 73 74 45 76 65 6e 74 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 _DeviceLostEventProperty.=.seria
17a0 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 44 65 76 69 lizedObject.FindProperty("m_Devi
17c0 63 65 4c 6f 73 74 45 76 65 6e 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 ceLostEvent");..............m_De
17e0 76 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 viceRegainedEventProperty.=.seri
1800 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 44 65 76 alizedObject.FindProperty("m_Dev
1820 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 iceRegainedEvent");.............
1840 20 6d 5f 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 20 .m_ControlsChangedEventProperty.
1860 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 =.serializedObject.FindProperty(
1880 22 6d 5f 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 45 76 65 6e 74 22 29 3b 0d 0a 0d 0a 20 20 "m_ControlsChangedEvent");......
18a0 20 20 20 20 20 20 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d ..........#if.UNITY_INPUT_SYSTEM
18c0 5f 45 4e 41 42 4c 45 5f 55 49 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 55 49 49 6e 70 75 _ENABLE_UI..............m_UIInpu
18e0 74 4d 6f 64 75 6c 65 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 tModuleProperty.=.serializedObje
1900 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 ct.FindProperty("m_UIInputModule
1920 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 20 20 20 ");..............#endif.........
1940 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 44 65 73 74 .}............public.void.OnDest
1960 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 20 20 20 20 49 6e roy()..........{..............In
1980 70 75 74 41 63 74 69 6f 6e 49 6d 70 6f 72 74 65 72 2e 6f 6e 49 6d 70 6f 72 74 20 2d 3d 20 52 65 putActionImporter.onImport.-=.Re
19a0 66 72 65 73 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 55 73 65 72 2e 6f 6e fresh;..............InputUser.on
19c0 43 68 61 6e 67 65 20 2d 3d 20 4f 6e 55 73 65 72 43 68 61 6e 67 65 3b 0d 0a 20 20 20 20 20 20 20 Change.-=.OnUserChange;.........
19e0 20 7d 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 52 65 66 72 65 .}............private.void.Refre
1a00 73 68 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 2f 2f 2f sh()..........{..............///
1a20 2f 46 49 58 4d 45 3a 20 64 6f 65 73 6e 27 74 20 73 65 65 6d 20 6c 69 6b 65 20 77 65 27 72 65 20 /FIXME:.doesn't.seem.like.we're.
1a40 70 69 63 6b 69 6e 67 20 75 70 20 74 68 65 20 72 65 73 75 6c 74 73 20 6f 66 20 74 68 65 20 6c 61 picking.up.the.results.of.the.la
1a60 74 65 73 74 20 69 6d 70 6f 72 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f test.import..............m_Actio
1a80 6e 41 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 nAssetInitialized.=.false;......
1aa0 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 7d 0d 0a 0d ........Repaint();..........}...
1ac0 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 55 73 65 72 43 68 61 6e .........private.void.OnUserChan
1ae0 67 65 28 49 6e 70 75 74 55 73 65 72 20 75 73 65 72 2c 20 49 6e 70 75 74 55 73 65 72 43 68 61 6e ge(InputUser.user,.InputUserChan
1b00 67 65 20 63 68 61 6e 67 65 2c 20 49 6e 70 75 74 44 65 76 69 63 65 20 64 65 76 69 63 65 29 0d 0a ge.change,.InputDevice.device)..
1b20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 70 61 69 6e 74 28 29 ........{..............Repaint()
1b40 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f ;..........}............public.o
1b60 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 49 6e 73 70 65 63 74 6f 72 47 55 49 28 29 0d 0a 20 verride.void.OnInspectorGUI()...
1b80 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e .......{..............EditorGUI.
1ba0 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 BeginChangeCheck();.............
1bc0 20 20 20 2f 2f 20 41 63 74 69 6f 6e 20 63 6f 6e 66 69 67 20 73 65 63 74 69 6f 6e 2e 0d 0a 20 20 ...//.Action.config.section.....
1be0 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 ..........EditorGUI.BeginChangeC
1c00 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 heck();..............EditorGUILa
1c20 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 yout.PropertyField(m_ActionsProp
1c40 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 erty);..............if.(EditorGU
1c60 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 21 6d 5f 41 63 74 69 6f 6e 41 I.EndChangeCheck().||.!m_ActionA
1c80 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ssetInitialized)................
1ca0 20 20 4f 6e 41 63 74 69 6f 6e 41 73 73 65 74 43 68 61 6e 67 65 28 29 3b 0d 0a 20 20 20 20 20 20 ..OnActionAssetChange();........
1cc0 20 20 20 20 20 20 2b 2b 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a ......++EditorGUI.indentLevel;..
1ce0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f ............if.(m_ControlSchemeO
1d00 70 74 69 6f 6e 73 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d ptions.!=.null.&&.m_ControlSchem
1d20 65 4f 70 74 69 6f 6e 73 2e 4c 65 6e 67 74 68 20 3e 20 31 29 20 2f 2f 20 44 6f 6e 27 74 20 73 68 eOptions.Length.>.1).//.Don't.sh
1d40 6f 77 20 69 66 20 3c 41 6e 79 3e 20 69 73 20 74 68 65 20 6f 6e 6c 79 20 6f 70 74 69 6f 6e 2e 0d ow.if.<Any>.is.the.only.option..
1d60 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 .............{..................
1d80 2f 2f 20 44 65 66 61 75 6c 74 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 70 69 63 6b 65 72 //.Default.control.scheme.picker
1da0 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 65 .....................var.selecte
1dc0 64 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 6f 70 75 70 28 6d 5f 44 65 66 61 d.=.EditorGUILayout.Popup(m_Defa
1de0 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 54 65 78 74 2c 20 6d 5f 53 65 6c 65 63 74 65 64 ultControlSchemeText,.m_Selected
1e00 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 DefaultControlScheme,...........
1e20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 69 6f 6e ...........m_ControlSchemeOption
1e40 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 s);..................if.(selecte
1e60 64 20 21 3d 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 d.!=.m_SelectedDefaultControlSch
1e80 65 6d 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 eme)..................{.........
1ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 64 20 3d 3d 20 30 29 0d .............if.(selected.==.0).
1ec0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .....................{..........
1ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c ................m_DefaultControl
1f00 53 63 68 65 6d 65 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 20 3d 20 6e 75 6c SchemeProperty.stringValue.=.nul
1f20 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 l;......................}.......
1f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ...............else.............
1f60 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
1f80 20 20 20 20 6d 5f 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 72 ....m_DefaultControlSchemeProper
1fa0 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty.stringValue.=................
1fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 ..............m_ControlSchemeOpt
1fe0 69 6f 6e 73 5b 73 65 6c 65 63 74 65 64 5d 2e 74 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ions[selected].text;............
2000 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........}.....................
2020 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 .m_SelectedDefaultControlScheme.
2040 3d 20 73 65 6c 65 63 74 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a =.selected;..................}..
2060 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 76 65 72 41 75 74 6f 53 ..................var.neverAutoS
2080 77 69 74 63 68 56 61 6c 75 65 4f 6c 64 20 3d 20 6d 5f 4e 65 76 65 72 41 75 74 6f 53 77 69 74 63 witchValueOld.=.m_NeverAutoSwitc
20a0 68 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 50 72 6f 70 65 72 74 79 2e 62 6f 6f 6c 56 61 6c 75 hControlSchemesProperty.boolValu
20c0 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 76 65 72 41 75 74 e;..................var.neverAut
20e0 6f 53 77 69 74 63 68 56 61 6c 75 65 4e 65 77 20 3d 20 21 45 64 69 74 6f 72 47 55 49 4c 61 79 6f oSwitchValueNew.=.!EditorGUILayo
2100 75 74 2e 54 6f 67 67 6c 65 28 6d 5f 41 75 74 6f 53 77 69 74 63 68 54 65 78 74 2c 20 21 6e 65 76 ut.Toggle(m_AutoSwitchText,.!nev
2120 65 72 41 75 74 6f 53 77 69 74 63 68 56 61 6c 75 65 4f 6c 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 erAutoSwitchValueOld);..........
2140 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 56 61 6c 75 65 ........if.(neverAutoSwitchValue
2160 4f 6c 64 20 21 3d 20 6e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 56 61 6c 75 65 4e 65 77 29 0d Old.!=.neverAutoSwitchValueNew).
2180 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 .................{..............
21a0 20 20 20 20 20 20 20 20 6d 5f 4e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 43 6f 6e 74 72 6f 6c ........m_NeverAutoSwitchControl
21c0 53 63 68 65 6d 65 73 50 72 6f 70 65 72 74 79 2e 62 6f 6f 6c 56 61 6c 75 65 20 3d 20 6e 65 76 65 SchemesProperty.boolValue.=.neve
21e0 72 41 75 74 6f 53 77 69 74 63 68 56 61 6c 75 65 4e 65 77 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 rAutoSwitchValueNew;............
2200 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 ..........serializedObject.Apply
2220 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ModifiedProperties();...........
2240 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 .......}..............}.........
2260 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 20 21 3d 20 6e .....if.(m_ActionMapOptions.!=.n
2280 75 6c 6c 20 26 26 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 2e 4c 65 6e 67 74 68 ull.&&.m_ActionMapOptions.Length
22a0 20 3e 20 30 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 .>.0)..............{............
22c0 20 20 20 20 20 20 2f 2f 20 44 65 66 61 75 6c 74 20 61 63 74 69 6f 6e 20 6d 61 70 20 70 69 63 6b ......//.Default.action.map.pick
22e0 65 72 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 er.....................var.selec
2300 74 65 64 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 6f 70 75 70 28 6d 5f 44 65 ted.=.EditorGUILayout.Popup(m_De
2320 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 54 65 78 74 2c 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 faultActionMapText,.m_SelectedDe
2340 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 faultActionMap,.................
2360 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 .....m_ActionMapOptions);.......
2380 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 64 20 21 3d 20 6d 5f 53 65 6c ...........if.(selected.!=.m_Sel
23a0 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 29 0d 0a 20 20 20 20 20 20 20 20 ectedDefaultActionMap)..........
23c0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ........{......................i
23e0 66 20 28 73 65 6c 65 63 74 65 64 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 f.(selected.==.0)...............
2400 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......{........................
2420 20 20 6d 5f 44 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2e 73 74 72 ..m_DefaultActionMapProperty.str
2440 69 6e 67 56 61 6c 75 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ingValue.=.null;................
2460 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 ......}......................els
2480 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 e......................{........
24a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 73 65 20 49 44 20 72 61 74 68 ..................//.Use.ID.rath
24c0 65 72 20 74 68 61 6e 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 er.than.name....................
24e0 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 .......var.asset.=.(InputActionA
2500 73 73 65 74 29 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 sset)m_ActionsProperty.objectRef
2520 65 72 65 6e 63 65 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 erenceValue;....................
2540 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 61 73 73 65 74 2e 46 69 6e 64 ......var.actionMap.=.asset.Find
2560 41 63 74 69 6f 6e 4d 61 70 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 5b 73 65 6c ActionMap(m_ActionMapOptions[sel
2580 65 63 74 65 64 5d 2e 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ected].text);...................
25a0 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 .......if.(actionMap.!=.null)...
25c0 20 20 20 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 44 65 66 ...........................m_Def
25e0 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 aultActionMapProperty.stringValu
2600 65 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 e.=.actionMap.id.ToString();....
2620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
2640 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e .........m_SelectedDefaultAction
2660 4d 61 70 20 3d 20 73 65 6c 65 63 74 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Map.=.selected;.................
2680 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2d .}..............}..............-
26a0 2d 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 -EditorGUI.indentLevel;.........
26c0 20 20 20 20 20 44 6f 48 65 6c 70 43 72 65 61 74 65 41 73 73 65 74 55 49 28 29 3b 0d 0a 0d 0a 20 .....DoHelpCreateAssetUI();.....
26e0 20 20 20 20 20 20 20 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 ...........#if.UNITY_INPUT_SYSTE
2700 4d 5f 45 4e 41 42 4c 45 5f 55 49 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 49 20 63 M_ENABLE_UI..............//.UI.c
2720 6f 6e 66 69 67 20 73 65 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 onfig.section...............if.(
2740 6d 5f 55 49 50 72 6f 70 65 72 74 79 54 65 78 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 m_UIPropertyText.==.null).......
2760 20 20 20 20 20 20 20 20 20 20 20 6d 5f 55 49 50 72 6f 70 65 72 74 79 54 65 78 74 20 3d 20 45 64 ...........m_UIPropertyText.=.Ed
2780 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 55 49 itorGUIUtility.TrTextContent("UI
27a0 20 49 6e 70 75 74 20 4d 6f 64 75 6c 65 22 2c 20 6d 5f 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 50 .Input.Module",.m_UIInputModuleP
27c0 72 6f 70 65 72 74 79 2e 74 6f 6f 6c 74 69 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 roperty.tooltip);..............E
27e0 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 ditorGUI.BeginChangeCheck();....
2800 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 ..........EditorGUILayout.Proper
2820 74 79 46 69 65 6c 64 28 6d 5f 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 50 72 6f 70 65 72 74 79 2c tyField(m_UIInputModuleProperty,
2840 20 6d 5f 55 49 50 72 6f 70 65 72 74 79 54 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .m_UIPropertyText);.............
2860 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 .if.(EditorGUI.EndChangeCheck())
2880 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 ..................serializedObje
28a0 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d ct.ApplyModifiedProperties();...
28c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 .............if.(m_UIInputModule
28e0 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 21 3d Property.objectReferenceValue.!=
2900 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)..............{...........
2920 20 20 20 20 20 20 20 76 61 72 20 75 69 4d 6f 64 75 6c 65 20 3d 20 6d 5f 55 49 49 6e 70 75 74 4d .......var.uiModule.=.m_UIInputM
2940 6f 64 75 6c 65 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c oduleProperty.objectReferenceVal
2960 75 65 20 61 73 20 49 6e 70 75 74 53 79 73 74 65 6d 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 3b 0d ue.as.InputSystemUIInputModule;.
2980 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 73 50 72 .................if.(m_ActionsPr
29a0 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 21 3d 20 6e operty.objectReferenceValue.!=.n
29c0 75 6c 6c 20 26 26 20 75 69 4d 6f 64 75 6c 65 2e 61 63 74 69 6f 6e 73 41 73 73 65 74 20 21 3d 20 ull.&&.uiModule.actionsAsset.!=.
29e0 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 m_ActionsProperty.objectReferenc
2a00 65 56 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 eValue)..................{......
2a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e ................EditorGUILayout.
2a40 48 65 6c 70 42 6f 78 28 22 54 68 65 20 72 65 66 65 72 65 6e 63 65 64 20 49 6e 70 75 74 53 79 73 HelpBox("The.referenced.InputSys
2a60 74 65 6d 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 20 69 73 20 63 6f 6e 66 69 67 75 72 65 64 20 75 temUIInputModule.is.configured.u
2a80 73 69 6e 67 20 64 69 66 66 65 72 65 6e 74 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 73 20 74 68 65 sing.different.input.actions.the
2aa0 6e 20 74 68 69 73 20 50 6c 61 79 65 72 49 6e 70 75 74 2e 20 54 68 65 79 20 73 68 6f 75 6c 64 20 n.this.PlayerInput..They.should.
2ac0 6d 61 74 63 68 20 69 66 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 73 79 6e 63 68 72 6f 6e 69 7a 65 match.if.you.want.to.synchronize
2ae0 20 50 6c 61 79 65 72 49 6e 70 75 74 20 61 63 74 69 6f 6e 73 20 74 6f 20 74 68 65 20 55 49 20 69 .PlayerInput.actions.to.the.UI.i
2b00 6e 70 75 74 2e 22 2c 20 4d 65 73 73 61 67 65 54 79 70 65 2e 57 61 72 6e 69 6e 67 29 3b 0d 0a 20 nput.",.MessageType.Warning);...
2b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 ...................if.(GUILayout
2b40 2e 42 75 74 74 6f 6e 28 6d 5f 46 69 78 49 6e 70 75 74 4d 6f 64 75 6c 65 54 65 78 74 29 29 0d 0a .Button(m_FixInputModuleText))..
2b60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 79 73 ........................InputSys
2b80 74 65 6d 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 45 64 69 74 6f 72 2e 52 65 61 73 73 69 67 6e 41 temUIInputModuleEditor.ReassignA
2ba0 63 74 69 6f 6e 73 28 75 69 4d 6f 64 75 6c 65 2c 20 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 ctions(uiModule,.m_ActionsProper
2bc0 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 61 73 20 49 6e 70 75 74 ty.objectReferenceValue.as.Input
2be0 41 63 74 69 6f 6e 41 73 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ActionAsset);..................}
2c00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e ..............}..............#en
2c20 64 69 66 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 61 6d 65 72 61 20 73 65 63 dif................//.Camera.sec
2c40 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 61 6d 65 72 61 50 tion...............if.(m_CameraP
2c60 72 6f 70 65 72 74 79 54 65 78 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ropertyText.==.null)............
2c80 20 20 20 20 20 20 6d 5f 43 61 6d 65 72 61 50 72 6f 70 65 72 74 79 54 65 78 74 20 3d 20 45 64 69 ......m_CameraPropertyText.=.Edi
2ca0 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 43 61 6d torGUIUtility.TrTextContent("Cam
2cc0 65 72 61 22 2c 20 6d 5f 43 61 6d 65 72 61 50 72 6f 70 65 72 74 79 2e 74 6f 6f 6c 74 69 70 29 3b era",.m_CameraProperty.tooltip);
2ce0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 ..............EditorGUI.BeginCha
2d00 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ngeCheck();..............EditorG
2d20 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 43 61 6d 65 72 61 50 UILayout.PropertyField(m_CameraP
2d40 72 6f 70 65 72 74 79 2c 20 6d 5f 43 61 6d 65 72 61 50 72 6f 70 65 72 74 79 54 65 78 74 29 3b 0d roperty,.m_CameraPropertyText);.
2d60 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 .............if.(EditorGUI.EndCh
2d80 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 angeCheck())..................se
2da0 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 rializedObject.ApplyModifiedProp
2dc0 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 74 69 erties();................//.Noti
2de0 66 69 63 61 74 69 6f 6e 73 2f 65 76 65 6e 74 20 73 65 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 fications/event.section.........
2e00 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b ......EditorGUI.BeginChangeCheck
2e20 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 ();..............EditorGUILayout
2e40 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 .PropertyField(m_NotificationBeh
2e60 61 76 69 6f 72 50 72 6f 70 65 72 74 79 2c 20 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 aviorProperty,.m_NotificationBeh
2e80 61 76 69 6f 72 54 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 aviorText);..............if.(Edi
2ea0 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 21 6d 5f 4e 6f torGUI.EndChangeCheck().||.!m_No
2ec0 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 49 6e 69 74 69 61 6c 69 7a 65 64 29 0d 0a tificationBehaviorInitialized)..
2ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 6e 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 ................OnNotificationBe
2f00 68 61 76 69 6f 72 43 68 61 6e 67 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 haviorChange();..............swi
2f20 74 63 68 20 28 28 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 29 6d 5f 4e 6f 74 69 tch.((PlayerNotifications)m_Noti
2f40 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 50 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 6c 75 ficationBehaviorProperty.intValu
2f60 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 e)..............{...............
2f80 20 20 20 63 61 73 65 20 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 53 65 6e 64 ...case.PlayerNotifications.Send
2fa0 4d 65 73 73 61 67 65 73 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 Messages:..................case.
2fc0 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 42 72 6f 61 64 63 61 73 74 4d 65 73 PlayerNotifications.BroadcastMes
2fe0 73 61 67 65 73 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 sages:......................Debu
3000 67 2e 41 73 73 65 72 74 28 6d 5f 53 65 6e 64 4d 65 73 73 61 67 65 73 48 65 6c 70 54 65 78 74 20 g.Assert(m_SendMessagesHelpText.
3020 21 3d 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 !=.null);......................E
3040 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 6d 5f 53 65 6e 64 4d 65 73 ditorGUILayout.HelpBox(m_SendMes
3060 73 61 67 65 73 48 65 6c 70 54 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 sagesHelpText);.................
3080 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 .....break;....................c
30a0 61 73 65 20 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 49 6e 76 6f 6b 65 55 6e ase.PlayerNotifications.InvokeUn
30c0 69 74 79 45 76 65 6e 74 73 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ityEvents:......................
30e0 6d 5f 45 76 65 6e 74 73 47 72 6f 75 70 55 6e 66 6f 6c 64 65 64 20 3d 20 45 64 69 74 6f 72 47 55 m_EventsGroupUnfolded.=.EditorGU
3100 49 4c 61 79 6f 75 74 2e 46 6f 6c 64 6f 75 74 28 6d 5f 45 76 65 6e 74 73 47 72 6f 75 70 55 6e 66 ILayout.Foldout(m_EventsGroupUnf
3120 6f 6c 64 65 64 2c 20 6d 5f 45 76 65 6e 74 73 47 72 6f 75 70 54 65 78 74 2c 20 74 6f 67 67 6c 65 olded,.m_EventsGroupText,.toggle
3140 4f 6e 4c 61 62 65 6c 43 6c 69 63 6b 3a 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 OnLabelClick:.true);............
3160 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 45 76 65 6e 74 73 47 72 6f 75 70 55 6e 66 6f 6c ..........if.(m_EventsGroupUnfol
3180 64 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ded)......................{.....
31a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 63 74 69 6f 6e 20 65 .....................//.Action.e
31c0 76 65 6e 74 73 2e 20 47 72 6f 75 70 20 62 79 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 vents..Group.by.action.map......
31e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f .....................if.(m_Actio
3200 6e 4e 61 6d 65 73 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 nNames.!=.null).................
3220 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
3240 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 49 6e 64 ........using.(new.EditorGUI.Ind
3260 65 6e 74 4c 65 76 65 6c 53 63 6f 70 65 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 entLevelScope())................
3280 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 ..............{.................
32a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 6e 20 3d 20 30 3b .................for.(var.n.=.0;
32c0 20 6e 20 3c 20 6d 5f 4e 75 6d 41 63 74 69 6f 6e 4d 61 70 73 3b 20 2b 2b 6e 29 0d 0a 20 20 20 20 .n.<.m_NumActionMaps;.++n)......
32e0 20 20 20 20 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 ............................{...
3300 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
3320 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 45 76 65 6e 74 73 55 6e 66 6f 6c 64 65 64 5b 6e 5d 20 ...m_ActionMapEventsUnfolded[n].
3340 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 46 6f 6c 64 6f 75 74 28 6d 5f 41 63 74 69 =.EditorGUILayout.Foldout(m_Acti
3360 6f 6e 4d 61 70 45 76 65 6e 74 73 55 6e 66 6f 6c 64 65 64 5b 6e 5d 2c 0d 0a 20 20 20 20 20 20 20 onMapEventsUnfolded[n],.........
3380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
33a0 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4e 61 6d 65 73 5b 6e 5d 2c 20 74 6f 67 67 6c 65 4f 6e 4c 61 .m_ActionMapNames[n],.toggleOnLa
33c0 62 65 6c 43 6c 69 63 6b 3a 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 belClick:.true);................
33e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 ......................using.(new
3400 20 45 64 69 74 6f 72 47 55 49 2e 49 6e 64 65 6e 74 4c 65 76 65 6c 53 63 6f 70 65 28 29 29 0d 0a .EditorGUI.IndentLevelScope())..
3420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
3440 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ....{...........................
3460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 45 76 ...............if.(m_ActionMapEv
3480 65 6e 74 73 55 6e 66 6f 6c 64 65 64 5b 6e 5d 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 entsUnfolded[n])................
34a0 20 20 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 ..........................{.....
34c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
34e0 20 20 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 6d 5f 41 .........for.(var.i.=.0;.i.<.m_A
3500 63 74 69 6f 6e 4e 61 6d 65 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 ctionNames.Length;.++i).........
3520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
3540 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 .....{..........................
3560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 ........................if.(m_Ac
3580 74 69 6f 6e 4d 61 70 49 6e 64 69 63 65 73 5b 69 5d 20 21 3d 20 6e 29 0d 0a 20 20 20 20 20 20 20 tionMapIndices[i].!=.n).........
35a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
35c0 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 .............continue;..........
35e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
3600 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 ..........EditorGUILayout.Proper
3620 74 79 46 69 65 6c 64 28 6d 5f 41 63 74 69 6f 6e 45 76 65 6e 74 73 50 72 6f 70 65 72 74 79 2e 47 tyField(m_ActionEventsProperty.G
3640 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 2c 20 6d 5f 41 63 74 69 etArrayElementAtIndex(i),.m_Acti
3660 6f 6e 4e 61 6d 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 onNames[i]);....................
3680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 ..........................}.....
36a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
36c0 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....}..........................
36e0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............}...................
3700 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 20 20 ...............}................
3720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
3740 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........}......................
3760 20 20 20 20 20 20 2f 2f 20 4d 69 73 63 20 65 76 65 6e 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 ......//.Misc.events............
3780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 ...............EditorGUILayout.P
37a0 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 44 65 76 69 63 65 4c 6f 73 74 45 76 65 6e 74 50 72 ropertyField(m_DeviceLostEventPr
37c0 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 operty);........................
37e0 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 ..EditorGUILayout.PropertyField(
3800 6d 5f 44 65 76 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 29 3b 0d m_DeviceRegainedEventProperty);.
3820 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 45 64 69 74 6f 72 47 .........................EditorG
3840 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 43 6f 6e 74 72 6f 6c UILayout.PropertyField(m_Control
3860 73 43 68 61 6e 67 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 sChangedEventProperty);.........
3880 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............}..................
38a0 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 ....break;..............}.......
38c0 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 69 73 63 65 6c 6c 61 6e 65 6f 75 73 20 62 75 74 74 6f 6e .........//.Miscellaneous.button
38e0 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 55 74 69 6c 69 74 79 42 75 74 74 6f 6e 73 s...............DoUtilityButtons
3900 55 49 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 UI();................if.(EditorG
3920 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 UI.EndChangeCheck())............
3940 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 ......serializedObject.ApplyModi
3960 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 fiedProperties();...............
3980 20 2f 2f 20 44 65 62 75 67 20 55 49 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 .//.Debug.UI...............if.(E
39a0 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 6c 61 79 69 6e 67 29 0d 0a 20 20 20 ditorApplication.isPlaying).....
39c0 20 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 44 65 62 75 67 55 49 28 29 3b 0d 0a 20 20 20 20 20 .............DoDebugUI();.......
39e0 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 69 64 20 44 6f 48 ...}............private.void.DoH
3a00 65 6c 70 43 72 65 61 74 65 41 73 73 65 74 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 elpCreateAssetUI()..........{...
3a20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 ...........if.(m_ActionsProperty
3a40 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a .objectReferenceValue.!=.null)..
3a60 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 2f ............{................../
3a80 2f 20 41 6c 6c 20 67 6f 6f 64 2e 20 57 65 20 61 6c 72 65 61 64 79 20 68 61 76 65 20 61 6e 20 61 /.All.good..We.already.have.an.a
3aa0 73 73 65 74 2e 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 sset...................return;..
3ac0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 ............}................Edi
3ae0 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 22 54 68 65 72 65 20 61 72 65 20 torGUILayout.HelpBox("There.are.
3b00 6e 6f 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 no.input.actions.associated.with
3b20 20 74 68 69 73 20 69 6e 70 75 74 20 63 6f 6d 70 6f 6e 65 6e 74 20 79 65 74 2e 20 43 6c 69 63 6b .this.input.component.yet..Click
3b40 20 74 68 65 20 62 75 74 74 6f 6e 20 62 65 6c 6f 77 20 74 6f 20 63 72 65 61 74 65 20 22 0d 0a 20 .the.button.below.to.create."...
3b60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 22 61 20 6e 65 77 20 73 65 74 20 6f 66 20 69 ...............+."a.new.set.of.i
3b80 6e 70 75 74 20 61 63 74 69 6f 6e 73 20 6f 72 20 64 72 61 67 20 61 6e 20 65 78 69 73 74 69 6e 67 nput.actions.or.drag.an.existing
3ba0 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 73 20 61 73 73 65 74 20 69 6e 74 6f 20 74 68 65 20 66 69 .input.actions.asset.into.the.fi
3bc0 65 6c 64 20 61 62 6f 76 65 2e 22 2c 20 4d 65 73 73 61 67 65 54 79 70 65 2e 49 6e 66 6f 29 3b 0d eld.above.",.MessageType.Info);.
3be0 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 .............EditorGUILayout.Beg
3c00 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 inHorizontal();..............Edi
3c20 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 torGUILayout.Space();...........
3c40 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 6d 5f 43 72 65 61 74 65 ...if.(GUILayout.Button(m_Create
3c60 41 63 74 69 6f 6e 73 54 65 78 74 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6d 69 6e 69 42 75 ActionsText,.EditorStyles.miniBu
3c80 74 74 6f 6e 2c 20 47 55 49 4c 61 79 6f 75 74 2e 4d 61 78 57 69 64 74 68 28 31 32 30 29 29 29 0d tton,.GUILayout.MaxWidth(120))).
3ca0 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 .............{..................
3cc0 2f 2f 20 52 65 71 75 65 73 74 20 73 61 76 65 20 66 69 6c 65 20 6c 6f 63 61 74 69 6f 6e 2e 0d 0a //.Request.save.file.location...
3ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 66 61 75 6c 74 46 69 6c 65 4e ................var.defaultFileN
3d00 61 6d 65 20 3d 20 41 70 70 6c 69 63 61 74 69 6f 6e 2e 70 72 6f 64 75 63 74 4e 61 6d 65 3b 0d 0a ame.=.Application.productName;..
3d20 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 45 ................var.fileName.=.E
3d40 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 6c 28 22 43 72 65 61 ditorUtility.SaveFilePanel("Crea
3d60 74 65 20 49 6e 70 75 74 20 41 63 74 69 6f 6e 73 20 41 73 73 65 74 22 2c 20 22 41 73 73 65 74 73 te.Input.Actions.Asset",."Assets
3d80 22 2c 20 64 65 66 61 75 6c 74 46 69 6c 65 4e 61 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ",.defaultFileName,.............
3da0 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 45 78 74 65 6e 73 .........InputActionAsset.Extens
3dc0 69 6f 6e 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 ion);....................////TOD
3de0 4f 3a 20 74 61 6b 65 20 63 75 72 72 65 6e 74 20 53 75 70 70 6f 72 74 65 64 20 44 65 76 69 63 65 O:.take.current.Supported.Device
3e00 73 20 69 6e 74 6f 20 61 63 63 6f 75 6e 74 20 77 68 65 6e 20 63 72 65 61 74 69 6e 67 20 74 68 69 s.into.account.when.creating.thi
3e20 73 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 61 s....................//.Create.a
3e40 6e 64 20 69 6d 70 6f 72 74 20 61 73 73 65 74 20 61 6e 64 20 6f 70 65 6e 20 65 64 69 74 6f 72 2e nd.import.asset.and.open.editor.
3e60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 ..................if.(!string.Is
3e80 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 66 69 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 NullOrEmpty(fileName))..........
3ea0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ........{......................i
3ec0 66 20 28 21 66 69 6c 65 4e 61 6d 65 2e 53 74 61 72 74 73 57 69 74 68 28 41 70 70 6c 69 63 61 74 f.(!fileName.StartsWith(Applicat
3ee0 69 6f 6e 2e 64 61 74 61 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ion.dataPath))..................
3f00 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 44 ....{..........................D
3f20 65 62 75 67 2e 4c 6f 67 45 72 72 6f 72 28 24 22 50 61 74 68 20 6d 75 73 74 20 62 65 20 6c 6f 63 ebug.LogError($"Path.must.be.loc
3f40 61 74 65 64 20 69 6e 20 41 73 73 65 74 73 2f 20 66 6f 6c 64 65 72 20 28 67 6f 74 3a 20 27 7b 66 ated.in.Assets/.folder.(got:.'{f
3f60 69 6c 65 4e 61 6d 65 7d 27 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ileName}')");...................
3f80 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f .......EditorGUILayout.EndHorizo
3fa0 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ntal();.........................
3fc0 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d .return;......................}.
3fe0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 66 69 6c 65 .......................if.(!file
4000 4e 61 6d 65 2e 45 6e 64 73 57 69 74 68 28 22 2e 22 20 2b 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 Name.EndsWith(".".+.InputActionA
4020 73 73 65 74 2e 45 78 74 65 6e 73 69 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 sset.Extension))................
4040 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 4e 61 6d 65 20 2b 3d 20 22 2e 22 20 2b 20 49 6e 70 75 ..........fileName.+=.".".+.Inpu
4060 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 45 78 74 65 6e 73 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 tActionAsset.Extension;.........
4080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 6f 61 64 20 64 65 66 61 75 6c 74 20 61 ...............//.Load.default.a
40a0 63 74 69 6f 6e 73 20 61 6e 64 20 75 70 64 61 74 65 20 61 6c 6c 20 47 55 49 44 73 2e 0d 0a 20 20 ctions.and.update.all.GUIDs.....
40c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 66 61 75 6c 74 41 63 74 ..................var.defaultAct
40e0 69 6f 6e 73 54 65 78 74 20 3d 20 46 69 6c 65 2e 52 65 61 64 41 6c 6c 54 65 78 74 28 6b 44 65 66 ionsText.=.File.ReadAllText(kDef
4100 61 75 6c 74 49 6e 70 75 74 41 63 74 69 6f 6e 73 41 73 73 65 74 50 61 74 68 29 3b 0d 0a 20 20 20 aultInputActionsAssetPath);.....
4120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 41 63 74 69 6f 6e 73 20 .................var.newActions.
4140 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 46 72 6f 6d 4a 73 6f 6e 28 64 65 66 61 =.InputActionAsset.FromJson(defa
4160 75 6c 74 41 63 74 69 6f 6e 73 54 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ultActionsText);................
4180 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 6d 61 70 20 69 6e 20 6e 65 77 41 63 74 ......foreach.(var.map.in.newAct
41a0 69 6f 6e 73 2e 61 63 74 69 6f 6e 4d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ions.actionMaps)................
41c0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ......{.........................
41e0 20 6d 61 70 2e 6d 5f 49 64 20 3d 20 47 75 69 64 2e 4e 65 77 47 75 69 64 28 29 2e 54 6f 53 74 72 .map.m_Id.=.Guid.NewGuid().ToStr
4200 69 6e 67 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 20 20 20 20 ing();..........................
4220 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f foreach.(var.action.in.map.actio
4240 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ns).............................
4260 20 61 63 74 69 6f 6e 2e 6d 5f 49 64 20 3d 20 47 75 69 64 2e 4e 65 77 47 75 69 64 28 29 2e 54 6f .action.m_Id.=.Guid.NewGuid().To
4280 53 74 72 69 6e 67 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 7d String();......................}
42a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 41 63 74 69 6f 6e 73 ......................newActions
42c0 2e 6e 61 6d 65 20 3d 20 50 61 74 68 2e 47 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 .name.=.Path.GetFileNameWithoutE
42e0 78 74 65 6e 73 69 6f 6e 28 66 69 6c 65 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 xtension(fileName);.............
4300 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 41 63 74 69 6f 6e 73 54 65 78 74 20 3d 20 6e 65 .........var.newActionsText.=.ne
4320 77 41 63 74 69 6f 6e 73 2e 54 6f 4a 73 6f 6e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 wActions.ToJson();..............
4340 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 72 69 74 65 20 69 74 20 6f 75 74 20 61 6e 64 20 74 65 ..........//.Write.it.out.and.te
4360 6c 6c 20 74 68 65 20 61 73 73 65 74 20 44 42 20 74 6f 20 70 69 63 6b 20 69 74 20 75 70 2e 0d 0a ll.the.asset.DB.to.pick.it.up...
4380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 2e 57 72 69 74 65 41 6c ....................File.WriteAl
43a0 6c 54 65 78 74 28 66 69 6c 65 4e 61 6d 65 2c 20 6e 65 77 41 63 74 69 6f 6e 73 54 65 78 74 29 3b lText(fileName,.newActionsText);
43c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 ......................AssetDatab
43e0 61 73 65 2e 52 65 66 72 65 73 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ase.Refresh();..................
4400 20 20 20 20 20 20 2f 2f 20 4e 65 65 64 20 74 6f 20 77 61 69 74 20 66 6f 72 20 69 6d 70 6f 72 74 ......//.Need.to.wait.for.import
4420 20 74 6f 20 68 61 70 70 65 6e 2e 20 4f 6e 20 6e 65 78 74 20 65 64 69 74 6f 72 20 75 70 64 61 74 .to.happen..On.next.editor.updat
4440 65 2c 20 77 69 72 65 20 74 68 65 20 61 73 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 e,.wire.the.asset...............
4460 20 20 20 20 20 20 20 2f 2f 20 69 6e 74 6f 20 6f 75 72 20 50 6c 61 79 65 72 49 6e 70 75 74 20 63 .......//.into.our.PlayerInput.c
4480 6f 6d 70 6f 6e 65 6e 74 20 61 6e 64 20 62 72 69 6e 67 20 75 70 20 74 68 65 20 61 63 74 69 6f 6e omponent.and.bring.up.the.action
44a0 20 65 64 69 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 .editor.......................Ed
44c0 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 64 65 6c 61 79 43 61 6c 6c 20 2b 3d 0d 0a 20 20 itorApplication.delayCall.+=....
44e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 29 20 3d 3e 0d 0a 20 20 20 ......................().=>.....
4500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
4520 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 6c 61 74 69 76 65 50 61 74 68 20 3d 20 22 ............var.relativePath.=."
4540 41 73 73 65 74 73 2f 22 20 2b 20 66 69 6c 65 4e 61 6d 65 2e 53 75 62 73 74 72 69 6e 67 28 41 70 Assets/".+.fileName.Substring(Ap
4560 70 6c 69 63 61 74 69 6f 6e 2e 64 61 74 61 50 61 74 68 2e 4c 65 6e 67 74 68 20 2b 20 31 29 3b 0d plication.dataPath.Length.+.1);.
4580 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 6f ...........................//.Lo
45a0 61 64 20 69 6d 70 6f 72 74 65 64 20 6f 62 6a 65 63 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ad.imported.object..............
45c0 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6d 70 6f 72 74 65 64 4f 62 6a 65 63 74 20 .............var.importedObject.
45e0 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 4c 6f 61 64 41 73 73 65 74 41 74 50 61 74 68 3c =.AssetDatabase.LoadAssetAtPath<
4600 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 3e 28 72 65 6c 61 74 69 76 65 50 61 74 68 29 3b InputActionAsset>(relativePath);
4620 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 ............................//.S
4640 65 74 20 69 74 20 6f 6e 20 74 68 65 20 50 6c 61 79 65 72 49 6e 70 75 74 20 63 6f 6d 70 6f 6e 65 et.it.on.the.PlayerInput.compone
4660 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 nt...........................m_A
4680 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 ctionsProperty.objectReferenceVa
46a0 6c 75 65 20 3d 20 69 6d 70 6f 72 74 65 64 4f 62 6a 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 lue.=.importedObject;...........
46c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e ...............serializedObject.
46e0 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 ApplyModifiedProperties();......
4700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4f 70 65 6e 20 74 68 ......................//.Open.th
4720 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.asset.........................
4740 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 4f 70 65 6e 41 73 73 65 74 28 69 6d 70 6f 72 74 ..AssetDatabase.OpenAsset(import
4760 65 64 4f 62 6a 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 edObject);......................
4780 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 };..................}...........
47a0 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 ...}..............EditorGUILayou
47c0 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t.EndHorizontal();..............
47e0 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 65 70 61 72 61 74 6f 72 28 29 3b 0d 0a 20 20 EditorGUILayout.Separator();....
4800 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 69 64 20 ......}............private.void.
4820 44 6f 55 74 69 6c 69 74 79 42 75 74 74 6f 6e 73 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d DoUtilityButtonsUI()..........{.
4840 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 .............EditorGUILayout.Beg
4860 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 inHorizontal();................i
4880 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 6d 5f 4f 70 65 6e 53 65 74 74 69 6e f.(GUILayout.Button(m_OpenSettin
48a0 67 73 54 65 78 74 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6d 69 6e 69 42 75 74 74 6f 6e 29 gsText,.EditorStyles.miniButton)
48c0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 53 65 74 74 69 6e 67 73 )..................InputSettings
48e0 50 72 6f 76 69 64 65 72 2e 4f 70 65 6e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Provider.Open();................
4900 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 6d 5f 4f 70 65 6e 44 65 62 75 67 if.(GUILayout.Button(m_OpenDebug
4920 67 65 72 54 65 78 74 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6d 69 6e 69 42 75 74 74 6f 6e gerText,.EditorStyles.miniButton
4940 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 44 65 62 75 67 67 65 ))..................InputDebugge
4960 72 57 69 6e 64 6f 77 2e 43 72 65 61 74 65 4f 72 53 68 6f 77 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 rWindow.CreateOrShow();.........
4980 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f .......EditorGUILayout.EndHorizo
49a0 6e 74 61 6c 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 ntal();..........}............pr
49c0 69 76 61 74 65 20 76 6f 69 64 20 44 6f 44 65 62 75 67 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 ivate.void.DoDebugUI()..........
49e0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6c 61 79 65 72 49 6e 70 75 74 20 3d {..............var.playerInput.=
4a00 20 28 50 6c 61 79 65 72 49 6e 70 75 74 29 74 61 72 67 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .(PlayerInput)target;...........
4a20 20 20 20 20 20 69 66 20 28 21 70 6c 61 79 65 72 49 6e 70 75 74 2e 75 73 65 72 2e 76 61 6c 69 64 .....if.(!playerInput.user.valid
4a40 29 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 0d 0a 20 20 )..................return;......
4a60 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 73 68 6f 77 20 61 63 74 69 6f 6e 73 ..........////TODO:.show.actions
4a80 20 77 68 65 6e 20 74 68 65 79 20 68 61 70 70 65 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .when.they.happen...............
4aa0 20 76 61 72 20 75 73 65 72 20 3d 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 75 73 65 72 2e 69 6e 64 .var.user.=.playerInput.user.ind
4ac0 65 78 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ex.ToString();..............var.
4ae0 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 75 73 65 72 controlScheme.=.playerInput.user
4b00 2e 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3f 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 .controlScheme?.name;...........
4b20 20 20 20 76 61 72 20 64 65 76 69 63 65 73 20 3d 20 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 2c 20 ...var.devices.=.string.Join(",.
4b40 22 2c 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 75 73 65 72 2e 70 61 69 72 65 64 44 65 76 69 63 65 ",.playerInput.user.pairedDevice
4b60 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f s);................EditorGUILayo
4b80 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ut.Space();..............EditorG
4ba0 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 6d 5f 44 65 62 75 67 54 65 78 74 2c UILayout.LabelField(m_DebugText,
4bc0 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 62 6f 6c 64 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 .EditorStyles.boldLabel);.......
4be0 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 .......EditorGUI.BeginDisabledGr
4c00 6f 75 70 28 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 oup(true);..............EditorGU
4c20 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 6c 64 28 22 55 73 65 72 22 2c 20 75 73 65 72 29 ILayout.LabelField("User",.user)
4c40 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c ;..............EditorGUILayout.L
4c60 61 62 65 6c 46 69 65 6c 64 28 22 43 6f 6e 74 72 6f 6c 20 53 63 68 65 6d 65 22 2c 20 63 6f 6e 74 abelField("Control.Scheme",.cont
4c80 72 6f 6c 53 63 68 65 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 rolScheme);..............EditorG
4ca0 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 73 22 2c 20 64 UILayout.LabelField("Devices",.d
4cc0 65 76 69 63 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e evices);..............EditorGUI.
4ce0 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a EndDisabledGroup();..........}..
4d00 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 4e 6f 74 69 66 69 63 ..........private.void.OnNotific
4d20 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 43 68 61 6e 67 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b ationBehaviorChange()..........{
4d40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 41 63 74 ..............Debug.Assert(m_Act
4d60 69 6f 6e 41 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ionAssetInitialized);...........
4d80 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 ...serializedObject.ApplyModifie
4da0 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 dProperties();................va
4dc0 72 20 6e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 20 3d 20 28 50 6c 61 79 65 72 r.notificationBehavior.=.(Player
4de0 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 29 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 Notifications)m_NotificationBeha
4e00 76 69 6f 72 50 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 viorProperty.intValue;..........
4e20 20 20 20 20 73 77 69 74 63 68 20 28 6e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 ....switch.(notificationBehavior
4e40 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )..............{................
4e60 20 20 2f 2f 20 43 72 65 61 74 65 20 74 65 78 74 20 74 68 61 74 20 6c 69 73 74 73 20 61 6c 6c 20 ..//.Create.text.that.lists.all.
4e80 74 68 65 20 6d 65 73 73 61 67 65 73 20 73 65 6e 74 20 62 79 20 74 68 65 20 63 6f 6d 70 6f 6e 65 the.messages.sent.by.the.compone
4ea0 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 50 6c 61 79 65 72 nt...................case.Player
4ec0 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 42 72 6f 61 64 63 61 73 74 4d 65 73 73 61 67 65 73 3a Notifications.BroadcastMessages:
4ee0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 50 6c 61 79 65 72 4e 6f 74 ..................case.PlayerNot
4f00 69 66 69 63 61 74 69 6f 6e 73 2e 53 65 6e 64 4d 65 73 73 61 67 65 73 3a 0d 0a 20 20 20 20 20 20 ifications.SendMessages:........
4f20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
4f40 20 76 61 72 20 62 75 69 6c 64 65 72 20 3d 20 6e 65 77 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 .var.builder.=.new.StringBuilder
4f60 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 62 75 69 6c 64 65 72 ();......................builder
4f80 2e 41 70 70 65 6e 64 28 22 57 69 6c 6c 20 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .Append("Will.");...............
4fa0 20 20 20 20 20 20 20 69 66 20 28 6e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 20 .......if.(notificationBehavior.
4fc0 3d 3d 20 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 42 72 6f 61 64 63 61 73 74 ==.PlayerNotifications.Broadcast
4fe0 4d 65 73 73 61 67 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Messages).......................
5000 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 22 42 72 6f 61 64 63 61 73 74 4d 65 73 73 ...builder.Append("BroadcastMess
5020 61 67 65 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c age()");......................el
5040 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c se..........................buil
5060 64 65 72 2e 41 70 70 65 6e 64 28 22 53 65 6e 64 4d 65 73 73 61 67 65 28 29 22 29 3b 0d 0a 20 20 der.Append("SendMessage()");....
5080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 ..................builder.Append
50a0 28 22 20 74 6f 20 47 61 6d 65 4f 62 6a 65 63 74 3a 20 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 (".to.GameObject:.");...........
50c0 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 50 6c 61 79 65 72 ...........builder.Append(Player
50e0 49 6e 70 75 74 2e 44 65 76 69 63 65 4c 6f 73 74 4d 65 73 73 61 67 65 29 3b 0d 0a 20 20 20 20 20 Input.DeviceLostMessage);.......
5100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 22 2c ...............builder.Append(",
5120 20 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 .");......................builde
5140 72 2e 41 70 70 65 6e 64 28 50 6c 61 79 65 72 49 6e 70 75 74 2e 44 65 76 69 63 65 52 65 67 61 69 r.Append(PlayerInput.DeviceRegai
5160 6e 65 64 4d 65 73 73 61 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nedMessage);....................
5180 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 22 2c 20 22 29 3b 0d 0a 20 20 20 20 20 20 20 ..builder.Append(",.");.........
51a0 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 50 6c 61 79 .............builder.Append(Play
51c0 65 72 49 6e 70 75 74 2e 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 4d 65 73 73 61 67 65 29 3b erInput.ControlsChangedMessage);
51e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6c 61 79 ........................var.play
5200 65 72 49 6e 70 75 74 20 3d 20 28 50 6c 61 79 65 72 49 6e 70 75 74 29 74 61 72 67 65 74 3b 0d 0a erInput.=.(PlayerInput)target;..
5220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 ....................var.asset.=.
5240 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d 5f 41 63 74 69 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 playerInput.m_Actions;..........
5260 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 73 73 65 74 20 21 3d 20 6e 75 6c 6c 29 0d 0a ............if.(asset.!=.null)..
5280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ....................{...........
52a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 ...............foreach.(var.acti
52c0 6f 6e 20 69 6e 20 61 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 on.in.asset)....................
52e0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ......{.........................
5300 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 22 2c 20 4f 6e 22 29 3b 0d 0a 20 20 .....builder.Append(",.On");....
5320 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 ..........................builde
5340 72 2e 41 70 70 65 6e 64 28 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 r.Append(CSharpCodeHelpers.MakeT
5360 79 70 65 4e 61 6d 65 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 ypeName(action.name));..........
5380 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 20 ................}...............
53a0 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 .......}........................
53c0 6d 5f 53 65 6e 64 4d 65 73 73 61 67 65 73 48 65 6c 70 54 65 78 74 20 3d 20 6e 65 77 20 47 55 49 m_SendMessagesHelpText.=.new.GUI
53e0 43 6f 6e 74 65 6e 74 28 62 75 69 6c 64 65 72 2e 54 6f 53 74 72 69 6e 67 28 29 29 3b 0d 0a 20 20 Content(builder.ToString());....
5400 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 ..................break;........
5420 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 ..........}....................c
5440 61 73 65 20 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 49 6e 76 6f 6b 65 55 6e ase.PlayerNotifications.InvokeUn
5460 69 74 79 45 76 65 6e 74 73 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ityEvents:..................{...
5480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6c 61 79 65 72 49 6e 70 ...................var.playerInp
54a0 75 74 20 3d 20 28 50 6c 61 79 65 72 49 6e 70 75 74 29 74 61 72 67 65 74 3b 0d 0a 20 20 20 20 20 ut.=.(PlayerInput)target;.......
54c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d ...............if.(playerInput.m
54e0 5f 44 65 76 69 63 65 4c 6f 73 74 45 76 65 6e 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 _DeviceLostEvent.==.null).......
5500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d ...................playerInput.m
5520 5f 44 65 76 69 63 65 4c 6f 73 74 45 76 65 6e 74 20 3d 20 6e 65 77 20 50 6c 61 79 65 72 49 6e 70 _DeviceLostEvent.=.new.PlayerInp
5540 75 74 2e 44 65 76 69 63 65 4c 6f 73 74 45 76 65 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ut.DeviceLostEvent();...........
5560 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d 5f 44 65 76 ...........if.(playerInput.m_Dev
5580 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 iceRegainedEvent.==.null).......
55a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d ...................playerInput.m
55c0 5f 44 65 76 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 20 3d 20 6e 65 77 20 50 6c 61 79 65 _DeviceRegainedEvent.=.new.Playe
55e0 72 49 6e 70 75 74 2e 44 65 76 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 28 29 3b 0d 0a 20 rInput.DeviceRegainedEvent();...
5600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6c 61 79 65 72 49 6e 70 ...................if.(playerInp
5620 75 74 2e 6d 5f 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 45 76 65 6e 74 20 3d 3d 20 6e 75 6c ut.m_ControlsChangedEvent.==.nul
5640 6c 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 70 6c 61 79 l)..........................play
5660 65 72 49 6e 70 75 74 2e 6d 5f 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 45 76 65 6e 74 20 3d erInput.m_ControlsChangedEvent.=
5680 20 6e 65 77 20 50 6c 61 79 65 72 49 6e 70 75 74 2e 43 6f 6e 74 72 6f 6c 73 43 68 61 6e 67 65 64 .new.PlayerInput.ControlsChanged
56a0 45 76 65 6e 74 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 73 65 Event();......................se
56c0 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 55 70 64 61 74 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 rializedObject.Update();........
56e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 63 65 20 61 63 74 69 6f 6e 20 ................//.Force.action.
5700 72 65 66 72 65 73 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f refresh.......................m_
5720 41 63 74 69 6f 6e 41 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 20 66 61 6c 73 65 3b 0d ActionAssetInitialized.=.false;.
5740 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 66 72 65 73 68 28 29 3b 0d .....................Refresh();.
5760 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 .....................break;.....
5780 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d .............}..............}...
57a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 .............m_NotificationBehav
57c0 69 6f 72 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 iorInitialized.=.true;..........
57e0 7d 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 4f 6e 41 63 74 69 }............private.void.OnActi
5800 6f 6e 41 73 73 65 74 43 68 61 6e 67 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 onAssetChange()..........{......
5820 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f ........serializedObject.ApplyMo
5840 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 difiedProperties();.............
5860 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 20 74 72 75 65 .m_ActionAssetInitialized.=.true
5880 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6c 61 79 65 72 49 6e 70 75 74 ;................var.playerInput
58a0 20 3d 20 28 50 6c 61 79 65 72 49 6e 70 75 74 29 74 61 72 67 65 74 3b 0d 0a 20 20 20 20 20 20 20 .=.(PlayerInput)target;.........
58c0 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 .....var.asset.=.(InputActionAss
58e0 65 74 29 6d 5f 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 et)m_ActionsProperty.objectRefer
5900 65 6e 63 65 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 73 73 65 enceValue;..............if.(asse
5920 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 t.==.null)..............{.......
5940 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 69 6f 6e ...........m_ControlSchemeOption
5960 73 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 6d 5f 41 63 74 s.=.null;..................m_Act
5980 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 ionMapOptions.=.null;...........
59a0 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 .......m_ActionNames.=.null;....
59c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 ..............m_SelectedDefaultA
59e0 63 74 69 6f 6e 4d 61 70 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ctionMap.=.-1;..................
5a00 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d m_SelectedDefaultControlScheme.=
5a20 20 2d 31 3b 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 .-1;..................return;...
5a40 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 49 ...........}................//.I
5a60 66 20 77 65 27 72 65 20 73 65 6e 64 69 6e 67 20 55 6e 69 74 79 20 65 76 65 6e 74 73 2c 20 72 65 f.we're.sending.Unity.events,.re
5a80 61 64 20 6f 75 74 20 74 68 65 20 65 76 65 6e 74 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 ad.out.the.event.list...........
5aa0 20 20 20 20 69 66 20 28 28 50 6c 61 79 65 72 4e 6f 74 69 66 69 63 61 74 69 6f 6e 73 29 6d 5f 4e ....if.((PlayerNotifications)m_N
5ac0 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 50 72 6f 70 65 72 74 79 2e 69 6e 74 56 otificationBehaviorProperty.intV
5ae0 61 6c 75 65 20 3d 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 6c 61 79 65 72 4e alue.==..................PlayerN
5b00 6f 74 69 66 69 63 61 74 69 6f 6e 73 2e 49 6e 76 6f 6b 65 55 6e 69 74 79 45 76 65 6e 74 73 29 0d otifications.InvokeUnityEvents).
5b20 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 .............{..................
5b40 2f 2f 2f 2f 46 49 58 4d 45 3a 20 74 68 69 73 20 73 68 6f 75 6c 64 20 70 72 65 73 65 72 76 65 20 ////FIXME:.this.should.preserve.
5b60 74 68 65 20 73 61 6d 65 20 6f 72 64 65 72 20 74 68 61 74 20 77 65 20 68 61 76 65 20 69 6e 20 74 the.same.order.that.we.have.in.t
5b80 68 65 20 61 73 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 he.asset..................var.ne
5ba0 77 41 63 74 69 6f 6e 4e 61 6d 65 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 47 55 49 43 6f 6e 74 65 wActionNames.=.new.List<GUIConte
5bc0 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 41 nt>();..................var.newA
5be0 63 74 69 6f 6e 45 76 65 6e 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 50 6c 61 79 65 72 49 6e 70 ctionEvents.=.new.List<PlayerInp
5c00 75 74 2e 41 63 74 69 6f 6e 45 76 65 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ut.ActionEvent>();..............
5c20 20 20 20 20 76 61 72 20 6e 65 77 41 63 74 69 6f 6e 4d 61 70 49 6e 64 69 63 65 73 20 3d 20 6e 65 ....var.newActionMapIndices.=.ne
5c40 77 20 4c 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 w.List<int>();..................
5c60 20 20 6d 5f 4e 75 6d 41 63 74 69 6f 6e 4d 61 70 73 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 ..m_NumActionMaps.=.0;..........
5c80 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 3b ........m_ActionMapNames.=.null;
5ca0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 6f 69 64 20 41 64 64 45 6e 74 72 ....................void.AddEntr
5cc0 79 28 49 6e 70 75 74 41 63 74 69 6f 6e 20 61 63 74 69 6f 6e 2c 20 50 6c 61 79 65 72 49 6e 70 75 y(InputAction.action,.PlayerInpu
5ce0 74 2e 41 63 74 69 6f 6e 45 76 65 6e 74 20 61 63 74 69 6f 6e 45 76 65 6e 74 29 0d 0a 20 20 20 20 t.ActionEvent.actionEvent)......
5d00 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............{...................
5d20 20 20 20 6e 65 77 41 63 74 69 6f 6e 4e 61 6d 65 73 2e 41 64 64 28 6e 65 77 20 47 55 49 43 6f 6e ...newActionNames.Add(new.GUICon
5d40 74 65 6e 74 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tent(action.name));.............
5d60 20 20 20 20 20 20 20 20 20 6e 65 77 41 63 74 69 6f 6e 45 76 65 6e 74 73 2e 41 64 64 28 61 63 74 .........newActionEvents.Add(act
5d80 69 6f 6e 45 76 65 6e 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ionEvent);......................
5da0 20 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 49 6e 64 65 78 20 3d 20 61 73 73 65 74 2e 61 63 74 ..var.actionMapIndex.=.asset.act
5dc0 69 6f 6e 4d 61 70 73 2e 49 6e 64 65 78 4f 66 52 65 66 65 72 65 6e 63 65 28 61 63 74 69 6f 6e 2e ionMaps.IndexOfReference(action.
5de0 61 63 74 69 6f 6e 4d 61 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 actionMap);.....................
5e00 20 6e 65 77 41 63 74 69 6f 6e 4d 61 70 49 6e 64 69 63 65 73 2e 41 64 64 28 61 63 74 69 6f 6e 4d .newActionMapIndices.Add(actionM
5e20 61 70 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 apIndex);.......................
5e40 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 49 6e 64 65 78 20 3e 3d 20 6d 5f 4e 75 6d 41 63 74 69 .if.(actionMapIndex.>=.m_NumActi
5e60 6f 6e 4d 61 70 73 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 onMaps).........................
5e80 20 6d 5f 4e 75 6d 41 63 74 69 6f 6e 4d 61 70 73 20 3d 20 61 63 74 69 6f 6e 4d 61 70 49 6e 64 65 .m_NumActionMaps.=.actionMapInde
5ea0 78 20 2b 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 x.+.1;........................Ar
5ec0 72 61 79 48 65 6c 70 65 72 73 2e 50 75 74 41 74 49 66 4e 6f 74 53 65 74 28 72 65 66 20 6d 5f 41 rayHelpers.PutAtIfNotSet(ref.m_A
5ee0 63 74 69 6f 6e 4d 61 70 4e 61 6d 65 73 2c 20 61 63 74 69 6f 6e 4d 61 70 49 6e 64 65 78 2c 0d 0a ctionMapNames,.actionMapIndex,..
5f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 29 20 3d 3e 20 6e 65 ........................().=>.ne
5f20 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 61 63 74 69 6f 6e 2e 61 63 74 69 6f 6e 4d 61 70 2e 6e 61 w.GUIContent(action.actionMap.na
5f40 6d 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 me));..................}........
5f60 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 74 68 69 73 20 69 73 20 ............////REVIEW:.this.is.
5f80 64 65 73 74 72 75 63 74 69 76 65 3b 20 77 65 20 6d 61 79 20 62 65 20 6c 6f 73 69 6e 67 20 63 6f destructive;.we.may.be.losing.co
5fa0 6e 6e 65 63 74 69 6f 6e 73 20 68 65 72 65 20 74 68 61 74 20 74 68 65 20 75 73 65 72 20 68 61 73 nnections.here.that.the.user.has
5fc0 20 73 65 74 20 75 70 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 .set.up..................////...
5fe0 20 20 20 20 20 69 66 20 74 68 65 20 61 63 74 69 6f 6e 20 67 6f 65 73 20 6d 69 73 73 69 6e 67 0d .....if.the.action.goes.missing.
6000 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 72 69 6e 67 20 6f 76 65 72 ...................//.Bring.over
6020 20 61 6e 79 20 61 63 74 69 6f 6e 20 65 76 65 6e 74 73 20 74 68 61 74 20 77 65 20 61 6c 72 65 61 .any.action.events.that.we.alrea
6040 64 79 20 68 61 76 65 20 61 6e 64 20 74 68 61 74 20 61 72 65 20 73 74 69 6c 6c 20 69 6e 20 74 68 dy.have.and.that.are.still.in.th
6060 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 6c e.asset...................var.ol
6080 64 41 63 74 69 6f 6e 45 76 65 6e 74 73 20 3d 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d 5f 41 63 dActionEvents.=.playerInput.m_Ac
60a0 74 69 6f 6e 45 76 65 6e 74 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 tionEvents;..................if.
60c0 28 6f 6c 64 41 63 74 69 6f 6e 45 76 65 6e 74 73 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 (oldActionEvents.!=.null).......
60e0 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........{....................
6100 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 65 6e 74 72 79 20 69 6e 20 6f 6c 64 41 63 74 69 6f ..foreach.(var.entry.in.oldActio
6120 6e 45 76 65 6e 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d nEvents)......................{.
6140 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 76 61 72 20 67 75 69 .........................var.gui
6160 64 20 3d 20 65 6e 74 72 79 2e 61 63 74 69 6f 6e 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 d.=.entry.actionId;.............
6180 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 61 73 73 65 74 2e .............var.action.=.asset.
61a0 46 69 6e 64 41 63 74 69 6f 6e 28 67 75 69 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 FindAction(guid);...............
61c0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 20 21 3d 20 6e 75 6c 6c 29 0d 0a ...........if.(action.!=.null)..
61e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 45 ............................AddE
6200 6e 74 72 79 28 61 63 74 69 6f 6e 2c 20 65 6e 74 72 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ntry(action,.entry);............
6220 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a ..........}..................}..
6240 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 61 6e 79 20 6e 65 77 ..................//.Add.any.new
6260 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 .actions...................forea
6280 63 68 20 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 61 73 73 65 74 29 0d 0a 20 20 20 20 20 20 ch.(var.action.in.asset)........
62a0 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
62c0 20 2f 2f 20 53 6b 69 70 20 69 66 20 69 74 20 77 61 73 20 61 6c 72 65 61 64 79 20 69 6e 20 74 68 .//.Skip.if.it.was.already.in.th
62e0 65 72 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6f 6c ere.......................if.(ol
6300 64 41 63 74 69 6f 6e 45 76 65 6e 74 73 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6f 6c 64 41 63 74 69 dActionEvents.!=.null.&&.oldActi
6320 6f 6e 45 76 65 6e 74 73 2e 41 6e 79 28 78 20 3d 3e 20 78 2e 61 63 74 69 6f 6e 49 64 20 3d 3d 20 onEvents.Any(x.=>.x.actionId.==.
6340 61 63 74 69 6f 6e 2e 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 29 29 0d 0a 20 20 20 20 20 20 20 20 action.id.ToString()))..........
6360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 ................continue;.......
6380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 61 64 64 73 .................////FIXME:.adds
63a0 20 62 69 6e 64 69 6e 67 73 20 74 6f 20 74 68 65 20 6e 61 6d 65 0d 0a 20 20 20 20 20 20 20 20 20 .bindings.to.the.name...........
63c0 20 20 20 20 20 20 20 20 20 20 20 41 64 64 45 6e 74 72 79 28 61 63 74 69 6f 6e 2c 20 6e 65 77 20 ...........AddEntry(action,.new.
63e0 50 6c 61 79 65 72 49 6e 70 75 74 2e 41 63 74 69 6f 6e 45 76 65 6e 74 28 61 63 74 69 6f 6e 2e 69 PlayerInput.ActionEvent(action.i
6400 64 2c 20 61 63 74 69 6f 6e 2e 54 6f 53 74 72 69 6e 67 28 29 29 29 3b 0d 0a 20 20 20 20 20 20 20 d,.action.ToString()));.........
6420 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f .........}....................m_
6440 41 63 74 69 6f 6e 4e 61 6d 65 73 20 3d 20 6e 65 77 41 63 74 69 6f 6e 4e 61 6d 65 73 2e 54 6f 41 ActionNames.=.newActionNames.ToA
6460 72 72 61 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f rray();..................m_Actio
6480 6e 4d 61 70 49 6e 64 69 63 65 73 20 3d 20 6e 65 77 41 63 74 69 6f 6e 4d 61 70 49 6e 64 69 63 65 nMapIndices.=.newActionMapIndice
64a0 73 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 s.ToArray();..................Ar
64c0 72 61 79 2e 52 65 73 69 7a 65 28 72 65 66 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 45 76 65 6e 74 73 ray.Resize(ref.m_ActionMapEvents
64e0 55 6e 66 6f 6c 64 65 64 2c 20 6d 5f 4e 75 6d 41 63 74 69 6f 6e 4d 61 70 73 29 3b 0d 0a 20 20 20 Unfolded,.m_NumActionMaps);.....
6500 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 6d 5f 41 63 74 69 6f .............playerInput.m_Actio
6520 6e 45 76 65 6e 74 73 20 3d 20 6e 65 77 41 63 74 69 6f 6e 45 76 65 6e 74 73 2e 54 6f 41 72 72 61 nEvents.=.newActionEvents.ToArra
6540 79 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 y();..............}.............
6560 20 20 20 2f 2f 20 52 65 61 64 20 6f 75 74 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 2e 0d ...//.Read.out.control.schemes..
6580 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 .............var.selectedDefault
65a0 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 64 65 66 61 ControlScheme.=.playerInput.defa
65c0 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d ultControlScheme;..............m
65e0 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 _SelectedDefaultControlScheme.=.
6600 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 0;..............var.controlSchem
6620 65 73 20 3d 20 61 73 73 65 74 2e 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 3b 0d 0a 20 20 20 20 es.=.asset.controlSchemes;......
6640 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 69 6f 6e 73 20 3d ........m_ControlSchemeOptions.=
6660 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 5b 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2e 43 .new.GUIContent[controlSchemes.C
6680 6f 75 6e 74 20 2b 20 31 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f ount.+.1];..............m_Contro
66a0 6c 53 63 68 65 6d 65 4f 70 74 69 6f 6e 73 5b 30 5d 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 lSchemeOptions[0].=.new.GUIConte
66c0 6e 74 28 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e nt(EditorGUIUtility.TrTextConten
66e0 74 28 22 3c 41 6e 79 3e 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f t("<Any>"));..............////TO
6700 44 4f 3a 20 73 6f 72 74 20 61 6c 70 68 61 62 65 74 69 63 61 6c 6c 79 0d 0a 20 20 20 20 20 20 20 DO:.sort.alphabetically.........
6720 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 63 6f 6e 74 72 6f 6c .....for.(var.i.=.0;.i.<.control
6740 53 63 68 65 6d 65 73 2e 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Schemes.Count;.++i).............
6760 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 61 6d 65 20 3d 20 63 .{..................var.name.=.c
6780 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 5d 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 ontrolSchemes[i].name;..........
67a0 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 69 6f 6e 73 5b 69 ........m_ControlSchemeOptions[i
67c0 20 2b 20 31 5d 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 6e 61 6d 65 29 3b 0d 0a 0d .+.1].=.new.GUIContent(name);...
67e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 64 44 65 66 .................if.(selectedDef
6800 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 21 3d 20 6e 75 6c 6c 20 26 26 20 73 74 72 aultControlScheme.!=.null.&&.str
6820 69 6e 67 2e 43 6f 6d 70 61 72 65 28 6e 61 6d 65 2c 20 73 65 6c 65 63 74 65 64 44 65 66 61 75 6c ing.Compare(name,.selectedDefaul
6840 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tControlScheme,.................
6860 20 20 20 20 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 .....StringComparison.InvariantC
6880 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 ultureIgnoreCase).==.0).........
68a0 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f .............m_SelectedDefaultCo
68c0 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 69 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ntrolScheme.=.i.+.1;............
68e0 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 44 ..}..............if.(m_SelectedD
6900 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3c 3d 20 30 29 0d 0a 20 20 20 20 20 efaultControlScheme.<=.0).......
6920 20 20 20 20 20 20 20 20 20 20 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 64 65 66 61 75 6c 74 43 6f ...........playerInput.defaultCo
6940 6e 74 72 6f 6c 53 63 68 65 6d 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ntrolScheme.=.null;.............
6960 20 20 20 2f 2f 20 52 65 61 64 20 6f 75 74 20 61 63 74 69 6f 6e 20 6d 61 70 73 2e 0d 0a 20 20 20 ...//.Read.out.action.maps......
6980 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 .........var.selectedDefaultActi
69a0 6f 6e 4d 61 70 20 3d 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 6c onMap.=.!string.IsNullOrEmpty(pl
69c0 61 79 65 72 49 6e 70 75 74 2e 64 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 29 0d 0a 20 20 20 ayerInput.defaultActionMap).....
69e0 20 20 20 20 20 20 20 20 20 20 20 20 20 3f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 4d .............?.asset.FindActionM
6a00 61 70 28 70 6c 61 79 65 72 49 6e 70 75 74 2e 64 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 29 ap(playerInput.defaultActionMap)
6a20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 ..................:.null;.......
6a40 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 .......m_SelectedDefaultActionMa
6a60 70 20 3d 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 2e 43 6f 75 6e 74 20 3e 20 30 20 3f p.=.asset.actionMaps.Count.>.0.?
6a80 20 31 20 3a 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4d .1.:.0;..............var.actionM
6aa0 61 70 73 20 3d 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 aps.=.asset.actionMaps;.........
6ac0 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 20 3d 20 6e 65 77 20 47 55 .....m_ActionMapOptions.=.new.GU
6ae0 49 43 6f 6e 74 65 6e 74 5b 61 63 74 69 6f 6e 4d 61 70 73 2e 43 6f 75 6e 74 20 2b 20 31 5d 3b 0d IContent[actionMaps.Count.+.1];.
6b00 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 5b .............m_ActionMapOptions[
6b20 30 5d 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 45 64 69 74 6f 72 47 55 49 55 74 69 0].=.new.GUIContent(EditorGUIUti
6b40 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 3c 4e 6f 6e 65 3e 22 29 29 3b 0d 0a lity.TrTextContent("<None>"));..
6b60 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 73 6f 72 74 20 61 6c 70 68 61 ............////TODO:.sort.alpha
6b80 62 65 74 69 63 61 6c 6c 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 betically..............for.(var.
6ba0 69 20 3d 20 30 3b 20 69 20 3c 20 61 63 74 69 6f 6e 4d 61 70 73 2e 43 6f 75 6e 74 3b 20 2b 2b 69 i.=.0;.i.<.actionMaps.Count;.++i
6bc0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )..............{................
6be0 20 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 61 63 74 69 6f 6e 4d 61 70 73 5b 69 5d 3b ..var.actionMap.=.actionMaps[i];
6c00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 ..................m_ActionMapOpt
6c20 69 6f 6e 73 5b 69 20 2b 20 31 5d 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 61 63 74 ions[i.+.1].=.new.GUIContent(act
6c40 69 6f 6e 4d 61 70 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ionMap.name);...................
6c60 20 69 66 20 28 73 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 20 21 3d .if.(selectedDefaultActionMap.!=
6c80 20 6e 75 6c 6c 20 26 26 20 61 63 74 69 6f 6e 4d 61 70 20 3d 3d 20 73 65 6c 65 63 74 65 64 44 65 .null.&&.actionMap.==.selectedDe
6ca0 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 faultActionMap).................
6cc0 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 20 .....m_SelectedDefaultActionMap.
6ce0 3d 20 69 20 2b 20 31 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 =.i.+.1;..............}.........
6d00 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f 6e .....if.(m_SelectedDefaultAction
6d20 4d 61 70 20 3c 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6c 61 79 65 Map.<=.0)..................playe
6d40 72 49 6e 70 75 74 2e 64 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 20 3d 20 6e 75 6c 6c 3b 0d rInput.defaultActionMap.=.null;.
6d60 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .............else...............
6d80 20 20 20 70 6c 61 79 65 72 49 6e 70 75 74 2e 64 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 20 ...playerInput.defaultActionMap.
6da0 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f 70 74 69 6f 6e 73 5b 6d 5f 53 65 6c 65 63 74 65 64 44 =.m_ActionMapOptions[m_SelectedD
6dc0 65 66 61 75 6c 74 41 63 74 69 6f 6e 4d 61 70 5d 2e 74 65 78 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 efaultActionMap].text;..........
6de0 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 55 70 64 61 74 65 28 29 3b ......serializedObject.Update();
6e00 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a ..........}............[Serializ
6e20 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 45 76 65 6e 74 73 47 72 6f eField].private.bool.m_EventsGro
6e40 75 70 55 6e 66 6f 6c 64 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 upUnfolded;..........[SerializeF
6e60 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 5b 5d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 ield].private.bool[].m_ActionMap
6e80 45 76 65 6e 74 73 55 6e 66 6f 6c 64 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 EventsUnfolded;............[NonS
6ea0 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 erialized].private.readonly.GUIC
6ec0 6f 6e 74 65 6e 74 20 6d 5f 43 72 65 61 74 65 41 63 74 69 6f 6e 73 54 65 78 74 20 3d 20 45 64 69 ontent.m_CreateActionsText.=.Edi
6ee0 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 43 72 65 torGUIUtility.TrTextContent("Cre
6f00 61 74 65 20 41 63 74 69 6f 6e 73 2e 2e 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 ate.Actions...");..........[NonS
6f20 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 erialized].private.readonly.GUIC
6f40 6f 6e 74 65 6e 74 20 6d 5f 46 69 78 49 6e 70 75 74 4d 6f 64 75 6c 65 54 65 78 74 20 3d 20 45 64 ontent.m_FixInputModuleText.=.Ed
6f60 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 46 69 itorGUIUtility.TrTextContent("Fi
6f80 78 20 55 49 20 49 6e 70 75 74 20 4d 6f 64 75 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e x.UI.Input.Module");..........[N
6fa0 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 47 onSerialized].private.readonly.G
6fc0 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 4f 70 65 6e 53 65 74 74 69 6e 67 73 54 65 78 74 20 3d 20 45 UIContent.m_OpenSettingsText.=.E
6fe0 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 4f ditorGUIUtility.TrTextContent("O
7000 70 65 6e 20 49 6e 70 75 74 20 53 65 74 74 69 6e 67 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 5b pen.Input.Settings");..........[
7020 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 NonSerialized].private.readonly.
7040 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 4f 70 65 6e 44 65 62 75 67 67 65 72 54 65 78 74 20 3d 20 GUIContent.m_OpenDebuggerText.=.
7060 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 EditorGUIUtility.TrTextContent("
7080 4f 70 65 6e 20 49 6e 70 75 74 20 44 65 62 75 67 67 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 Open.Input.Debugger");..........
70a0 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 [NonSerialized].private.readonly
70c0 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 45 76 65 6e 74 73 47 72 6f 75 70 54 65 78 74 20 3d 0d .GUIContent.m_EventsGroupText.=.
70e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 .............EditorGUIUtility.Tr
7100 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 45 76 65 6e 74 73 22 2c 20 22 55 6e 69 74 79 45 76 65 6e TextContent("Events",."UnityEven
7120 74 73 20 74 72 69 67 67 65 72 65 64 20 62 79 20 74 68 65 20 50 6c 61 79 65 72 49 6e 70 75 74 20 ts.triggered.by.the.PlayerInput.
7140 63 6f 6d 70 6f 6e 65 6e 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c component");..........[NonSerial
7160 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e ized].private.readonly.GUIConten
7180 74 20 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 54 65 78 74 20 3d 0d 0a t.m_NotificationBehaviorText.=..
71a0 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 ............EditorGUIUtility.TrT
71c0 65 78 74 43 6f 6e 74 65 6e 74 28 22 42 65 68 61 76 69 6f 72 22 2c 0d 0a 20 20 20 20 20 20 20 20 extContent("Behavior",..........
71e0 20 20 20 20 20 20 20 20 22 44 65 74 65 72 6d 69 6e 65 20 68 6f 77 20 6e 6f 74 69 66 69 63 61 74 ........"Determine.how.notificat
7200 69 6f 6e 73 20 73 68 6f 75 6c 64 20 62 65 20 73 65 6e 74 20 77 68 65 6e 20 61 6e 20 69 6e 70 75 ions.should.be.sent.when.an.inpu
7220 74 2d 72 65 6c 61 74 65 64 20 65 76 65 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 t-related.event.associated.with.
7240 74 68 65 20 70 6c 61 79 65 72 20 68 61 70 70 65 6e 73 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 the.player.happens.");..........
7260 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 [NonSerialized].private.readonly
7280 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 .GUIContent.m_DefaultControlSche
72a0 6d 65 54 65 78 74 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 meText.=..............EditorGUIU
72c0 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 44 65 66 61 75 6c 74 20 53 63 tility.TrTextContent("Default.Sc
72e0 68 65 6d 65 22 2c 20 22 57 68 69 63 68 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 74 6f 20 heme",."Which.control.scheme.to.
7300 74 72 79 20 62 79 20 64 65 66 61 75 6c 74 2e 20 49 66 20 6e 6f 74 20 73 65 74 2c 20 50 6c 61 79 try.by.default..If.not.set,.Play
7320 65 72 49 6e 70 75 74 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 22 77 69 erInput."..................+."wi
7340 6c 6c 20 73 69 6d 70 6c 79 20 67 6f 20 74 68 72 6f 75 67 68 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c ll.simply.go.through.all.control
7360 20 73 63 68 65 6d 65 73 20 69 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 61 73 73 65 74 20 61 6e 64 .schemes.in.the.action.asset.and
7380 20 74 72 79 20 6f 6e 65 20 61 66 74 65 72 20 74 68 65 20 6f 74 68 65 72 2e 20 49 66 20 73 65 74 .try.one.after.the.other..If.set
73a0 2c 20 50 6c 61 79 65 72 49 6e 70 75 74 20 77 69 6c 6c 20 74 72 79 20 22 0d 0a 20 20 20 20 20 20 ,.PlayerInput.will.try."........
73c0 20 20 20 20 20 20 20 20 20 20 2b 20 22 74 68 65 20 67 69 76 65 6e 20 73 63 68 65 6d 65 20 66 69 ..........+."the.given.scheme.fi
73e0 72 73 74 20 62 75 74 20 69 66 20 75 73 69 6e 67 20 74 68 61 74 20 66 61 69 6c 73 20 28 65 2e 67 rst.but.if.using.that.fails.(e.g
7400 2e 20 77 68 65 6e 20 6e 6f 74 20 72 65 71 75 69 72 65 64 20 64 65 76 69 63 65 73 20 61 72 65 20 ..when.not.required.devices.are.
7420 6d 69 73 73 69 6e 67 29 20 77 69 6c 6c 20 66 61 6c 6c 20 62 61 63 6b 20 74 6f 20 74 72 79 69 6e missing).will.fall.back.to.tryin
7440 67 20 74 68 65 20 6f 74 68 65 72 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b g.the.other."..................+
7460 20 22 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 20 69 6e 20 6f 72 64 65 72 2e 22 29 3b 0d 0a ."control.schemes.in.order.");..
7480 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 ........[NonSerialized].private.
74a0 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 44 65 66 61 75 6c 74 41 63 74 readonly.GUIContent.m_DefaultAct
74c0 69 6f 6e 4d 61 70 54 65 78 74 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 ionMapText.=..............Editor
74e0 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 44 65 66 61 75 6c GUIUtility.TrTextContent("Defaul
7500 74 20 4d 61 70 22 2c 20 22 41 63 74 69 6f 6e 20 6d 61 70 20 74 6f 20 65 6e 61 62 6c 65 20 62 79 t.Map",."Action.map.to.enable.by
7520 20 64 65 66 61 75 6c 74 2e 20 49 66 20 6e 6f 74 20 73 65 74 2c 20 6e 6f 20 61 63 74 69 6f 6e 73 .default..If.not.set,.no.actions
7540 20 77 69 6c 6c 20 62 65 20 65 6e 61 62 6c 65 64 20 62 79 20 64 65 66 61 75 6c 74 2e 22 29 3b 0d .will.be.enabled.by.default.");.
7560 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 .........[NonSerialized].private
7580 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 41 75 74 6f 53 77 69 74 63 .readonly.GUIContent.m_AutoSwitc
75a0 68 54 65 78 74 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 hText.=..............EditorGUIUt
75c0 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 41 75 74 6f 2d 53 77 69 74 63 68 ility.TrTextContent("Auto-Switch
75e0 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 22 42 79 20 64 65 66 61 75 6c 74 2c ",.................."By.default,
7600 20 77 68 65 6e 20 74 68 65 72 65 20 69 73 20 6f 6e 6c 79 20 61 20 73 69 6e 67 6c 65 20 50 6c 61 .when.there.is.only.a.single.Pla
7620 79 65 72 49 6e 70 75 74 2c 20 74 68 65 20 70 6c 61 79 65 72 20 22 0d 0a 20 20 20 20 20 20 20 20 yerInput,.the.player."..........
7640 20 20 20 20 20 20 20 20 2b 20 22 69 73 20 61 6c 6c 6f 77 65 64 20 74 6f 20 66 72 65 65 6c 79 20 ........+."is.allowed.to.freely.
7660 73 77 69 74 63 68 20 62 65 74 77 65 65 6e 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 20 73 switch.between.control.schemes.s
7680 69 6d 70 6c 79 20 62 79 20 73 74 61 72 74 69 6e 67 20 74 6f 20 75 73 65 20 61 20 64 69 66 66 65 imply.by.starting.to.use.a.diffe
76a0 72 65 6e 74 20 64 65 76 69 63 65 2e 20 42 79 20 74 6f 67 67 6c 69 6e 67 20 74 68 69 73 20 70 72 rent.device..By.toggling.this.pr
76c0 6f 70 65 72 74 79 20 6f 66 66 2c 20 74 68 69 73 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 operty.off,.this."..............
76e0 20 20 20 20 2b 20 22 62 65 68 61 76 69 6f 72 20 69 73 20 64 69 73 61 62 6c 65 64 20 61 6e 64 20 ....+."behavior.is.disabled.and.
7700 65 76 65 6e 20 77 69 74 68 20 61 20 73 69 6e 67 6c 65 20 70 6c 61 79 65 72 2c 20 74 68 65 20 70 even.with.a.single.player,.the.p
7720 6c 61 79 65 72 20 77 69 6c 6c 20 73 74 61 79 20 6c 6f 63 6b 65 64 20 6f 6e 74 6f 20 74 68 65 20 layer.will.stay.locked.onto.the.
7740 65 78 70 6c 69 63 69 74 6c 79 20 73 65 6c 65 63 74 65 64 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 explicitly.selected.control.sche
7760 6d 65 2e 20 4e 6f 74 65 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 22 74 me..Note."..................+."t
7780 68 61 74 20 79 6f 75 20 63 61 6e 20 73 74 69 6c 6c 20 63 68 61 6e 67 65 20 63 6f 6e 74 72 6f 6c hat.you.can.still.change.control
77a0 20 73 63 68 65 6d 65 73 20 65 78 70 6c 69 63 69 74 6c 79 20 74 68 72 6f 75 67 68 20 74 68 65 20 .schemes.explicitly.through.the.
77c0 50 6c 61 79 65 72 49 6e 70 75 74 20 41 50 49 2e 5c 6e 5c 6e 57 68 65 6e 20 74 68 65 72 65 20 61 PlayerInput.API.\n\nWhen.there.a
77e0 72 65 20 6d 75 6c 74 69 70 6c 65 20 50 6c 61 79 65 72 49 6e 70 75 74 73 20 69 6e 20 74 68 65 20 re.multiple.PlayerInputs.in.the.
7800 67 61 6d 65 2c 20 61 75 74 6f 2d 73 77 69 74 63 68 69 6e 67 20 69 73 20 64 69 73 61 62 6c 65 64 game,.auto-switching.is.disabled
7820 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 65 67 61 72 64 6c 65 73 73 20 6f 66 20 74 68 65 .automatically.regardless.of.the
7840 20 76 61 6c 75 65 20 6f 66 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 2e 22 29 3b 0d 0a 20 20 20 .value.of.this.property.");.....
7860 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 72 65 61 .....[NonSerialized].private.rea
7880 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 44 65 62 75 67 54 65 78 74 20 3d 20 45 donly.GUIContent.m_DebugText.=.E
78a0 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 44 ditorGUIUtility.TrTextContent("D
78c0 65 62 75 67 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d ebug");..........[NonSerialized]
78e0 20 70 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 55 49 50 72 6f 70 65 72 74 79 .private.GUIContent.m_UIProperty
7900 54 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 Text;..........[NonSerialized].p
7920 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 43 61 6d 65 72 61 50 72 6f 70 65 72 rivate.GUIContent.m_CameraProper
7940 74 79 54 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d tyText;..........[NonSerialized]
7960 20 70 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 53 65 6e 64 4d 65 73 73 61 67 .private.GUIContent.m_SendMessag
7980 65 73 48 65 6c 70 54 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 esHelpText;..........[NonSeriali
79a0 7a 65 64 5d 20 70 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 41 63 74 69 zed].private.GUIContent[].m_Acti
79c0 6f 6e 4e 61 6d 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 onNames;..........[NonSerialized
79e0 5d 20 70 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 41 63 74 69 6f 6e 4d ].private.GUIContent[].m_ActionM
7a00 61 70 4e 61 6d 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 apNames;..........[NonSerialized
7a20 5d 20 70 72 69 76 61 74 65 20 69 6e 74 5b 5d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 49 6e 64 69 63 ].private.int[].m_ActionMapIndic
7a40 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 es;..........[NonSerialized].pri
7a60 76 61 74 65 20 69 6e 74 20 6d 5f 4e 75 6d 41 63 74 69 6f 6e 4d 61 70 73 3b 0d 0a 20 20 20 20 20 vate.int.m_NumActionMaps;.......
7a80 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d ...[NonSerialized].private.int.m
7aa0 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3b 0d 0a _SelectedDefaultControlScheme;..
7ac0 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 ........[NonSerialized].private.
7ae0 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 4f 70 74 69 GUIContent[].m_ControlSchemeOpti
7b00 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 ons;..........[NonSerialized].pr
7b20 69 76 61 74 65 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 44 65 66 61 75 6c 74 41 63 74 69 6f ivate.int.m_SelectedDefaultActio
7b40 6e 4d 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 nMap;..........[NonSerialized].p
7b60 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 4f rivate.GUIContent[].m_ActionMapO
7b80 70 74 69 6f 6e 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 ptions;............[NonSerialize
7ba0 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f d].private.SerializedProperty.m_
7bc0 41 63 74 69 6f 6e 73 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 ActionsProperty;..........[NonSe
7be0 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 rialized].private.SerializedProp
7c00 65 72 74 79 20 6d 5f 44 65 66 61 75 6c 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 50 72 6f 70 65 erty.m_DefaultControlSchemePrope
7c20 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 rty;..........[NonSerialized].pr
7c40 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 44 65 66 61 75 ivate.SerializedProperty.m_Defau
7c60 6c 74 41 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e ltActionMapProperty;..........[N
7c80 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 onSerialized].private.Serialized
7ca0 50 72 6f 70 65 72 74 79 20 6d 5f 4e 65 76 65 72 41 75 74 6f 53 77 69 74 63 68 43 6f 6e 74 72 6f Property.m_NeverAutoSwitchContro
7cc0 6c 53 63 68 65 6d 65 73 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 lSchemesProperty;..........[NonS
7ce0 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f erialized].private.SerializedPro
7d00 70 65 72 74 79 20 6d 5f 4e 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 50 72 6f 70 perty.m_NotificationBehaviorProp
7d20 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 erty;..........#if.UNITY_INPUT_S
7d40 59 53 54 45 4d 5f 45 4e 41 42 4c 45 5f 55 49 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 YSTEM_ENABLE_UI..........[NonSer
7d60 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 ialized].private.SerializedPrope
7d80 72 74 79 20 6d 5f 55 49 49 6e 70 75 74 4d 6f 64 75 6c 65 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 rty.m_UIInputModuleProperty;....
7da0 20 20 20 20 20 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c ......#endif..........[NonSerial
7dc0 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 ized].private.SerializedProperty
7de0 20 6d 5f 41 63 74 69 6f 6e 45 76 65 6e 74 73 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 .m_ActionEventsProperty;........
7e00 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c ..[NonSerialized].private.Serial
7e20 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 43 61 6d 65 72 61 50 72 6f 70 65 72 74 79 3b 0d 0a izedProperty.m_CameraProperty;..
7e40 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 ........[NonSerialized].private.
7e60 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 44 65 76 69 63 65 4c 6f 73 74 45 SerializedProperty.m_DeviceLostE
7e80 76 65 6e 74 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 ventProperty;..........[NonSeria
7ea0 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 lized].private.SerializedPropert
7ec0 79 20 6d 5f 44 65 76 69 63 65 52 65 67 61 69 6e 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 3b y.m_DeviceRegainedEventProperty;
7ee0 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 ..........[NonSerialized].privat
7f00 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 43 6f 6e 74 72 6f 6c 73 43 e.SerializedProperty.m_ControlsC
7f20 68 61 6e 67 65 64 45 76 65 6e 74 50 72 6f 70 65 72 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 hangedEventProperty;............
7f40 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 4e [NonSerialized].private.bool.m_N
7f60 6f 74 69 66 69 63 61 74 69 6f 6e 42 65 68 61 76 69 6f 72 49 6e 69 74 69 61 6c 69 7a 65 64 3b 0d otificationBehaviorInitialized;.
7f80 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 .........[NonSerialized].private
7fa0 20 62 6f 6f 6c 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 49 6e 69 74 69 61 6c 69 7a 65 64 3b 0d .bool.m_ActionAssetInitialized;.
7fc0 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f .....}..}..#endif.//.UNITY_EDITO
7fe0 52 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 50 6c 61 79 R...........................Play
8000 65 72 49 6e 70 75 74 45 64 69 74 6f 72 00 00 00 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e erInputEditor.......UnityEngine.
8020 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 00 00 InputSystem.Editor..