summaryrefslogtreecommitdiff
path: root/Library/Artifacts/28/2818745d667b79ba34d169ef56941b1c
blob: 27943b17743e5d3778ae25f892a7fb50d099644c (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 a6 54 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe .......T............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 f4 95 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 17 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e ............InputActionEditorWin
10a0 64 6f 77 00 58 95 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 dow.X...#if.UNITY_EDITOR..using.
10c0 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e System;..using.System.Collection
10e0 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0d 0a s.Generic;..using.System.Linq;..
1100 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 54 65 78 74 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 using.System.Text;..using.UnityE
1120 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 43 61 6c 6c 62 61 ditor;..using.UnityEditor.Callba
1140 63 6b 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 49 4d 47 55 49 2e 43 6f cks;..using.UnityEditor.IMGUI.Co
1160 6e 74 72 6f 6c 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 53 68 6f 72 74 ntrols;..using.UnityEditor.Short
1180 63 75 74 4d 61 6e 61 67 65 6d 65 6e 74 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 41 64 64 20 cutManagement;....////TODO:.Add.
11a0 22 52 65 76 65 72 74 22 20 62 75 74 74 6f 6e 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 "Revert".button....////TODO:.add
11c0 20 68 65 6c 70 65 72 73 20 74 6f 20 76 65 72 79 20 71 75 69 63 6b 6c 79 20 73 65 74 20 75 70 20 .helpers.to.very.quickly.set.up.
11e0 63 65 72 74 61 69 6e 20 63 6f 6d 6d 6f 6e 20 63 6f 6e 66 69 67 73 20 28 65 2e 67 2e 20 22 46 50 certain.common.configs.(e.g.."FP
1200 53 20 43 6f 6e 74 72 6f 6c 73 22 20 69 6e 20 61 64 64 2d 61 63 74 69 6f 6e 20 63 6f 6e 74 65 78 S.Controls".in.add-action.contex
1220 74 20 6d 65 6e 75 3b 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 22 57 41 53 44 20 43 6f 6e 74 72 6f 6c t.menu;..////......"WASD.Control
1240 22 20 69 6e 20 61 64 64 2d 62 69 6e 64 69 6e 67 20 63 6f 6e 74 65 78 74 20 6d 65 6e 75 29 0d 0a ".in.add-binding.context.menu)..
1260 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 73 68 6f 75 6c 64 20 77 65 20 6c 69 73 74 65 6e 20 66 ..////REVIEW:.should.we.listen.f
1280 6f 72 20 55 6e 69 74 79 20 70 72 6f 6a 65 63 74 20 73 61 76 65 73 20 61 6e 64 20 73 61 76 65 20 or.Unity.project.saves.and.save.
12a0 64 69 72 74 79 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 73 65 74 73 20 61 6c 6f 6e 67 dirty..inputactions.assets.along
12c0 20 77 69 74 68 20 69 74 3f 0d 0a 0d 0a 2f 2f 2f 2f 46 49 58 4d 45 3a 20 77 68 65 6e 20 73 61 76 .with.it?....////FIXME:.when.sav
12e0 69 6e 67 2c 20 70 72 6f 63 65 73 73 6f 72 2f 69 6e 74 65 72 61 63 74 69 6f 6e 20 73 65 6c 65 63 ing,.processor/interaction.selec
1300 74 69 6f 6e 20 69 73 20 63 6c 65 61 72 65 64 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 70 65 72 tion.is.cleared....////TODO:.per
1320 73 69 73 74 20 76 69 65 77 20 73 74 61 74 65 20 6f 66 20 61 73 73 65 74 20 69 6e 20 4c 69 62 72 sist.view.state.of.asset.in.Libr
1340 61 72 79 2f 20 66 6f 6c 64 65 72 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e ary/.folder....namespace.UnityEn
1360 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..{......
1380 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 6e 20 65 64 69 74 6f 72 ///.<summary>......///.An.editor
13a0 20 77 69 6e 64 6f 77 20 74 6f 20 65 64 69 74 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 .window.to.edit..inputactions.as
13c0 73 65 74 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f sets.......///.</summary>....../
13e0 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 2e 69 6e 70 75 74 //.<remarks>......///.The..input
1400 61 63 74 69 6f 6e 73 20 65 64 69 74 6f 72 20 63 6f 64 65 20 64 6f 65 73 20 6e 6f 74 20 72 65 61 actions.editor.code.does.not.rea
1420 6c 6c 79 20 73 65 70 61 72 61 74 65 20 62 65 74 77 65 65 6e 20 6d 6f 64 65 6c 20 61 6e 64 20 76 lly.separate.between.model.and.v
1440 69 65 77 2e 20 53 65 6c 65 63 74 69 6f 6e 20 73 74 61 74 65 20 69 73 20 63 6f 6e 74 61 69 6e 65 iew..Selection.state.is.containe
1460 64 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 20 74 68 65 20 74 72 65 65 20 76 69 65 77 73 20 61 6e 64 d......///.in.the.tree.views.and
1480 20 70 65 72 73 69 73 74 65 6e 74 20 61 63 72 6f 73 73 20 64 6f 6d 61 69 6e 20 72 65 6c 6f 61 64 .persistent.across.domain.reload
14a0 73 20 76 69 61 20 3c 73 65 65 20 63 72 65 66 3d 22 54 72 65 65 56 69 65 77 53 74 61 74 65 22 2f s.via.<see.cref="TreeViewState"/
14c0 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 69 6e 74 65 >.......///.</remarks>......inte
14e0 72 6e 61 6c 20 63 6c 61 73 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 rnal.class.InputActionEditorWind
1500 6f 77 20 3a 20 45 64 69 74 6f 72 57 69 6e 64 6f 77 2c 20 49 44 69 73 70 6f 73 61 62 6c 65 0d 0a ow.:.EditorWindow,.IDisposable..
1520 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 ....{..........///.<summary>....
1540 20 20 20 20 20 20 2f 2f 2f 20 4f 70 65 6e 20 77 69 6e 64 6f 77 20 69 66 20 73 6f 6d 65 6f 6e 65 ......///.Open.window.if.someone
1560 20 63 6c 69 63 6b 73 20 6f 6e 20 61 6e 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 73 65 .clicks.on.an..inputactions.asse
1580 74 20 6f 72 20 61 6e 20 61 63 74 69 6f 6e 20 69 6e 73 69 64 65 20 6f 66 20 69 74 20 6f 72 0d 0a t.or.an.action.inside.of.it.or..
15a0 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 66 20 73 6f 6d 65 6f 6e 65 20 68 69 74 73 20 74 68 65 20 ........///.if.someone.hits.the.
15c0 22 45 64 69 74 20 41 73 73 65 74 22 20 62 75 74 74 6f 6e 20 69 6e 20 74 68 65 20 69 6d 70 6f 72 "Edit.Asset".button.in.the.impor
15e0 74 65 72 20 69 6e 73 70 65 63 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 ter.inspector...........///.</su
1600 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 5b 53 79 73 74 65 6d 2e 44 69 61 67 6e 6f 73 74 mmary>..........[System.Diagnost
1620 69 63 73 2e 43 6f 64 65 41 6e 61 6c 79 73 69 73 2e 53 75 70 70 72 65 73 73 4d 65 73 73 61 67 65 ics.CodeAnalysis.SuppressMessage
1640 28 22 4d 69 63 72 6f 73 6f 66 74 2e 55 73 61 67 65 22 2c 20 22 43 41 31 38 30 31 3a 52 65 76 69 ("Microsoft.Usage",."CA1801:Revi
1660 65 77 55 6e 75 73 65 64 50 61 72 61 6d 65 74 65 72 73 22 2c 20 4d 65 73 73 61 67 65 49 64 20 3d ewUnusedParameters",.MessageId.=
1680 20 22 6c 69 6e 65 22 2c 20 4a 75 73 74 69 66 69 63 61 74 69 6f 6e 20 3d 20 22 6c 69 6e 65 20 70 ."line",.Justification.=."line.p
16a0 61 72 61 6d 65 74 65 72 20 72 65 71 75 69 72 65 64 20 62 79 20 4f 6e 4f 70 65 6e 41 73 73 65 74 arameter.required.by.OnOpenAsset
16c0 20 61 74 74 72 69 62 75 74 65 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 4f 6e 4f 70 65 6e 41 73 .attribute")]..........[OnOpenAs
16e0 73 65 74 5d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c set]..........public.static.bool
1700 20 4f 6e 4f 70 65 6e 41 73 73 65 74 28 69 6e 74 20 69 6e 73 74 61 6e 63 65 49 64 2c 20 69 6e 74 .OnOpenAsset(int.instanceId,.int
1720 20 6c 69 6e 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 .line)..........{..............v
1740 61 72 20 70 61 74 68 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 74 41 73 73 65 74 ar.path.=.AssetDatabase.GetAsset
1760 50 61 74 68 28 69 6e 73 74 61 6e 63 65 49 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 Path(instanceId);..............i
1780 66 20 28 21 70 61 74 68 2e 45 6e 64 73 57 69 74 68 28 6b 5f 46 69 6c 65 45 78 74 65 6e 73 69 6f f.(!path.EndsWith(k_FileExtensio
17a0 6e 2c 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 75 6c n,.StringComparison.InvariantCul
17c0 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tureIgnoreCase))................
17e0 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 ..return.false;................s
1800 74 72 69 6e 67 20 6d 61 70 54 6f 53 65 6c 65 63 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 tring.mapToSelect.=.null;.......
1820 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 61 63 74 69 6f 6e 54 6f 53 65 6c 65 63 74 20 3d 20 6e .......string.actionToSelect.=.n
1840 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 72 61 62 20 49 6e 70 75 ull;................//.Grab.Inpu
1860 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f tActionAsset...............//.NO
1880 54 45 3a 20 57 65 20 64 65 66 65 72 20 63 68 65 63 6b 69 6e 67 20 6f 75 74 20 61 6e 20 61 73 73 TE:.We.defer.checking.out.an.ass
18a0 65 74 20 75 6e 74 69 6c 20 77 65 20 73 61 76 65 20 69 74 2e 20 54 68 69 73 20 61 6c 6c 6f 77 73 et.until.we.save.it..This.allows
18c0 20 61 20 75 73 65 72 20 74 6f 20 6f 70 65 6e 20 61 6e 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 .a.user.to.open.an..inputactions
18e0 20 61 73 73 65 74 20 61 6e 64 20 6c 6f 6f 6b 20 61 74 20 69 74 0d 0a 20 20 20 20 20 20 20 20 20 .asset.and.look.at.it...........
1900 20 20 20 2f 2f 20 20 20 20 20 20 20 77 69 74 68 6f 75 74 20 66 6f 72 63 69 6e 67 20 61 20 63 68 ...//.......without.forcing.a.ch
1920 65 63 6b 6f 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 62 6a 20 3d 20 45 eckout...............var.obj.=.E
1940 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 49 6e 73 74 61 6e 63 65 49 44 54 6f 4f 62 6a 65 63 74 28 ditorUtility.InstanceIDToObject(
1960 69 6e 73 74 61 6e 63 65 49 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 instanceId);..............var.as
1980 73 65 74 20 3d 20 6f 62 6a 20 61 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 3b 0d 0a set.=.obj.as.InputActionAsset;..
19a0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 73 73 65 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a ............if.(asset.==.null)..
19c0 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 ............{................../
19e0 2f 20 43 68 65 63 6b 20 69 66 20 74 68 65 20 75 73 65 72 20 63 6c 69 63 6b 65 64 20 6f 6e 20 61 /.Check.if.the.user.clicked.on.a
1a00 6e 20 61 63 74 69 6f 6e 20 69 6e 73 69 64 65 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 n.action.inside.the.asset.......
1a20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 20 ............var.actionReference.
1a40 3d 20 6f 62 6a 20 61 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 3b 0d 0a =.obj.as.InputActionReference;..
1a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 52 65 66 65 72 65 ................if.(actionRefere
1a80 6e 63 65 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 20 7b 0d nce.!=.null)..................{.
1aa0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 20 3d 20 61 63 74 .....................asset.=.act
1ac0 69 6f 6e 52 65 66 65 72 65 6e 63 65 2e 61 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ionReference.asset;.............
1ae0 20 20 20 20 20 20 20 20 20 6d 61 70 54 6f 53 65 6c 65 63 74 20 3d 20 61 63 74 69 6f 6e 52 65 66 .........mapToSelect.=.actionRef
1b00 65 72 65 6e 63 65 2e 61 63 74 69 6f 6e 2e 61 63 74 69 6f 6e 4d 61 70 2e 6e 61 6d 65 3b 0d 0a 20 erence.action.actionMap.name;...
1b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 54 6f 53 65 6c 65 63 ...................actionToSelec
1b40 74 20 3d 20 61 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 2e 61 63 74 69 6f 6e 2e 6e 61 6d 65 3b t.=.actionReference.action.name;
1b60 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 20 20 ..................}.............
1b80 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 .....else......................r
1ba0 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 eturn.false;..............}.....
1bc0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 49 74 27 64 20 62 65 20 67 ...........////REVIEW:.It'd.be.g
1be0 72 65 61 74 20 69 66 20 74 68 65 20 77 69 6e 64 6f 77 20 67 6f 74 20 64 6f 63 6b 65 64 20 62 79 reat.if.the.window.got.docked.by
1c00 20 64 65 66 61 75 6c 74 20 62 75 74 20 74 68 65 20 70 75 62 6c 69 63 20 45 64 69 74 6f 72 57 69 .default.but.the.public.EditorWi
1c20 6e 64 6f 77 20 41 50 49 20 64 6f 65 73 6e 27 74 20 61 6c 6c 6f 77 20 74 68 61 74 0d 0a 20 20 20 ndow.API.doesn't.allow.that.....
1c40 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 20 74 6f 20 62 65 20 64 6f 6e 65 20 .........////........to.be.done.
1c60 66 6f 72 20 77 69 6e 64 6f 77 73 20 74 68 61 74 20 61 72 65 6e 27 74 20 73 69 6e 67 6c 65 74 6f for.windows.that.aren't.singleto
1c80 6e 73 20 28 47 65 74 57 69 6e 64 6f 77 3c 54 3e 28 29 20 77 69 6c 6c 20 6f 6e 6c 79 20 63 72 65 ns.(GetWindow<T>().will.only.cre
1ca0 61 74 65 20 6f 6e 65 20 77 69 6e 64 6f 77 20 61 6e 64 20 69 74 27 73 20 74 68 65 0d 0a 20 20 20 ate.one.window.and.it's.the.....
1cc0 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 20 20 20 20 20 20 20 6f 6e 6c 79 20 77 61 79 20 74 6f .........////........only.way.to
1ce0 20 67 65 74 20 70 72 6f 67 72 61 6d 6d 61 74 69 63 20 64 6f 63 6b 69 6e 67 20 77 69 74 68 20 74 .get.programmatic.docking.with.t
1d00 68 65 20 63 75 72 72 65 6e 74 20 41 50 49 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f he.current.API)...............//
1d20 20 53 65 65 20 69 66 20 77 65 20 68 61 76 65 20 61 6e 20 65 78 69 73 74 69 6e 67 20 65 64 69 74 .See.if.we.have.an.existing.edit
1d40 6f 72 20 77 69 6e 64 6f 77 20 74 68 61 74 20 68 61 73 20 74 68 65 20 61 73 73 65 74 20 6f 70 65 or.window.that.has.the.asset.ope
1d60 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 46 69 6e n...............var.window.=.Fin
1d80 64 45 64 69 74 6f 72 46 6f 72 41 73 73 65 74 28 61 73 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 dEditorForAsset(asset);.........
1da0 20 20 20 20 20 69 66 20 28 77 69 6e 64 6f 77 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 .....if.(window.==.null)........
1dc0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 2c 20 ......{..................//.No,.
1de0 73 6f 20 63 72 65 61 74 65 20 61 20 6e 65 77 20 77 69 6e 64 6f 77 2e 0d 0a 20 20 20 20 20 20 20 so.create.a.new.window..........
1e00 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 20 3d 20 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 .........window.=.CreateInstance
1e20 3c 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 3e 28 29 3b 0d 0a 20 20 <InputActionEditorWindow>();....
1e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 53 65 74 41 73 73 65 74 28 61 73 ..............window.SetAsset(as
1e60 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 set);..............}............
1e80 20 20 77 69 6e 64 6f 77 2e 53 68 6f 77 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 69 ..window.Show();..............wi
1ea0 6e 64 6f 77 2e 46 6f 63 75 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ndow.Focus();................//.
1ec0 49 66 20 75 73 65 72 20 63 6c 69 63 6b 65 64 20 6f 6e 20 61 6e 20 61 63 74 69 6f 6e 20 69 6e 73 If.user.clicked.on.an.action.ins
1ee0 69 64 65 20 74 68 65 20 61 73 73 65 74 2c 20 66 6f 63 75 73 20 6f 6e 20 74 68 61 74 20 61 63 74 ide.the.asset,.focus.on.that.act
1f00 69 6f 6e 20 28 69 66 20 77 65 20 63 61 6e 20 66 69 6e 64 20 69 74 29 2e 0d 0a 20 20 20 20 20 20 ion.(if.we.can.find.it).........
1f20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 54 6f 53 65 6c 65 63 74 20 21 3d 20 6e 75 6c 6c ......if.(actionToSelect.!=.null
1f40 20 26 26 20 77 69 6e 64 6f 77 2e 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 54 72 79 53 .&&.window.m_ActionMapsTree.TryS
1f60 65 6c 65 63 74 49 74 65 6d 28 6d 61 70 54 6f 53 65 6c 65 63 74 29 29 0d 0a 20 20 20 20 20 20 20 electItem(mapToSelect)).........
1f80 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 4f .....{..................window.O
1fa0 6e 41 63 74 69 6f 6e 4d 61 70 54 72 65 65 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 28 29 nActionMapTreeSelectionChanged()
1fc0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 6d 5f 41 63 74 69 ;..................window.m_Acti
1fe0 6f 6e 73 54 72 65 65 2e 53 65 6c 65 63 74 49 74 65 6d 28 61 63 74 69 6f 6e 54 6f 53 65 6c 65 63 onsTree.SelectItem(actionToSelec
2000 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 t);..............}..............
2020 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 ..return.true;..........}.......
2040 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 .....public.static.InputActionEd
2060 69 74 6f 72 57 69 6e 64 6f 77 20 46 69 6e 64 45 64 69 74 6f 72 46 6f 72 41 73 73 65 74 28 49 6e itorWindow.FindEditorForAsset(In
2080 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 61 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 7b putActionAsset.asset)..........{
20a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 73 20 3d 20 52 65 73 6f ..............var.windows.=.Reso
20c0 75 72 63 65 73 2e 46 69 6e 64 4f 62 6a 65 63 74 73 4f 66 54 79 70 65 41 6c 6c 3c 49 6e 70 75 74 urces.FindObjectsOfTypeAll<Input
20e0 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ActionEditorWindow>();..........
2100 20 20 20 20 72 65 74 75 72 6e 20 77 69 6e 64 6f 77 73 2e 46 69 72 73 74 4f 72 44 65 66 61 75 6c ....return.windows.FirstOrDefaul
2120 74 28 77 20 3d 3e 20 77 2e 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 49 6d t(w.=>.w.m_ActionAssetManager.Im
2140 70 6f 72 74 65 64 41 73 73 65 74 4f 62 6a 65 63 74 45 71 75 61 6c 73 28 61 73 73 65 74 29 29 3b portedAssetObjectEquals(asset));
2160 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 73 74 ..........}............public.st
2180 61 74 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 20 46 69 6e atic.InputActionEditorWindow.Fin
21a0 64 45 64 69 74 6f 72 46 6f 72 41 73 73 65 74 57 69 74 68 47 55 49 44 28 73 74 72 69 6e 67 20 67 dEditorForAssetWithGUID(string.g
21c0 75 69 64 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 76 61 72 uid)..........{..............var
21e0 20 77 69 6e 64 6f 77 73 20 3d 20 52 65 73 6f 75 72 63 65 73 2e 46 69 6e 64 4f 62 6a 65 63 74 73 .windows.=.Resources.FindObjects
2200 4f 66 54 79 70 65 41 6c 6c 3c 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f OfTypeAll<InputActionEditorWindo
2220 77 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 77 69 6e 64 6f 77 w>();..............return.window
2240 73 2e 46 69 72 73 74 4f 72 44 65 66 61 75 6c 74 28 77 20 3d 3e 20 77 2e 6d 5f 41 63 74 69 6f 6e s.FirstOrDefault(w.=>.w.m_Action
2260 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 67 75 69 64 20 3d 3d 20 67 75 69 64 29 3b 0d 0a 20 20 20 AssetManager.guid.==.guid);.....
2280 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 73 74 61 74 69 63 20 .....}............public.static.
22a0 76 6f 69 64 20 52 65 66 72 65 73 68 41 6c 6c 4f 6e 41 73 73 65 74 52 65 69 6d 70 6f 72 74 28 29 void.RefreshAllOnAssetReimport()
22c0 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 52 ..........{..............if.(s_R
22e0 65 66 72 65 73 68 50 65 6e 64 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 efreshPending)..................
2300 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 64 6f 6e return;................//.We.don
2320 27 74 20 77 61 6e 74 20 74 6f 20 72 65 66 72 65 73 68 20 72 69 67 68 74 20 61 77 61 79 20 62 75 't.want.to.refresh.right.away.bu
2340 74 20 72 61 74 68 65 72 20 77 61 69 74 20 66 6f 72 20 74 68 65 20 6e 65 78 74 20 65 64 69 74 6f t.rather.wait.for.the.next.edito
2360 72 20 75 70 64 61 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 6f 20 74 68 65 6e r.update..............//.to.then
2380 20 64 6f 20 6f 6e 65 20 70 61 73 73 20 6f 66 20 72 65 66 72 65 73 68 69 6e 67 20 61 63 74 69 6f .do.one.pass.of.refreshing.actio
23a0 6e 20 65 64 69 74 6f 72 20 77 69 6e 64 6f 77 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 n.editor.windows...............E
23c0 64 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 20 52 65 ditorApplication.delayCall.+=.Re
23e0 66 72 65 73 68 41 6c 6c 4f 6e 41 73 73 65 74 52 65 69 6d 70 6f 72 74 43 61 6c 6c 62 61 63 6b 3b freshAllOnAssetReimportCallback;
2400 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 52 65 66 72 65 73 68 50 65 6e 64 69 6e 67 20 3d ..............s_RefreshPending.=
2420 20 74 72 75 65 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 .true;..........}............pub
2440 6c 69 63 20 76 6f 69 64 20 53 61 76 65 43 68 61 6e 67 65 73 54 6f 41 73 73 65 74 28 29 0d 0a 20 lic.void.SaveChangesToAsset()...
2460 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 41 73 .......{..............m_ActionAs
2480 73 65 74 4d 61 6e 61 67 65 72 2e 53 61 76 65 43 68 61 6e 67 65 73 54 6f 41 73 73 65 74 28 29 3b setManager.SaveChangesToAsset();
24a0 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 76 6f ..........}............public.vo
24c0 69 64 20 41 64 64 4e 65 77 41 63 74 69 6f 6e 4d 61 70 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d id.AddNewActionMap()..........{.
24e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 41 64 .............m_ActionMapsTree.Ad
2500 64 4e 65 77 41 63 74 69 6f 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 dNewActionMap();..........}.....
2520 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 64 64 4e 65 77 41 63 74 69 6f 6e 28 .......public.void.AddNewAction(
2540 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 20 4d 61 6b )..........{..............//.Mak
2560 65 20 73 75 72 65 20 77 65 20 68 61 76 65 20 61 6e 20 61 63 74 69 6f 6e 20 6d 61 70 2e 20 49 66 e.sure.we.have.an.action.map..If
2580 20 77 65 20 64 6f 6e 27 74 20 68 61 76 65 20 61 6e 20 61 63 74 69 6f 6e 20 6d 61 70 20 73 65 6c .we.don't.have.an.action.map.sel
25a0 65 63 74 65 64 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 72 65 66 75 73 65 20 74 68 ected,..............//.refuse.th
25c0 65 20 6f 70 65 72 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 e.operation...............var.ac
25e0 74 69 6f 6e 4d 61 70 49 74 65 6d 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 47 tionMapItem.=.m_ActionMapsTree.G
2600 65 74 53 65 6c 65 63 74 65 64 49 74 65 6d 73 28 29 2e 4f 66 54 79 70 65 3c 41 63 74 69 6f 6e 4d etSelectedItems().OfType<ActionM
2620 61 70 54 72 65 65 49 74 65 6d 3e 28 29 2e 46 69 72 73 74 4f 72 44 65 66 61 75 6c 74 28 29 3b 0d apTreeItem>().FirstOrDefault();.
2640 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 49 74 65 6d 20 3d .............if.(actionMapItem.=
2660 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 20 20 20 =.null)..............{..........
2680 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 42 65 65 70 28 29 ........EditorApplication.Beep()
26a0 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 20 20 20 ;..................return;......
26c0 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 6d 5f 41 63 74 69 6f ........}................m_Actio
26e0 6e 73 54 72 65 65 2e 41 64 64 4e 65 77 41 63 74 69 6f 6e 28 61 63 74 69 6f 6e 4d 61 70 49 74 65 nsTree.AddNewAction(actionMapIte
2700 6d 2e 70 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 m.property);..........}.........
2720 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 64 64 4e 65 77 42 69 6e 64 69 6e 67 28 29 0d 0a ...public.void.AddNewBinding()..
2740 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 20 4d 61 6b 65 20 73 ........{..............//.Make.s
2760 75 72 65 20 77 65 20 68 61 76 65 20 61 6e 20 61 63 74 69 6f 6e 20 73 65 6c 65 63 74 65 64 2e 0d ure.we.have.an.action.selected..
2780 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 49 74 65 6d 73 20 3d 20 6d .............var.actionItems.=.m
27a0 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 47 65 74 53 65 6c 65 63 74 65 64 49 74 65 6d 73 28 29 2e _ActionsTree.GetSelectedItems().
27c0 4f 66 54 79 70 65 3c 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 3e 28 29 3b 0d 0a 20 20 20 20 20 OfType<ActionTreeItem>();.......
27e0 20 20 20 20 20 20 20 69 66 20 28 21 61 63 74 69 6f 6e 49 74 65 6d 73 2e 41 6e 79 28 29 29 0d 0a .......if.(!actionItems.Any())..
2800 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 45 ............{..................E
2820 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 42 65 65 70 28 29 3b 0d 0a 20 20 20 20 20 20 ditorApplication.Beep();........
2840 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d ..........return;..............}
2860 0d 0a 0d 0a 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 69 74 65 ................foreach.(var.ite
2880 6d 20 69 6e 20 61 63 74 69 6f 6e 49 74 65 6d 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 m.in.actionItems)...............
28a0 20 20 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 41 64 64 4e 65 77 42 69 6e 64 69 6e 67 28 69 ...m_ActionsTree.AddNewBinding(i
28c0 74 65 6d 2e 70 72 6f 70 65 72 74 79 2c 20 69 74 65 6d 2e 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 tem.property,.item.actionMapProp
28e0 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 erty);..........}............pri
2900 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 52 65 66 72 65 73 68 41 6c 6c 4f 6e 41 73 73 vate.static.void.RefreshAllOnAss
2920 65 74 52 65 69 6d 70 6f 72 74 43 61 6c 6c 62 61 63 6b 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d etReimportCallback()..........{.
2940 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 52 65 66 72 65 73 68 50 65 6e 64 69 6e 67 20 3d 20 .............s_RefreshPending.=.
2960 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 68 65 6e 20 74 68 false;................//.When.th
2980 65 20 61 73 73 65 74 20 69 73 20 6d 6f 64 69 66 69 65 64 20 6f 75 74 73 69 64 65 20 6f 66 20 74 e.asset.is.modified.outside.of.t
29a0 68 65 20 65 64 69 74 6f 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 6e 64 20 74 68 he.editor..............//.and.th
29c0 65 20 69 6d 70 6f 72 74 65 72 20 73 65 74 74 69 6e 67 73 20 61 72 65 20 76 69 73 69 62 6c 65 20 e.importer.settings.are.visible.
29e0 69 6e 20 74 68 65 20 69 6e 73 70 65 63 74 6f 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f in.the.inspector..............//
2a00 20 74 68 65 20 61 73 73 65 74 20 72 65 66 65 72 65 6e 63 65 73 20 69 6e 20 74 68 65 20 69 6d 70 .the.asset.references.in.the.imp
2a20 6f 72 74 65 72 20 69 6e 73 70 65 63 74 6f 72 20 6e 65 65 64 20 74 6f 20 62 65 20 66 6f 72 63 65 orter.inspector.need.to.be.force
2a40 20 72 65 62 75 69 6c 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 28 6f 74 68 65 72 77 .rebuild..............//.(otherw
2a60 69 73 65 20 77 65 20 67 65 74 73 20 6c 6f 74 73 20 6f 66 20 65 78 63 65 70 74 69 6f 6e 73 29 0d ise.we.gets.lots.of.exceptions).
2a80 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 63 74 69 76 65 45 64 69 74 6f 72 54 72 61 63 6b 65 72 .............ActiveEditorTracker
2aa0 2e 73 68 61 72 65 64 54 72 61 63 6b 65 72 2e 46 6f 72 63 65 52 65 62 75 69 6c 64 28 29 3b 0d 0a .sharedTracker.ForceRebuild();..
2ac0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 73 20 3d 20 52 65 73 6f ..............var.windows.=.Reso
2ae0 75 72 63 65 73 2e 46 69 6e 64 4f 62 6a 65 63 74 73 4f 66 54 79 70 65 41 6c 6c 3c 49 6e 70 75 74 urces.FindObjectsOfTypeAll<Input
2b00 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ActionEditorWindow>();..........
2b20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 77 69 6e 64 6f 77 20 69 6e 20 77 69 6e 64 6f ....foreach.(var.window.in.windo
2b40 77 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 52 65 6c 6f ws)..................window.Relo
2b60 61 64 41 73 73 65 74 46 72 6f 6d 46 69 6c 65 49 66 4e 6f 74 44 69 72 74 79 28 29 3b 0d 0a 20 20 adAssetFromFileIfNotDirty();....
2b80 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 62 6f 6f 6c 20 ......}............private.bool.
2ba0 43 6f 6e 66 69 72 6d 53 61 76 65 43 68 61 6e 67 65 73 49 66 4e 65 65 64 65 64 28 29 0d 0a 20 20 ConfirmSaveChangesIfNeeded()....
2bc0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 73 6b 20 66 6f 72 20 ......{..............//.Ask.for.
2be0 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 69 66 20 77 65 20 68 61 76 65 20 75 6e 73 61 76 65 64 20 confirmation.if.we.have.unsaved.
2c00 63 68 61 6e 67 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 46 6f 72 changes...............if.(!m_For
2c20 63 65 51 75 69 74 20 26 26 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 64 ceQuit.&&.m_ActionAssetManager.d
2c40 69 72 74 79 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 irty)..............{............
2c60 20 20 20 20 20 20 76 61 72 20 72 65 73 75 6c 74 20 3d 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 ......var.result.=.EditorUtility
2c80 2e 44 69 73 70 6c 61 79 44 69 61 6c 6f 67 43 6f 6d 70 6c 65 78 28 22 49 6e 70 75 74 20 41 63 74 .DisplayDialogComplex("Input.Act
2ca0 69 6f 6e 20 41 73 73 65 74 20 68 61 73 20 62 65 65 6e 20 6d 6f 64 69 66 69 65 64 22 2c 0d 0a 20 ion.Asset.has.been.modified",...
2cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 44 6f 20 79 6f 75 20 77 61 6e 74 ...................$"Do.you.want
2ce0 20 74 6f 20 73 61 76 65 20 74 68 65 20 63 68 61 6e 67 65 73 20 79 6f 75 20 6d 61 64 65 20 69 6e .to.save.the.changes.you.made.in
2d00 3a 5c 6e 7b 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 70 61 74 68 7d 5c 6e :\n{m_ActionAssetManager.path}\n
2d20 5c 6e 59 6f 75 72 20 63 68 61 6e 67 65 73 20 77 69 6c 6c 20 62 65 20 6c 6f 73 74 20 69 66 20 79 \nYour.changes.will.be.lost.if.y
2d40 6f 75 20 64 6f 6e 27 74 20 73 61 76 65 20 74 68 65 6d 2e 22 2c 20 22 53 61 76 65 22 2c 20 22 43 ou.don't.save.them.",."Save",."C
2d60 61 6e 63 65 6c 22 2c 20 22 44 6f 6e 27 74 20 53 61 76 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 ancel",."Don't.Save");..........
2d80 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 72 65 73 75 6c 74 29 0d 0a 20 20 20 20 20 20 20 ........switch.(result).........
2da0 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 .........{......................
2dc0 63 61 73 65 20 30 3a 20 2f 2f 20 53 61 76 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 case.0:.//.Save.................
2de0 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 53 61 .........m_ActionAssetManager.Sa
2e00 76 65 43 68 61 6e 67 65 73 54 6f 41 73 73 65 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 veChangesToAsset();.............
2e20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 .............m_ActionAssetManage
2e40 72 2e 43 6c 65 61 6e 75 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r.Cleanup();....................
2e60 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ......break;....................
2e80 20 20 63 61 73 65 20 31 3a 20 2f 2f 20 43 61 6e 63 65 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..case.1:.//.Cancel.............
2ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 73 74 61 6e 74 69 61 74 65 28 74 68 69 73 29 2e 53 .............Instantiate(this).S
2ec0 68 6f 77 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 how();..........................
2ee0 2f 2f 20 43 61 6e 63 65 6c 20 65 64 69 74 6f 72 20 71 75 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 //.Cancel.editor.quit...........
2f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 ................return.false;...
2f20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 32 3a 20 2f 2f 20 44 6f ...................case.2:.//.Do
2f40 6e 27 74 20 73 61 76 65 2c 20 64 6f 6e 27 74 20 61 73 6b 20 61 67 61 69 6e 2e 0d 0a 20 20 20 20 n't.save,.don't.ask.again.......
2f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 46 6f 72 63 65 51 75 69 74 20 ....................m_ForceQuit.
2f80 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =.true;.........................
2fa0 20 62 72 65 61 6b 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 .break;..................}......
2fc0 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 ........}..............return.tr
2fe0 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 ue;..........}............privat
3000 65 20 62 6f 6f 6c 20 45 64 69 74 6f 72 57 61 6e 74 73 54 6f 51 75 69 74 28 29 0d 0a 20 20 20 20 e.bool.EditorWantsToQuit()......
3020 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 43 6f 6e 66 69 72 ....{..............return.Confir
3040 6d 53 61 76 65 43 68 61 6e 67 65 73 49 66 4e 65 65 64 65 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 mSaveChangesIfNeeded();.........
3060 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 4f 6e 45 6e 61 .}............private.void.OnEna
3080 62 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 6d 69 ble()..........{..............mi
30a0 6e 53 69 7a 65 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 36 30 30 2c 20 33 30 30 29 3b 0d 0a nSize.=.new.Vector2(600,.300);..
30c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 74 6f 6f 6c ..............//.Initialize.tool
30e0 62 61 72 2e 20 57 65 20 6b 65 65 70 20 74 68 65 20 74 6f 6f 6c 62 61 72 20 61 63 72 6f 73 73 20 bar..We.keep.the.toolbar.across.
3100 64 6f 6d 61 69 6e 20 72 65 6c 6f 61 64 73 20 62 75 74 20 77 65 0d 0a 20 20 20 20 20 20 20 20 20 domain.reloads.but.we...........
3120 20 20 20 2f 2f 20 77 69 6c 6c 20 6c 6f 73 65 20 74 68 65 20 64 65 6c 65 67 61 74 65 73 2e 0d 0a ...//.will.lose.the.delegates...
3140 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 54 6f 6f 6c 62 61 72 20 3d 3d 20 6e 75 6c ............if.(m_Toolbar.==.nul
3160 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 20 3d 20 l)..................m_Toolbar.=.
3180 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 54 6f 6f 6c 62 61 72 28 29 3b 0d new.InputActionEditorToolbar();.
31a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 53 65 61 72 63 68 43 .............m_Toolbar.onSearchC
31c0 68 61 6e 67 65 64 20 3d 20 4f 6e 54 6f 6f 6c 62 61 72 53 65 61 72 63 68 43 68 61 6e 67 65 64 3b hanged.=.OnToolbarSearchChanged;
31e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 53 65 6c 65 63 74 ..............m_Toolbar.onSelect
3200 65 64 53 63 68 65 6d 65 43 68 61 6e 67 65 64 20 3d 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d edSchemeChanged.=.OnControlSchem
3220 65 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 eSelectionChanged;..............
3240 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 53 65 6c 65 63 74 65 64 44 65 76 69 63 65 43 68 61 6e 67 65 m_Toolbar.onSelectedDeviceChange
3260 64 20 3d 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e d.=.OnControlSchemeSelectionChan
3280 67 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 53 61 ged;..............m_Toolbar.onSa
32a0 76 65 20 3d 20 53 61 76 65 43 68 61 6e 67 65 73 54 6f 41 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 ve.=.SaveChangesToAsset;........
32c0 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 ......m_Toolbar.onControlSchemes
32e0 43 68 61 6e 67 65 64 20 3d 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 4d 6f 64 69 66 69 Changed.=.OnControlSchemesModifi
3300 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 6f 6e 43 6f 6e ed;..............m_Toolbar.onCon
3320 74 72 6f 6c 53 63 68 65 6d 65 52 65 6e 61 6d 65 64 20 3d 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 trolSchemeRenamed.=.OnControlSch
3340 65 6d 65 52 65 6e 61 6d 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 emeRenamed;..............m_Toolb
3360 61 72 2e 6f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 44 65 6c 65 74 65 64 20 3d 20 4f 6e 43 6f ar.onControlSchemeDeleted.=.OnCo
3380 6e 74 72 6f 6c 53 63 68 65 6d 65 44 65 6c 65 74 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ntrolSchemeDeleted;.............
33a0 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 77 61 6e 74 73 54 6f 51 75 69 74 20 2b .EditorApplication.wantsToQuit.+
33c0 3d 20 45 64 69 74 6f 72 57 61 6e 74 73 54 6f 51 75 69 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 =.EditorWantsToQuit;............
33e0 20 20 20 20 2f 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 61 66 74 65 72 20 61 73 73 65 6d 62 6c 79 ....//.Initialize.after.assembly
3400 20 72 65 6c 6f 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 .reload...............if.(m_Acti
3420 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 onAssetManager.!=.null).........
3440 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 41 .....{..................if.(!m_A
3460 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 49 6e 69 74 69 61 6c 69 7a 65 28 29 29 0d ctionAssetManager.Initialize()).
3480 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 .................{..............
34a0 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 20 61 73 73 65 74 20 77 65 20 77 61 6e 74 20 74 6f 20 ........//.The.asset.we.want.to.
34c0 65 64 69 74 20 6e 6f 20 6c 6f 6e 67 65 72 20 65 78 69 73 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 edit.no.longer.exists...........
34e0 20 20 20 20 20 20 20 20 20 20 20 20 43 6c 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ............Close();............
3500 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........return;...............
3520 20 20 20 7d 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 41 73 ...}..................m_ActionAs
3540 73 65 74 4d 61 6e 61 67 65 72 2e 6f 6e 44 69 72 74 79 43 68 61 6e 67 65 64 20 3d 20 4f 6e 44 69 setManager.onDirtyChanged.=.OnDi
3560 72 74 79 43 68 61 6e 67 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 rtyChanged;....................I
3580 6e 69 74 69 61 6c 69 7a 65 54 72 65 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d nitializeTrees();..............}
35a0 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 ..........}............private.v
35c0 6f 69 64 20 4f 6e 44 65 73 74 72 6f 79 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 oid.OnDestroy()..........{......
35e0 20 20 20 20 20 20 20 20 43 6f 6e 66 69 72 6d 53 61 76 65 43 68 61 6e 67 65 73 49 66 4e 65 65 64 ........ConfirmSaveChangesIfNeed
3600 65 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 ed();..............EditorApplica
3620 74 69 6f 6e 2e 77 61 6e 74 73 54 6f 51 75 69 74 20 2d 3d 20 45 64 69 74 6f 72 57 61 6e 74 73 54 tion.wantsToQuit.-=.EditorWantsT
3640 6f 51 75 69 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 oQuit;..........}............//.
3660 53 65 74 20 61 73 73 65 74 20 77 6f 75 6c 64 20 75 73 75 61 6c 6c 79 20 6f 6e 6c 79 20 62 65 20 Set.asset.would.usually.only.be.
3680 63 61 6c 6c 65 64 20 77 68 65 6e 20 74 68 65 20 77 69 6e 64 6f 77 20 69 73 20 6f 70 65 6e 0d 0a called.when.the.window.is.open..
36a0 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 41 73 73 65 74 28 49 6e ........private.void.SetAsset(In
36c0 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 61 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 7b putActionAsset.asset)..........{
36e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 ..............m_ActionAssetManag
3700 65 72 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 er.=.new.InputActionAssetManager
3720 28 61 73 73 65 74 29 20 7b 6f 6e 44 69 72 74 79 43 68 61 6e 67 65 64 20 3d 20 4f 6e 44 69 72 74 (asset).{onDirtyChanged.=.OnDirt
3740 79 43 68 61 6e 67 65 64 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e yChanged};..............m_Action
3760 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 49 6e 69 74 69 61 6c 69 7a 65 28 29 3b 0d 0a 0d 0a 20 20 AssetManager.Initialize();......
3780 20 20 20 20 20 20 20 20 20 20 49 6e 69 74 69 61 6c 69 7a 65 54 72 65 65 73 28 29 3b 0d 0a 20 20 ..........InitializeTrees();....
37a0 20 20 20 20 20 20 20 20 20 20 4c 6f 61 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 28 29 3b 0d ..........LoadControlSchemes();.
37c0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 6c 65 63 74 20 66 69 72 73 74 20 61 ...............//.Select.first.a
37e0 63 74 69 6f 6e 20 6d 61 70 20 69 6e 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ction.map.in.asset..............
3800 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 53 65 6c 65 63 74 46 69 72 73 74 54 6f 70 .m_ActionMapsTree.SelectFirstTop
3820 6c 65 76 65 6c 49 74 65 6d 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 70 64 61 levelItem();................Upda
3840 74 65 57 69 6e 64 6f 77 54 69 74 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 teWindowTitle();..........}.....
3860 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 55 70 64 61 74 65 57 69 6e 64 6f 77 .......private.void.UpdateWindow
3880 54 69 74 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 Title()..........{..............
38a0 76 61 72 20 74 69 74 6c 65 20 3d 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 var.title.=.m_ActionAssetManager
38c0 2e 6e 61 6d 65 20 2b 20 22 20 28 49 6e 70 75 74 20 41 63 74 69 6f 6e 73 29 22 3b 0d 0a 20 20 20 .name.+.".(Input.Actions)";.....
38e0 20 20 20 20 20 20 20 20 20 6d 5f 54 69 74 6c 65 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e .........m_Title.=.new.GUIConten
3900 74 28 74 69 74 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 69 72 74 79 54 69 t(title);..............m_DirtyTi
3920 74 6c 65 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 28 2a 29 20 22 20 2b 20 6d 5f tle.=.new.GUIContent("(*).".+.m_
3940 54 69 74 6c 65 2e 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 43 Title.text);..............titleC
3960 6f 6e 74 65 6e 74 20 3d 20 6d 5f 54 69 74 6c 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a ontent.=.m_Title;..........}....
3980 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4c 6f 61 64 43 6f 6e 74 72 6f 6c ........private.void.LoadControl
39a0 53 63 68 65 6d 65 73 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 Schemes()..........{............
39c0 20 20 54 72 61 6e 73 66 65 72 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 28 73 61 76 65 3a 20 66 ..TransferControlSchemes(save:.f
39e0 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 alse);..........}............pri
3a00 76 61 74 65 20 76 6f 69 64 20 54 72 61 6e 73 66 65 72 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 vate.void.TransferControlSchemes
3a20 28 62 6f 6f 6c 20 73 61 76 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 (bool.save)..........{..........
3a40 20 20 20 20 2f 2f 20 54 68 65 20 65 61 73 69 65 73 74 20 77 61 79 20 74 6f 20 6c 6f 61 64 20 61 ....//.The.easiest.way.to.load.a
3a60 6e 64 20 73 61 76 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 20 69 73 20 75 73 69 6e 67 nd.save.control.schemes.is.using
3a80 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 69 65 73 20 74 6f 20 6a 75 73 74 20 74 72 .SerializedProperties.to.just.tr
3aa0 61 6e 73 66 65 72 20 74 68 65 20 64 61 74 61 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ansfer.the.data..............//.
3ac0 62 65 74 77 65 65 6e 20 74 68 65 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 61 between.the.InputControlScheme.a
3ae0 72 72 61 79 20 69 6e 20 74 68 65 20 74 6f 6f 6c 62 61 72 20 61 6e 64 20 74 68 65 20 6f 6e 65 20 rray.in.the.toolbar.and.the.one.
3b00 69 6e 20 74 68 65 20 61 73 73 65 74 2e 20 44 6f 69 6e 67 20 69 74 20 74 68 69 73 20 77 61 79 20 in.the.asset..Doing.it.this.way.
3b20 72 61 74 68 65 72 20 74 68 61 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6a 75 73 74 rather.than..............//.just
3b40 20 6f 76 65 72 77 72 69 74 69 6e 67 20 74 68 65 20 61 72 72 61 79 20 69 6e 20 6d 5f 41 73 73 65 .overwriting.the.array.in.m_Asse
3b60 74 4d 61 6e 61 67 65 72 2e 6d 5f 41 73 73 65 74 4f 62 6a 65 63 74 46 6f 72 45 64 69 74 69 6e 67 tManager.m_AssetObjectForEditing
3b80 20 64 69 72 65 63 74 6c 79 20 77 69 6c 6c 20 6d 61 6b 65 20 75 6e 64 6f 20 77 6f 72 6b 2e 0d 0a .directly.will.make.undo.work...
3ba0 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 76 61 72 20 65 64 69 74 6f 72 57 69 6e ............using.(var.editorWin
3bc0 64 6f 77 4f 62 6a 65 63 74 20 3d 20 6e 65 77 20 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 dowObject.=.new.SerializedObject
3be0 28 74 68 69 73 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 76 61 72 20 (this))..............using.(var.
3c00 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 57 69 6e controlSchemesArrayPropertyInWin
3c20 64 6f 77 20 3d 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f dow.=.editorWindowObject.FindPro
3c40 70 65 72 74 79 28 22 6d 5f 54 6f 6f 6c 62 61 72 2e 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 perty("m_Toolbar.m_ControlScheme
3c60 73 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 76 61 72 20 63 6f 6e s"))..............using.(var.con
3c80 74 72 6f 6c 53 63 68 65 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 41 73 73 65 74 20 trolSchemesArrayPropertyInAsset.
3ca0 3d 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 73 65 72 69 61 6c 69 7a 65 =.m_ActionAssetManager.serialize
3cc0 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 43 6f 6e 74 72 6f 6c 53 dObject.FindProperty("m_ControlS
3ce0 63 68 65 6d 65 73 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 chemes"))..............{........
3d00 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 63 6f 6e 74 72 6f 6c 53 63 ..........Debug.Assert(controlSc
3d20 68 65 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 57 69 6e 64 6f 77 20 21 3d 20 6e 75 hemesArrayPropertyInWindow.!=.nu
3d40 6c 6c 2c 20 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d ll,.$"Cannot.find.m_ControlSchem
3d60 65 73 20 69 6e 20 77 69 6e 64 6f 77 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 es.in.window");.................
3d80 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 41 72 72 61 .Debug.Assert(controlSchemesArra
3da0 79 50 72 6f 70 65 72 74 79 49 6e 41 73 73 65 74 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 43 61 6e 6e yPropertyInAsset.!=.null,.$"Cann
3dc0 6f 74 20 66 69 6e 64 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 20 69 6e 20 61 73 73 65 ot.find.m_ControlSchemes.in.asse
3de0 74 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 61 76 65 t");....................if.(save
3e00 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 20 20 20 )..................{............
3e20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6a 73 6f 6e 20 3d 20 63 6f 6e 74 72 6f 6c 53 63 68 65 ..........var.json.=.controlSche
3e40 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 57 69 6e 64 6f 77 2e 43 6f 70 79 54 6f 4a mesArrayPropertyInWindow.CopyToJ
3e60 73 6f 6e 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 63 6f 6e 74 son();......................cont
3e80 72 6f 6c 53 63 68 65 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 41 73 73 65 74 2e 52 rolSchemesArrayPropertyInAsset.R
3ea0 65 73 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 6a 73 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 estoreFromJson(json);...........
3ec0 20 20 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 4f 62 6a 65 63 74 2e 41 70 ...........editorWindowObject.Ap
3ee0 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 20 20 20 20 20 20 plyModifiedProperties();........
3f00 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 65 6c 73 ..........}..................els
3f20 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 e..................{............
3f40 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 6f 61 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ..........//.Load...............
3f60 20 20 20 20 20 20 20 20 76 61 72 20 6a 73 6f 6e 20 3d 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 ........var.json.=.controlScheme
3f80 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 41 73 73 65 74 2e 43 6f 70 79 54 6f 4a 73 6f 6e sArrayPropertyInAsset.CopyToJson
3fa0 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 63 6f 6e 74 72 6f 6c ();......................control
3fc0 53 63 68 65 6d 65 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 49 6e 57 69 6e 64 6f 77 2e 52 65 73 SchemesArrayPropertyInWindow.Res
3fe0 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 6a 73 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 toreFromJson(json);.............
4000 20 20 20 20 20 20 20 20 20 65 64 69 74 6f 72 57 69 6e 64 6f 77 4f 62 6a 65 63 74 2e 41 70 70 6c .........editorWindowObject.Appl
4020 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 57 69 74 68 6f 75 74 55 6e 64 6f 28 29 yModifiedPropertiesWithoutUndo()
4040 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 20 ;..................}............
4060 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 ..}..........}............privat
4080 65 20 76 6f 69 64 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 53 65 6c 65 63 74 69 6f 6e 43 e.void.OnControlSchemeSelectionC
40a0 68 61 6e 67 65 64 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 hanged()..........{.............
40c0 20 4f 6e 54 6f 6f 6c 62 61 72 53 65 61 72 63 68 43 68 61 6e 67 65 64 28 29 3b 0d 0a 20 20 20 20 .OnToolbarSearchChanged();......
40e0 20 20 20 20 20 20 20 20 4c 6f 61 64 50 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 6c 65 63 74 69 ........LoadPropertiesForSelecti
4100 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 on();..........}............priv
4120 61 74 65 20 76 6f 69 64 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 4d 6f 64 69 66 69 65 ate.void.OnControlSchemesModifie
4140 64 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 54 72 61 6e d()..........{..............Tran
4160 73 66 65 72 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 28 73 61 76 65 3a 20 74 72 75 65 29 3b 0d sferControlSchemes(save:.true);.
4180 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 ...............//.Control.scheme
41a0 20 63 68 61 6e 67 65 73 20 6d 61 79 20 61 66 66 65 63 74 20 74 68 65 20 73 65 61 72 63 68 20 66 .changes.may.affect.the.search.f
41c0 69 6c 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 6e 54 6f 6f 6c 62 61 72 53 65 61 ilter...............OnToolbarSea
41e0 72 63 68 43 68 61 6e 67 65 64 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 70 70 rchChanged();................App
4200 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a lyAndReloadTrees();..........}..
4220 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 43 6f 6e 74 72 6f 6c ..........private.void.OnControl
4240 53 63 68 65 6d 65 52 65 6e 61 6d 65 64 28 73 74 72 69 6e 67 20 6f 6c 64 42 69 6e 64 69 6e 67 47 SchemeRenamed(string.oldBindingG
4260 72 6f 75 70 2c 20 73 74 72 69 6e 67 20 6e 65 77 42 69 6e 64 69 6e 67 47 72 6f 75 70 29 0d 0a 20 roup,.string.newBindingGroup)...
4280 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 75 74 41 63 74 69 6f .......{..............InputActio
42a0 6e 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 52 65 70 6c 61 63 65 42 69 6e nSerializationHelpers.ReplaceBin
42c0 64 69 6e 67 47 72 6f 75 70 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 73 dingGroup(m_ActionAssetManager.s
42e0 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 erializedObject,................
4300 20 20 6f 6c 64 42 69 6e 64 69 6e 67 47 72 6f 75 70 2c 20 6e 65 77 42 69 6e 64 69 6e 67 47 72 6f ..oldBindingGroup,.newBindingGro
4320 75 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 70 70 6c 79 41 6e 64 52 65 6c 6f 61 64 up);..............ApplyAndReload
4340 54 72 65 65 73 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 Trees();..........}............p
4360 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 44 65 6c 65 74 rivate.void.OnControlSchemeDelet
4380 65 64 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 62 69 6e 64 69 6e 67 47 72 ed(string.name,.string.bindingGr
43a0 6f 75 70 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 44 65 62 oup)..........{..............Deb
43c0 75 67 2e 41 73 73 65 72 74 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 ug.Assert(!string.IsNullOrEmpty(
43e0 6e 61 6d 65 29 2c 20 22 43 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 6e 61 6d 65 20 73 68 6f 75 name),."Control.scheme.name.shou
4400 6c 64 20 6e 6f 74 20 62 65 20 65 6d 70 74 79 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ld.not.be.empty");..............
4420 44 65 62 75 67 2e 41 73 73 65 72 74 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 Debug.Assert(!string.IsNullOrEmp
4440 74 79 28 62 69 6e 64 69 6e 67 47 72 6f 75 70 29 2c 20 22 42 69 6e 64 69 6e 67 20 67 72 6f 75 70 ty(bindingGroup),."Binding.group
4460 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 65 6d 70 74 79 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 .should.not.be.empty");.........
4480 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 .......var.asset.=.m_ActionAsset
44a0 4d 61 6e 61 67 65 72 2e 6d 5f 41 73 73 65 74 4f 62 6a 65 63 74 46 6f 72 45 64 69 74 69 6e 67 3b Manager.m_AssetObjectForEditing;
44c0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 4d 61 73 6b 20 ................var.bindingMask.
44e0 3d 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 4d 61 73 6b 42 79 47 72 6f 75 70 28 62 69 6e 64 69 =.InputBinding.MaskByGroup(bindi
4500 6e 67 47 72 6f 75 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 63 68 65 6d ngGroup);..............var.schem
4520 65 48 61 73 42 69 6e 64 69 6e 67 73 20 3d 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 2e eHasBindings.=.asset.actionMaps.
4540 41 6e 79 28 6d 20 3d 3e 20 6d 2e 62 69 6e 64 69 6e 67 73 2e 41 6e 79 28 62 20 3d 3e 20 62 69 6e Any(m.=>.m.bindings.Any(b.=>.bin
4560 64 69 6e 67 4d 61 73 6b 2e 4d 61 74 63 68 65 73 28 72 65 66 20 62 29 29 29 3b 0d 0a 20 20 20 20 dingMask.Matches(ref.b)));......
4580 20 20 20 20 20 20 20 20 69 66 20 28 21 73 63 68 65 6d 65 48 61 73 42 69 6e 64 69 6e 67 73 29 0d ........if.(!schemeHasBindings).
45a0 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 20 20 .................return;........
45c0 20 20 20 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 74 68 69 73 20 64 6f 65 73 20 6e 6f 74 ........////FIXME:.this.does.not
45e0 20 64 65 6c 65 74 65 20 63 6f 6d 70 6f 73 69 74 65 73 20 74 68 61 74 20 68 61 76 65 20 62 69 6e .delete.composites.that.have.bin
4600 64 69 6e 67 73 20 69 6e 20 6f 6e 6c 79 20 6f 6e 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 dings.in.only.one.control.scheme
4620 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 6f 66 66 65 72 20 ..............////REVIEW:.offer.
4640 74 6f 20 64 6f 20 6e 6f 74 68 69 6e 67 20 61 6e 64 20 6c 65 61 76 65 20 61 6c 6c 20 62 69 6e 64 to.do.nothing.and.leave.all.bind
4660 69 6e 67 73 20 61 73 20 69 73 3f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 6c ings.as.is?..............var.del
4680 65 74 65 42 69 6e 64 69 6e 67 73 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 eteBindings.=..................E
46a0 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 44 69 73 70 6c 61 79 44 69 61 6c 6f 67 28 22 44 65 6c 65 ditorUtility.DisplayDialog("Dele
46c0 74 65 20 42 69 6e 64 69 6e 67 73 3f 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 te.Bindings?",..................
46e0 20 20 20 20 24 22 44 65 6c 65 74 65 20 62 69 6e 64 69 6e 67 73 20 66 6f 72 20 27 7b 6e 61 6d 65 ....$"Delete.bindings.for.'{name
4700 7d 27 20 61 73 20 77 65 6c 6c 3f 20 49 66 20 79 6f 75 20 73 65 6c 65 63 74 20 27 4e 6f 27 2c 20 }'.as.well?.If.you.select.'No',.
4720 74 68 65 20 62 69 6e 64 69 6e 67 73 20 77 69 6c 6c 20 6f 6e 6c 79 20 22 0d 0a 20 20 20 20 20 20 the.bindings.will.only."........
4740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 20 24 22 62 65 20 75 6e 61 73 73 69 67 6e 65 64 20 ..............+.$"be.unassigned.
4760 66 72 6f 6d 20 74 68 65 20 27 7b 6e 61 6d 65 7d 27 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 from.the.'{name}'.control.scheme
4780 20 62 75 74 20 6f 74 68 65 72 77 69 73 65 20 6c 65 66 74 20 61 73 20 69 73 2e 20 4e 6f 74 65 20 .but.otherwise.left.as.is..Note.
47a0 74 68 61 74 20 62 69 6e 64 69 6e 67 73 20 22 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 that.bindings.".................
47c0 20 20 20 20 20 2b 20 24 22 74 68 61 74 20 61 72 65 20 61 73 73 69 67 6e 65 64 20 74 6f 20 27 7b .....+.$"that.are.assigned.to.'{
47e0 6e 61 6d 65 7d 27 20 62 75 74 20 61 6c 73 6f 20 74 6f 20 6f 74 68 65 72 20 63 6f 6e 74 72 6f 6c name}'.but.also.to.other.control
4800 20 73 63 68 65 6d 65 73 20 77 69 6c 6c 20 62 65 20 6c 65 66 74 20 69 6e 20 70 6c 61 63 65 20 65 .schemes.will.be.left.in.place.e
4820 69 74 68 65 72 20 77 61 79 2e 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ither.way.",....................
4840 20 20 22 59 65 73 22 2c 20 22 4e 6f 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 .."Yes",."No");................I
4860 6e 70 75 74 41 63 74 69 6f 6e 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 52 nputActionSerializationHelpers.R
4880 65 70 6c 61 63 65 42 69 6e 64 69 6e 67 47 72 6f 75 70 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 eplaceBindingGroup(m_ActionAsset
48a0 4d 61 6e 61 67 65 72 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 20 62 69 6e 64 69 6e Manager.serializedObject,.bindin
48c0 67 47 72 6f 75 70 2c 20 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 6c gGroup,."",..................del
48e0 65 74 65 4f 72 70 68 61 6e 65 64 42 69 6e 64 69 6e 67 73 3a 20 64 65 6c 65 74 65 42 69 6e 64 69 eteOrphanedBindings:.deleteBindi
4900 6e 67 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 70 70 6c 79 41 6e 64 52 65 6c ngs);................ApplyAndRel
4920 6f 61 64 54 72 65 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 oadTrees();..........}..........
4940 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 54 72 65 65 73 28 29 ..private.void.InitializeTrees()
4960 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 20 57 65 20 70 ..........{..............//.We.p
4980 65 72 73 69 73 74 20 74 72 65 65 20 76 69 65 77 20 73 74 61 74 65 73 20 28 6d 6f 73 74 20 69 6d ersist.tree.view.states.(most.im
49a0 70 6f 72 74 61 6e 74 6c 79 2c 20 74 68 65 79 20 63 6f 6e 74 61 69 6e 20 6f 75 72 20 73 65 6c 65 portantly,.they.contain.our.sele
49c0 63 74 69 6f 6e 20 73 74 61 74 65 73 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 ction.states),..............//.s
49e0 6f 20 6f 6e 6c 79 20 63 72 65 61 74 65 20 74 68 6f 73 65 20 69 66 20 77 65 20 64 6f 6e 27 74 20 o.only.create.those.if.we.don't.
4a00 68 61 76 65 20 61 6e 79 20 79 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d have.any.yet...............if.(m
4a20 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 53 74 61 74 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 _ActionMapsTreeState.==.null)...
4a40 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 73 54 72 65 65 53 ...............m_ActionMapsTreeS
4a60 74 61 74 65 20 3d 20 6e 65 77 20 54 72 65 65 56 69 65 77 53 74 61 74 65 28 29 3b 0d 0a 20 20 20 tate.=.new.TreeViewState();.....
4a80 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 53 74 61 74 65 20 .........if.(m_ActionsTreeState.
4aa0 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 ==.null)..................m_Acti
4ac0 6f 6e 73 54 72 65 65 53 74 61 74 65 20 3d 20 6e 65 77 20 54 72 65 65 56 69 65 77 53 74 61 74 65 onsTreeState.=.new.TreeViewState
4ae0 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 74 72 65 ();................//.Create.tre
4b00 65 20 69 6e 20 6d 69 64 64 6c 65 20 70 61 6e 65 20 73 68 6f 77 69 6e 67 20 61 63 74 69 6f 6e 73 e.in.middle.pane.showing.actions
4b20 20 61 6e 64 20 62 69 6e 64 69 6e 67 73 2e 20 57 65 20 69 6e 69 74 69 61 6c 6c 79 0d 0a 20 20 20 .and.bindings..We.initially.....
4b40 20 20 20 20 20 20 20 20 20 2f 2f 20 6c 65 61 76 65 20 74 68 69 73 20 74 72 65 65 20 65 6d 70 74 .........//.leave.this.tree.empt
4b60 79 20 61 6e 64 20 70 6f 70 75 6c 61 74 65 20 69 74 20 62 79 20 73 65 6c 65 63 74 69 6e 67 20 61 y.and.populate.it.by.selecting.a
4b80 6e 20 61 63 74 69 6f 6e 20 6d 61 70 20 69 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 n.action.map.in.the.............
4ba0 20 2f 2f 20 6c 65 66 74 20 70 61 6e 65 20 74 72 65 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .//.left.pane.tree..............
4bc0 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e .m_ActionsTree.=.new.InputAction
4be0 54 72 65 65 56 69 65 77 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 73 65 TreeView(m_ActionAssetManager.se
4c00 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 53 74 61 rializedObject,.m_ActionsTreeSta
4c20 74 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 te)..............{..............
4c40 20 20 20 20 6f 6e 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 20 3d 20 4f 6e 41 63 74 69 6f ....onSelectionChanged.=.OnActio
4c60 6e 54 72 65 65 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 2c 0d 0a 20 20 20 20 20 20 20 20 nTreeSelectionChanged,..........
4c80 20 20 20 20 20 20 20 20 6f 6e 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 4d 6f 64 69 66 69 ........onSerializedObjectModifi
4ca0 65 64 20 3d 20 41 70 70 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 2c 0d 0a 20 20 20 20 20 ed.=.ApplyAndReloadTrees,.......
4cc0 20 20 20 20 20 20 20 20 20 20 20 64 72 61 77 4d 69 6e 75 73 42 75 74 74 6f 6e 20 3d 20 66 61 6c ...........drawMinusButton.=.fal
4ce0 73 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 20 3d 20 22 41 63 se,..................title.=."Ac
4d00 74 69 6f 6e 73 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 tions",..............};.........
4d20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 74 72 65 65 20 69 6e 20 6c 65 66 74 20 70 61 .......//.Create.tree.in.left.pa
4d40 6e 65 20 73 68 6f 77 69 6e 67 20 61 63 74 69 6f 6e 20 6d 61 70 73 2e 0d 0a 20 20 20 20 20 20 20 ne.showing.action.maps..........
4d60 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 20 3d 20 6e 65 77 20 49 6e 70 75 .....m_ActionMapsTree.=.new.Inpu
4d80 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e tActionTreeView(m_ActionAssetMan
4da0 61 67 65 72 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 20 6d 5f 41 63 74 69 6f 6e 4d ager.serializedObject,.m_ActionM
4dc0 61 70 73 54 72 65 65 53 74 61 74 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 apsTreeState)..............{....
4de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 42 75 69 6c 64 54 72 65 65 20 3d 20 28 29 20 3d ..............onBuildTree.=.().=
4e00 3e 0d 0a 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 41 63 74 69 >......................InputActi
4e20 6f 6e 54 72 65 65 56 69 65 77 2e 42 75 69 6c 64 57 69 74 68 4a 75 73 74 41 63 74 69 6f 6e 4d 61 onTreeView.BuildWithJustActionMa
4e40 70 73 46 72 6f 6d 41 73 73 65 74 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 psFromAsset(m_ActionAssetManager
4e60 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .serializedObject),.............
4e80 20 20 20 20 20 6f 6e 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 20 3d 20 4f 6e 41 63 74 69 .....onSelectionChanged.=.OnActi
4ea0 6f 6e 4d 61 70 54 72 65 65 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 2c 0d 0a 20 20 20 20 onMapTreeSelectionChanged,......
4ec0 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 4d 6f ............onSerializedObjectMo
4ee0 64 69 66 69 65 64 20 3d 20 41 70 70 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 2c 0d 0a 20 dified.=.ApplyAndReloadTrees,...
4f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 6e 48 61 6e 64 6c 65 41 64 64 4e 65 77 41 63 74 ...............onHandleAddNewAct
4f20 69 6f 6e 20 3d 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 41 64 64 4e 65 77 41 63 74 69 6f 6e ion.=.m_ActionsTree.AddNewAction
4f40 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 72 61 77 4d 69 6e 75 73 42 75 74 74 ,..................drawMinusButt
4f60 6f 6e 20 3d 20 66 61 6c 73 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 on.=.false,..................tit
4f80 6c 65 20 3d 20 22 41 63 74 69 6f 6e 20 4d 61 70 73 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 le.=."Action.Maps",.............
4fa0 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 .};..............m_ActionMapsTre
4fc0 65 2e 52 65 6c 6f 61 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f e.Reload();..............m_Actio
4fe0 6e 4d 61 70 73 54 72 65 65 2e 45 78 70 61 6e 64 41 6c 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 nMapsTree.ExpandAll();..........
5000 20 20 20 20 20 20 52 65 62 75 69 6c 64 41 63 74 69 6f 6e 54 72 65 65 28 29 3b 0d 0a 20 20 20 20 ......RebuildActionTree();......
5020 20 20 20 20 20 20 20 20 4c 6f 61 64 50 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 6c 65 63 74 69 ........LoadPropertiesForSelecti
5040 6f 6e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 79 6e 63 20 63 75 72 on();................//.Sync.cur
5060 72 65 6e 74 20 73 65 61 72 63 68 20 73 74 61 74 75 73 20 69 6e 20 74 6f 6f 6c 62 61 72 2e 0d 0a rent.search.status.in.toolbar...
5080 20 20 20 20 20 20 20 20 20 20 20 20 4f 6e 54 6f 6f 6c 62 61 72 53 65 61 72 63 68 43 68 61 6e 67 ............OnToolbarSearchChang
50a0 65 64 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 2f 2f 2f 20 ed();..........}............///.
50c0 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 79 6e 63 68 72 6f 6e 69 <summary>..........///.Synchroni
50e0 7a 65 20 74 68 65 20 73 65 61 72 63 68 20 66 69 6c 74 65 72 20 61 70 70 6c 69 65 64 20 74 6f 20 ze.the.search.filter.applied.to.
5100 74 68 65 20 74 72 65 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 the.trees...........///.</summar
5120 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 y>..........///.<remarks>.......
5140 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 6f 6e 6c 79 20 66 69 6c 74 65 72 20 74 68 65 ...///.Note.that.only.filter.the
5160 20 61 63 74 69 6f 6e 20 74 72 65 65 2e 20 54 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 74 72 65 .action.tree..The.action.map.tre
5180 65 20 72 65 6d 61 69 6e 73 20 75 6e 66 69 6c 74 65 72 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f e.remains.unfiltered.........../
51a0 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 //.</remarks>..........private.v
51c0 6f 69 64 20 4f 6e 54 6f 6f 6c 62 61 72 53 65 61 72 63 68 43 68 61 6e 67 65 64 28 29 0d 0a 20 20 oid.OnToolbarSearchChanged()....
51e0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 61 74 68 65 72 20 74 ......{..............//.Rather.t
5200 68 61 6e 20 61 64 64 69 6e 67 20 46 69 6c 74 65 72 43 72 69 74 65 72 69 6f 6e 20 69 6e 73 74 61 han.adding.FilterCriterion.insta
5220 6e 63 65 73 20 64 69 72 65 63 74 6c 79 2c 20 77 65 20 67 6f 20 74 68 72 6f 75 67 68 20 74 68 65 nces.directly,.we.go.through.the
5240 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 74 72 69 6e 67 2d 62 61 73 65 64 20 66 6f ..............//.string-based.fo
5260 72 6d 61 74 20 68 65 72 65 2e 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 74 79 70 69 6e 67 20 71 75 rmat.here..This.allows.typing.qu
5280 65 72 69 65 73 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20 74 68 65 20 73 65 61 72 63 68 20 62 eries.directly.into.the.search.b
52a0 61 72 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 61 72 63 68 53 74 72 ar.................var.searchStr
52c0 69 6e 67 42 75 66 66 65 72 20 3d 20 6e 65 77 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 28 29 3b ingBuffer.=.new.StringBuilder();
52e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 6c 61 69 6e 2d 74 65 78 74 20 73 65 ................//.Plain-text.se
5300 61 72 63 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 arch...............if.(!string.I
5320 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 61 72 63 68 54 65 78 sNullOrEmpty(m_Toolbar.searchTex
5340 74 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e t))..................searchStrin
5360 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 61 72 63 68 54 gBuffer.Append(m_Toolbar.searchT
5380 65 78 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 69 6c 74 65 72 20 62 ext);................//.Filter.b
53a0 79 20 62 69 6e 64 69 6e 67 20 67 72 6f 75 70 20 6f 66 20 73 65 6c 65 63 74 65 64 20 63 6f 6e 74 y.binding.group.of.selected.cont
53c0 72 6f 6c 20 73 63 68 65 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 54 rol.scheme...............if.(m_T
53e0 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 21 3d 20 oolbar.selectedControlScheme.!=.
5400 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 20 null)..............{............
5420 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 ......searchStringBuffer.Append(
5440 22 20 5c 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 ".\"");..................searchS
5460 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 tringBuffer.Append(InputActionTr
5480 65 65 56 69 65 77 2e 46 69 6c 74 65 72 43 72 69 74 65 72 69 6f 6e 2e 6b 5f 42 69 6e 64 69 6e 67 eeView.FilterCriterion.k_Binding
54a0 47 72 6f 75 70 54 61 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 GroupTag);..................sear
54c0 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 6d 5f 54 6f 6f 6c 62 61 72 2e chStringBuffer.Append(m_Toolbar.
54e0 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 56 61 6c 75 65 2e 62 69 6e 64 selectedControlScheme.Value.bind
5500 69 6e 67 47 72 6f 75 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 ingGroup);..................sear
5520 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 5c 22 27 29 3b 0d 0a 20 20 chStringBuffer.Append('\"');....
5540 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 46 69 ..........}................//.Fi
5560 6c 74 65 72 20 62 79 20 64 65 76 69 63 65 20 6c 61 79 6f 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 lter.by.device.layout...........
5580 20 20 20 20 69 66 20 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 44 65 76 69 63 65 ....if.(m_Toolbar.selectedDevice
55a0 52 65 71 75 69 72 65 6d 65 6e 74 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 Requirement.!=.null)............
55c0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e ..{..................searchStrin
55e0 67 42 75 66 66 65 72 2e 41 70 70 65 6e 64 28 22 20 5c 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 gBuffer.Append(".\"");..........
5600 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 70 65 6e ........searchStringBuffer.Appen
5620 64 28 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e 46 69 6c 74 65 72 43 72 69 74 d(InputActionTreeView.FilterCrit
5640 65 72 69 6f 6e 2e 6b 5f 44 65 76 69 63 65 4c 61 79 6f 75 74 54 61 67 29 3b 0d 0a 20 20 20 20 20 erion.k_DeviceLayoutTag);.......
5660 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 41 70 ...........searchStringBuffer.Ap
5680 70 65 6e 64 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 50 61 74 68 2e 54 72 79 47 65 74 44 65 76 69 pend(InputControlPath.TryGetDevi
56a0 63 65 4c 61 79 6f 75 74 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 44 65 76 69 63 ceLayout(m_Toolbar.selectedDevic
56c0 65 52 65 71 75 69 72 65 6d 65 6e 74 2e 56 61 6c 75 65 2e 63 6f 6e 74 72 6f 6c 50 61 74 68 29 29 eRequirement.Value.controlPath))
56e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 53 74 72 69 6e 67 42 ;..................searchStringB
5700 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 5c 22 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 uffer.Append('\"');.............
5720 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 61 72 63 68 53 74 72 69 .}................var.searchStri
5740 6e 67 20 3d 20 73 65 61 72 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 54 6f 53 74 72 69 6e 67 ng.=.searchStringBuffer.ToString
5760 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 ();..............if.(string.IsNu
5780 6c 6c 4f 72 45 6d 70 74 79 28 73 65 61 72 63 68 53 74 72 69 6e 67 29 29 0d 0a 20 20 20 20 20 20 llOrEmpty(searchString))........
57a0 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 43 6c 65 61 72 49 74 65 ..........m_ActionsTree.ClearIte
57c0 6d 53 65 61 72 63 68 46 69 6c 74 65 72 41 6e 64 52 65 6c 6f 61 64 28 29 3b 0d 0a 20 20 20 20 20 mSearchFilterAndReload();.......
57e0 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 .......else..................m_A
5800 63 74 69 6f 6e 73 54 72 65 65 2e 53 65 74 49 74 65 6d 53 65 61 72 63 68 46 69 6c 74 65 72 41 6e ctionsTree.SetItemSearchFilterAn
5820 64 52 65 6c 6f 61 64 28 73 65 61 72 63 68 53 74 72 69 6e 67 42 75 66 66 65 72 2e 54 6f 53 74 72 dReload(searchStringBuffer.ToStr
5840 69 6e 67 28 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 61 76 65 20 74 ing());................//.Have.t
5860 72 65 65 73 20 63 72 65 61 74 65 20 6e 65 77 20 62 69 6e 64 69 6e 67 73 20 77 69 74 68 20 74 68 rees.create.new.bindings.with.th
5880 65 20 72 69 67 68 74 20 62 69 6e 64 69 6e 67 20 67 72 6f 75 70 2e 0d 0a 20 20 20 20 20 20 20 20 e.right.binding.group...........
58a0 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 42 69 6e 64 69 6e 67 47 72 6f 75 70 20 3d 20 6d 5f ....var.currentBindingGroup.=.m_
58c0 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3f 2e 62 Toolbar.selectedControlScheme?.b
58e0 69 6e 64 69 6e 67 47 72 6f 75 70 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 indingGroup;..............m_Acti
5900 6f 6e 73 54 72 65 65 2e 62 69 6e 64 69 6e 67 47 72 6f 75 70 46 6f 72 4e 65 77 42 69 6e 64 69 6e onsTree.bindingGroupForNewBindin
5920 67 73 20 3d 20 63 75 72 72 65 6e 74 42 69 6e 64 69 6e 67 47 72 6f 75 70 3b 0d 0a 20 20 20 20 20 gs.=.currentBindingGroup;.......
5940 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 62 69 6e 64 69 6e 67 47 .......m_ActionMapsTree.bindingG
5960 72 6f 75 70 46 6f 72 4e 65 77 42 69 6e 64 69 6e 67 73 20 3d 20 63 75 72 72 65 6e 74 42 69 6e 64 roupForNewBindings.=.currentBind
5980 69 6e 67 47 72 6f 75 70 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ingGroup;..........}............
59a0 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 79 6e 63 68 ///.<summary>..........///.Synch
59c0 72 6f 6e 69 7a 65 20 74 68 65 20 64 69 73 70 6c 61 79 20 73 74 61 74 65 20 74 6f 20 74 68 65 20 ronize.the.display.state.to.the.
59e0 63 75 72 72 65 6e 74 6c 79 20 73 65 6c 65 63 74 65 64 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a currently.selected.action.map...
5a00 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 ........///.</summary>..........
5a20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 41 63 74 69 6f 6e 4d 61 70 54 72 65 65 53 65 6c 65 private.void.OnActionMapTreeSele
5a40 63 74 69 6f 6e 43 68 61 6e 67 65 64 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ctionChanged()..........{.......
5a60 20 20 20 20 20 20 20 2f 2f 20 52 65 2d 63 6f 6e 66 69 67 75 72 65 20 61 63 74 69 6f 6e 20 74 72 .......//.Re-configure.action.tr
5a80 65 65 20 28 6d 69 64 64 6c 65 20 70 61 6e 65 29 20 66 6f 72 20 63 75 72 72 65 6e 74 6c 79 20 73 ee.(middle.pane).for.currently.s
5aa0 65 6c 65 63 74 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 elect.action.map...............R
5ac0 65 62 75 69 6c 64 41 63 74 69 6f 6e 54 72 65 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ebuildActionTree();.............
5ae0 20 20 20 2f 2f 20 49 66 20 74 68 65 72 65 27 73 20 6e 6f 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 ...//.If.there's.no.actions.in.t
5b00 68 65 20 73 65 6c 65 63 74 65 64 20 61 63 74 69 6f 6e 20 6d 61 70 20 6f 72 20 69 66 20 74 68 65 he.selected.action.map.or.if.the
5b20 72 65 20 69 73 20 6e 6f 20 61 63 74 69 6f 6e 20 6d 61 70 0d 0a 20 20 20 20 20 20 20 20 20 20 20 re.is.no.action.map.............
5b40 20 2f 2f 20 73 65 6c 65 63 74 65 64 2c 20 6d 61 6b 65 20 73 75 72 65 20 77 65 20 77 69 70 65 20 .//.selected,.make.sure.we.wipe.
5b60 74 68 65 20 70 72 6f 70 65 72 74 79 20 70 61 6e 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 the.property.pane...............
5b80 69 66 20 28 21 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 48 61 73 53 65 6c 65 63 74 69 if.(!m_ActionMapsTree.HasSelecti
5ba0 6f 6e 28 29 20 7c 7c 20 21 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 72 6f 6f 74 49 74 65 6d 2e on().||.!m_ActionsTree.rootItem.
5bc0 68 61 73 43 68 69 6c 64 72 65 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 hasChildren)..............{.....
5be0 20 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 61 64 50 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 .............LoadPropertiesForSe
5c00 6c 65 63 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 lection();..............}.......
5c20 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 7b 0d 0a 20 20 20 20 .......else..............{......
5c40 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4f 74 68 65 72 77 69 73 65 20 73 65 6c 65 63 74 20 ............//.Otherwise.select.
5c60 66 69 72 73 74 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 first.action.in.map.............
5c80 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 53 65 6c 65 63 74 46 69 72 73 74 54 ......m_ActionsTree.SelectFirstT
5ca0 6f 70 6c 65 76 65 6c 49 74 65 6d 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 oplevelItem();..............}...
5cc0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 .......}............private.void
5ce0 20 52 65 62 75 69 6c 64 41 63 74 69 6f 6e 54 72 65 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d .RebuildActionTree()..........{.
5d00 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 41 63 74 69 6f 6e 4d .............var.selectedActionM
5d20 61 70 49 74 65 6d 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 apItem.=..................m_Acti
5d40 6f 6e 4d 61 70 73 54 72 65 65 2e 47 65 74 53 65 6c 65 63 74 65 64 49 74 65 6d 73 28 29 2e 4f 66 onMapsTree.GetSelectedItems().Of
5d60 54 79 70 65 3c 41 63 74 69 6f 6e 4d 61 70 54 72 65 65 49 74 65 6d 3e 28 29 2e 46 69 72 73 74 4f Type<ActionMapTreeItem>().FirstO
5d80 72 44 65 66 61 75 6c 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c rDefault();..............if.(sel
5da0 65 63 74 65 64 41 63 74 69 6f 6e 4d 61 70 49 74 65 6d 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 ectedActionMapItem.==.null).....
5dc0 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 2f 20 4e .........{..................//.N
5de0 6f 74 68 69 6e 67 20 73 65 6c 65 63 74 65 64 2e 20 57 69 70 65 20 6d 69 64 64 6c 65 20 61 6e 64 othing.selected..Wipe.middle.and
5e00 20 72 69 67 68 74 20 70 61 6e 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f .right.pane...................m_
5e20 41 63 74 69 6f 6e 73 54 72 65 65 2e 6f 6e 42 75 69 6c 64 54 72 65 65 20 3d 20 6e 75 6c 6c 3b 0d ActionsTree.onBuildTree.=.null;.
5e40 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 .............}..............else
5e60 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
5e80 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 6f 6e 42 75 69 6c 64 54 72 65 65 20 3d 20 28 29 20 .m_ActionsTree.onBuildTree.=.().
5ea0 3d 3e 0d 0a 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 41 63 74 =>......................InputAct
5ec0 69 6f 6e 54 72 65 65 56 69 65 77 2e 42 75 69 6c 64 57 69 74 68 4a 75 73 74 41 63 74 69 6f 6e 73 ionTreeView.BuildWithJustActions
5ee0 41 6e 64 42 69 6e 64 69 6e 67 73 46 72 6f 6d 4d 61 70 28 73 65 6c 65 63 74 65 64 41 63 74 69 6f AndBindingsFromMap(selectedActio
5f00 6e 4d 61 70 49 74 65 6d 2e 70 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 nMapItem.property);.............
5f20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 62 75 69 6c 64 20 74 72 65 .}................//.Rebuild.tre
5f40 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 52 65 e...............m_ActionsTree.Re
5f60 6c 6f 61 64 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 load();..........}............pr
5f80 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 41 63 74 69 6f 6e 54 72 65 65 53 65 6c 65 63 74 69 6f 6e ivate.void.OnActionTreeSelection
5fa0 43 68 61 6e 67 65 64 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 Changed()..........{............
5fc0 20 20 4c 6f 61 64 50 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 6c 65 63 74 69 6f 6e 28 29 3b 0d ..LoadPropertiesForSelection();.
5fe0 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f .........}............private.vo
6000 69 64 20 4c 6f 61 64 50 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 6c 65 63 74 69 6f 6e 28 29 0d id.LoadPropertiesForSelection().
6020 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e .........{..............m_Bindin
6040 67 50 72 6f 70 65 72 74 79 56 69 65 77 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 gPropertyView.=.null;...........
6060 20 20 20 6d 5f 41 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 56 69 65 77 20 3d 20 6e 75 6c 6c 3b 0d ...m_ActionPropertyView.=.null;.
6080 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 70 72 65 73 65 72 76 ...............////TODO:.preserv
60a0 65 20 69 6e 74 65 72 61 63 74 69 6f 6e 2f 70 72 6f 63 65 73 73 6f 72 20 73 65 6c 65 63 74 69 6f e.interaction/processor.selectio
60c0 6e 20 77 68 65 6e 20 72 65 6c 6f 61 64 69 6e 67 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 n.when.reloading................
60e0 2f 2f 20 4e 6f 74 68 69 6e 67 20 65 6c 73 65 20 74 6f 20 64 6f 20 69 66 20 77 65 20 64 6f 6e 27 //.Nothing.else.to.do.if.we.don'
6100 74 20 68 61 76 65 20 61 20 73 65 6c 65 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 6d 69 64 64 6c 65 t.have.a.selection.in.the.middle
6120 20 70 61 6e 65 20 6f 72 20 69 66 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6d 75 6c 74 .pane.or.if..............//.mult
6140 69 70 6c 65 20 69 74 65 6d 73 20 61 72 65 20 73 65 6c 65 63 74 65 64 20 28 77 65 20 64 6f 6e 27 iple.items.are.selected.(we.don'
6160 74 20 63 75 72 72 65 6e 74 6c 79 20 68 61 76 65 20 74 68 65 20 61 62 69 6c 69 74 79 20 74 6f 20 t.currently.have.the.ability.to.
6180 6d 75 6c 74 69 2d 65 64 69 74 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d multi-edit)...............if.(!m
61a0 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 48 61 73 53 65 6c 65 63 74 69 6f 6e 28 29 20 7c 7c 20 6d _ActionsTree.HasSelection().||.m
61c0 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 47 65 74 53 65 6c 65 63 74 69 6f 6e 28 29 2e 43 6f 75 6e _ActionsTree.GetSelection().Coun
61e0 74 20 21 3d 20 31 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 t.!=.1)..................return;
6200 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6d 5f 41 63 74 ................var.item.=.m_Act
6220 69 6f 6e 73 54 72 65 65 2e 47 65 74 53 65 6c 65 63 74 65 64 49 74 65 6d 73 28 29 2e 46 69 72 73 ionsTree.GetSelectedItems().Firs
6240 74 4f 72 44 65 66 61 75 6c 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 tOrDefault();..............if.(i
6260 74 65 6d 20 69 73 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 tem.is.BindingTreeItem).........
6280 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 72 61 62 20 .....{..................//.Grab.
62a0 74 68 65 20 61 63 74 69 6f 6e 20 66 6f 72 20 74 68 65 20 62 69 6e 64 69 6e 67 20 61 6e 64 20 73 the.action.for.the.binding.and.s
62c0 65 65 20 69 66 20 77 65 20 68 61 76 65 20 61 6e 20 65 78 70 65 63 74 65 64 20 63 6f 6e 74 72 6f ee.if.we.have.an.expected.contro
62e0 6c 20 6c 61 79 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 65 74 l.layout..................//.set
6300 20 6f 6e 20 69 74 2e 20 50 61 73 73 20 74 68 61 74 20 6f 6e 20 74 6f 20 74 68 65 20 63 6f 6e 74 .on.it..Pass.that.on.to.the.cont
6320 72 6f 6c 20 70 69 63 6b 69 6e 67 20 6d 61 63 68 69 6e 65 72 79 2e 0d 0a 20 20 20 20 20 20 20 20 rol.picking.machinery...........
6340 20 20 20 20 20 20 20 20 76 61 72 20 69 73 43 6f 6d 70 6f 73 69 74 65 50 61 72 74 42 69 6e 64 69 ........var.isCompositePartBindi
6360 6e 67 20 3d 20 69 74 65 6d 20 69 73 20 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 ng.=.item.is.PartOfCompositeBind
6380 69 6e 67 54 72 65 65 49 74 65 6d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ingTreeItem;..................va
63a0 72 20 61 63 74 69 6f 6e 49 74 65 6d 20 3d 20 28 69 73 43 6f 6d 70 6f 73 69 74 65 50 61 72 74 42 r.actionItem.=.(isCompositePartB
63c0 69 6e 64 69 6e 67 20 3f 20 69 74 65 6d 2e 70 61 72 65 6e 74 2e 70 61 72 65 6e 74 20 3a 20 69 74 inding.?.item.parent.parent.:.it
63e0 65 6d 2e 70 61 72 65 6e 74 29 20 61 73 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 3b 0d 0a 20 em.parent).as.ActionTreeItem;...
6400 20 20 20 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 61 63 74 69 ...............Debug.Assert(acti
6420 6f 6e 49 74 65 6d 20 21 3d 20 6e 75 6c 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 onItem.!=.null);................
6440 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 56 69 65 77 53 74 61 74 65 ....if.(m_ControlPickerViewState
6460 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d .==.null)......................m
6480 5f 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 56 69 65 77 53 74 61 74 65 20 3d 20 6e 65 77 20 49 6e _ControlPickerViewState.=.new.In
64a0 70 75 74 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 53 74 61 74 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 putControlPickerState();........
64c0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 20 74 6f 6f 6c 62 61 72 20 6d 61 79 20 63 ............//.The.toolbar.may.c
64e0 6f 6e 73 74 72 61 69 6e 20 74 68 65 20 73 65 74 20 6f 66 20 64 65 76 69 63 65 73 20 77 65 27 72 onstrain.the.set.of.devices.we'r
6500 65 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 74 65 72 65 73 74 65 64 20 69 6e 20 62 79 20 65 69 74 e.currently.interested.in.by.eit
6520 68 65 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 68 61 76 69 6e 67 20 6f her..................//.having.o
6540 6e 65 20 73 70 65 63 69 66 69 63 20 64 65 76 69 63 65 20 73 65 6c 65 63 74 65 64 20 66 72 6f 6d ne.specific.device.selected.from
6560 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 63 68 65 6d 65 20 6f 72 20 68 61 76 69 6e 67 20 61 74 .the.current.scheme.or.having.at
6580 20 6c 65 61 73 74 20 61 20 63 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .least.a.control................
65a0 20 20 2f 2f 20 73 63 68 65 6d 65 20 73 65 6c 65 63 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 ..//.scheme.selected............
65c0 20 20 20 20 20 20 20 49 45 6e 75 6d 65 72 61 62 6c 65 3c 73 74 72 69 6e 67 3e 20 63 6f 6e 74 72 .......IEnumerable<string>.contr
65e0 6f 6c 50 61 74 68 73 54 6f 4d 61 74 63 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 olPathsToMatch;.................
6600 20 69 66 20 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 44 65 76 69 63 65 52 65 71 .if.(m_Toolbar.selectedDeviceReq
6620 75 69 72 65 6d 65 6e 74 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 uirement.!=.null)...............
6640 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 69 6e ...{......................//.Sin
6660 67 6c 65 20 64 65 76 69 63 65 20 73 65 6c 65 63 74 65 64 20 66 72 6f 6d 20 73 65 74 20 6f 66 20 gle.device.selected.from.set.of.
6680 64 65 76 69 63 65 73 20 69 6e 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 0d 0a 20 20 20 20 devices.in.control.scheme.......
66a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 50 61 74 68 73 54 6f 4d 61 ................controlPathsToMa
66c0 74 63 68 20 3d 20 6e 65 77 5b 5d 20 7b 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 44 tch.=.new[].{m_Toolbar.selectedD
66e0 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 2e 56 61 6c 75 65 2e 63 6f 6e 74 72 6f 6c 50 61 eviceRequirement.Value.controlPa
6700 74 68 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 th};..................}.........
6720 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 6d 5f 54 6f 6f 6c 62 61 72 2e 73 65 6c 65 .........else.if.(m_Toolbar.sele
6740 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 ctedControlScheme.!=.null)......
6760 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 ............{...................
6780 20 20 20 2f 2f 20 43 6f 6e 73 74 72 61 69 6e 20 74 6f 20 64 65 76 69 63 65 73 20 66 72 6f 6d 20 ...//.Constrain.to.devices.from.
67a0 63 75 72 72 65 6e 74 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 0d 0a 20 20 20 20 20 20 20 current.control.scheme..........
67c0 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 50 61 74 68 73 54 6f 4d 61 74 63 68 .............controlPathsToMatch
67e0 20 3d 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 54 6f .=..........................m_To
6800 6f 6c 62 61 72 2e 73 65 6c 65 63 74 65 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 56 61 6c 75 olbar.selectedControlScheme.Valu
6820 65 2e 64 65 76 69 63 65 52 65 71 75 69 72 65 6d 65 6e 74 73 2e 53 65 6c 65 63 74 28 78 20 3d 3e e.deviceRequirements.Select(x.=>
6840 20 78 2e 63 6f 6e 74 72 6f 6c 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .x.controlPath);................
6860 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 ..}..................else.......
6880 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 ...........{....................
68a0 20 20 2f 2f 20 49 66 20 74 68 65 72 65 27 73 20 6e 6f 20 64 65 76 69 63 65 20 66 69 6c 74 65 72 ..//.If.there's.no.device.filter
68c0 20 63 6f 6d 69 6e 67 20 66 72 6f 6d 20 61 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2c 20 66 .coming.from.a.control.scheme,.f
68e0 69 6c 74 65 72 20 62 79 20 73 75 70 70 6f 72 74 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ilter.by.supported..............
6900 20 20 20 20 20 20 20 20 2f 2f 20 64 65 76 69 63 65 73 20 61 73 20 67 69 76 65 6e 20 62 79 20 73 ........//.devices.as.given.by.s
6920 65 74 74 69 6e 67 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f ettings.......................co
6940 6e 74 72 6f 6c 50 61 74 68 73 54 6f 4d 61 74 63 68 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e ntrolPathsToMatch.=.InputSystem.
6960 73 65 74 74 69 6e 67 73 2e 73 75 70 70 6f 72 74 65 64 44 65 76 69 63 65 73 3b 0d 0a 20 20 20 20 settings.supportedDevices;......
6980 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............}...................
69a0 20 2f 2f 20 53 68 6f 77 20 70 72 6f 70 65 72 74 69 65 73 20 66 6f 72 20 62 69 6e 64 69 6e 67 2e .//.Show.properties.for.binding.
69c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 50 72 6f 70 65 ..................m_BindingPrope
69e0 72 74 79 56 69 65 77 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e rtyView.=......................n
6a00 65 77 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 69 65 73 56 69 65 77 28 0d 0a ew.InputBindingPropertiesView(..
6a20 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 74 65 6d 2e 70 72 6f ........................item.pro
6a40 70 65 72 74 79 2c 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 perty,..........................
6a60 63 68 61 6e 67 65 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 change.=>.......................
6a80 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 20 ...{............................
6aa0 20 20 69 66 20 28 63 68 61 6e 67 65 20 3d 3d 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f 70 ..if.(change.==.InputBindingProp
6ac0 65 72 74 69 65 73 56 69 65 77 2e 6b 5f 50 61 74 68 43 68 61 6e 67 65 64 20 7c 7c 0d 0a 20 20 20 ertiesView.k_PathChanged.||.....
6ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 .............................cha
6b00 6e 67 65 20 3d 3d 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 69 65 73 56 69 65 nge.==.InputBindingPropertiesVie
6b20 77 2e 6b 5f 43 6f 6d 70 6f 73 69 74 65 50 61 72 74 41 73 73 69 67 6e 6d 65 6e 74 43 68 61 6e 67 w.k_CompositePartAssignmentChang
6b40 65 64 20 7c 7c 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 ed.||...........................
6b60 20 20 20 20 20 20 20 63 68 61 6e 67 65 20 3d 3d 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f .......change.==.InputBindingPro
6b80 70 65 72 74 69 65 73 56 69 65 77 2e 6b 5f 43 6f 6d 70 6f 73 69 74 65 54 79 70 65 43 68 61 6e 67 pertiesView.k_CompositeTypeChang
6ba0 65 64 20 7c 7c 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 ed.||...........................
6bc0 20 20 20 20 20 20 20 63 68 61 6e 67 65 20 3d 3d 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f .......change.==.InputBindingPro
6be0 70 65 72 74 69 65 73 56 69 65 77 2e 6b 5f 47 72 6f 75 70 73 43 68 61 6e 67 65 64 29 0d 0a 20 20 pertiesView.k_GroupsChanged)....
6c00 20 20 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 ..........................{.....
6c20 20 20 20 20 20 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 70 70 .............................App
6c40 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 lyAndReloadTrees();.............
6c60 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 20 .................}..............
6c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 ................else............
6ca0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
6cc0 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 69 6d 70 6c 65 20 70 .....................//.Simple.p
6ce0 72 6f 70 65 72 74 79 20 63 68 61 6e 67 65 20 74 68 61 74 20 64 6f 65 73 6e 27 74 20 61 66 66 65 roperty.change.that.doesn't.affe
6d00 63 74 20 74 68 65 20 72 65 73 74 20 6f 66 20 74 68 65 20 55 49 2e 0d 0a 20 20 20 20 20 20 20 20 ct.the.rest.of.the.UI...........
6d20 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 70 70 6c 79 28 29 3b ........................Apply();
6d40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ..............................}.
6d60 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 2c 0d 0a 20 20 20 .........................},.....
6d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 50 69 .....................m_ControlPi
6da0 63 6b 65 72 56 69 65 77 53 74 61 74 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ckerViewState,..................
6dc0 20 20 20 20 20 20 20 20 65 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 3a 20 69 ........expectedControlLayout:.i
6de0 74 65 6d 2e 65 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 2c 0d 0a 20 20 20 20 tem.expectedControlLayout,......
6e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d ....................controlSchem
6e20 65 73 3a 20 6d 5f 54 6f 6f 6c 62 61 72 2e 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2c 0d 0a 20 es:.m_Toolbar.controlSchemes,...
6e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 6f 6c 50 61 .......................controlPa
6e60 74 68 73 54 6f 4d 61 74 63 68 3a 20 63 6f 6e 74 72 6f 6c 50 61 74 68 73 54 6f 4d 61 74 63 68 29 thsToMatch:.controlPathsToMatch)
6e80 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c ;..............}..............el
6ea0 73 65 20 69 66 20 28 69 74 65 6d 20 69 73 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 20 61 63 se.if.(item.is.ActionTreeItem.ac
6ec0 74 69 6f 6e 49 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 tionItem)..............{........
6ee0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 68 6f 77 20 70 72 6f 70 65 72 74 69 65 73 20 66 6f 72 ..........//.Show.properties.for
6f00 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 .action...................m_Acti
6f20 6f 6e 50 72 6f 70 65 72 74 79 56 69 65 77 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 onPropertyView.=................
6f40 20 20 20 20 20 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 72 6f 70 65 72 74 69 65 73 56 ......new.InputActionPropertiesV
6f60 69 65 77 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 iew(..........................ac
6f80 74 69 6f 6e 49 74 65 6d 2e 70 72 6f 70 65 72 74 79 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 tionItem.property,..............
6fa0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 70 70 6c 79 20 77 69 74 68 6f 75 74 20 72 65 6c ............//.Apply.without.rel
6fc0 6f 61 64 20 69 73 20 65 6e 6f 75 67 68 20 68 65 72 65 20 61 73 20 6d 6f 64 69 66 79 69 6e 67 20 oad.is.enough.here.as.modifying.
6fe0 74 68 65 20 70 72 6f 70 65 72 74 69 65 73 20 6f 66 20 61 6e 20 61 63 74 69 6f 6e 20 77 69 6c 6c the.properties.of.an.action.will
7000 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6e 65 76 ..........................//.nev
7020 65 72 20 63 68 61 6e 67 65 20 74 68 65 20 73 74 72 75 63 74 75 72 65 20 6f 66 20 74 68 65 20 64 er.change.the.structure.of.the.d
7040 61 74 61 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 63 68 ata...........................ch
7060 61 6e 67 65 20 3d 3e 20 41 70 70 6c 79 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d ange.=>.Apply());..............}
7080 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 ..........}............private.v
70a0 6f 69 64 20 41 70 70 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 28 29 0d 0a 20 20 20 20 20 oid.ApplyAndReloadTrees().......
70c0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 70 70 6c 79 28 29 3b 0d 0a 0d 0a 20 20 ...{..............Apply();......
70e0 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 70 61 74 68 20 68 65 72 65 20 69 73 20 6d ..........//.This.path.here.is.m
7100 65 61 6e 74 20 74 6f 20 63 61 74 63 68 20 2a 61 6e 79 2a 20 65 64 69 74 73 20 6d 61 64 65 20 74 eant.to.catch.*any*.edits.made.t
7120 6f 20 74 68 65 20 73 65 72 69 61 6c 69 7a 65 64 20 64 61 74 61 2e 20 49 2e 65 2e 20 61 6c 73 6f o.the.serialized.data..I.e..also
7140 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 6e 79 20 61 72 62 69 74 72 61 72 79 20 75 ..............//.any.arbitrary.u
7160 6e 64 6f 20 74 68 61 74 20 6d 61 79 20 68 61 76 65 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20 6d ndo.that.may.have.changed.some.m
7180 69 73 63 20 62 69 74 20 6e 6f 74 20 76 69 73 69 62 6c 65 20 69 6e 20 74 68 65 20 74 72 65 65 73 isc.bit.not.visible.in.the.trees
71a0 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 .................m_ActionMapsTre
71c0 65 2e 52 65 6c 6f 61 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 62 75 69 6c 64 e.Reload();..............Rebuild
71e0 41 63 74 69 6f 6e 54 72 65 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 ActionTree();..............m_Act
7200 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 55 70 64 61 74 65 41 73 73 65 74 44 69 72 74 79 ionAssetManager.UpdateAssetDirty
7220 53 74 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 61 64 43 6f 6e 74 72 6f State();..............LoadContro
7240 6c 53 63 68 65 6d 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 61 64 50 lSchemes();................LoadP
7260 72 6f 70 65 72 74 69 65 73 46 6f 72 53 65 6c 65 63 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 ropertiesForSelection();........
7280 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 41 70 70 6c ..}............private.void.Appl
72a0 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 6d 5f 41 63 y()..........{..............m_Ac
72c0 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 41 70 70 6c 79 43 68 61 6e 67 65 73 28 29 3b tionAssetManager.ApplyChanges();
72e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 20 64 69 72 74 79 20 ................//.Update.dirty.
7300 63 6f 75 6e 74 2c 20 6f 74 68 65 72 77 69 73 65 20 52 65 6c 6f 61 64 49 66 53 65 72 69 61 6c 69 count,.otherwise.ReloadIfSeriali
7320 7a 65 64 4f 62 6a 65 63 74 48 61 73 42 65 65 6e 43 68 61 6e 67 65 64 20 77 69 6c 6c 20 74 72 69 zedObjectHasBeenChanged.will.tri
7340 67 67 65 72 20 61 20 66 75 6c 6c 20 41 70 70 6c 79 41 6e 64 52 65 6c 6f 61 64 54 72 65 65 73 0d gger.a.full.ApplyAndReloadTrees.
7360 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 55 70 .............m_ActionMapsTree.Up
7380 64 61 74 65 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 44 69 72 74 79 43 6f 75 6e 74 28 29 dateSerializedObjectDirtyCount()
73a0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 55 70 64 ;..............m_ActionsTree.Upd
73c0 61 74 65 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 44 69 72 74 79 43 6f 75 6e 74 28 29 3b ateSerializedObjectDirtyCount();
73e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 61 75 74 6f 2d 73 61 76 65 20 ................//.If.auto-save.
7400 69 73 20 61 63 74 69 76 65 2c 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 66 6c 75 73 68 20 6f 75 74 is.active,.immediately.flush.out
7420 20 74 68 65 20 63 68 61 6e 67 65 73 20 74 6f 20 64 69 73 6b 2e 20 4f 74 68 65 72 77 69 73 65 20 .the.changes.to.disk..Otherwise.
7440 6a 75 73 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 70 75 74 20 75 73 20 69 6e 74 6f just..............//.put.us.into
7460 20 64 69 72 74 79 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 49 .dirty.state...............if.(I
7480 6e 70 75 74 45 64 69 74 6f 72 55 73 65 72 53 65 74 74 69 6e 67 73 2e 61 75 74 6f 53 61 76 65 49 nputEditorUserSettings.autoSaveI
74a0 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b nputActionAssets)..............{
74c0 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 41 73 73 65 74 4d ..................m_ActionAssetM
74e0 61 6e 61 67 65 72 2e 53 61 76 65 43 68 61 6e 67 65 73 54 6f 41 73 73 65 74 28 29 3b 0d 0a 20 20 anager.SaveChangesToAsset();....
7500 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 ..........}..............else...
7520 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 6d 5f ...........{..................m_
7540 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 53 65 74 41 73 73 65 74 44 69 72 74 79 ActionAssetManager.SetAssetDirty
7560 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 74 6c 65 43 6f 6e 74 65 6e ();..................titleConten
7580 74 20 3d 20 6d 5f 44 69 72 74 79 54 69 74 6c 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d t.=.m_DirtyTitle;..............}
75a0 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 ..........}............private.v
75c0 6f 69 64 20 4f 6e 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 oid.OnGUI()..........{..........
75e0 20 20 20 20 2f 2f 20 49 66 20 74 68 65 20 61 63 74 69 6f 6e 73 20 74 72 65 65 20 68 61 73 20 6c ....//.If.the.actions.tree.has.l
7600 6f 73 74 20 74 68 65 20 66 69 6c 74 65 72 73 20 28 62 65 63 61 75 73 65 20 74 68 65 79 20 77 6f ost.the.filters.(because.they.wo
7620 75 6c 64 20 6e 6f 74 20 6d 61 74 63 68 20 61 6e 20 69 74 65 6d 20 69 74 20 74 72 69 65 64 20 74 uld.not.match.an.item.it.tried.t
7640 6f 20 68 69 67 68 6c 69 67 68 74 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 75 70 o.highlight),..............//.up
7660 64 61 74 65 20 74 68 65 20 54 6f 6f 6c 62 61 72 20 55 49 20 74 6f 20 72 65 6d 6f 76 65 20 74 68 date.the.Toolbar.UI.to.remove.th
7680 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 41 63 74 69 6f 6e 73 54 em...............if.(!m_ActionsT
76a0 72 65 65 2e 68 61 73 46 69 6c 74 65 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ree.hasFilter)..................
76c0 6d 5f 54 6f 6f 6c 62 61 72 2e 52 65 73 65 74 53 65 61 72 63 68 46 69 6c 74 65 72 73 28 29 3b 0d m_Toolbar.ResetSearchFilters();.
76e0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6c 6c 6f 77 20 73 77 69 74 63 68 69 6e ...............//.Allow.switchin
7700 67 20 62 65 74 77 65 65 6e 20 61 63 74 69 6f 6e 20 6d 61 70 20 74 72 65 65 20 61 6e 64 20 61 63 g.between.action.map.tree.and.ac
7720 74 69 6f 6e 20 74 72 65 65 20 75 73 69 6e 67 20 61 72 72 6f 77 20 6b 65 79 73 2e 0d 0a 20 20 20 tion.tree.using.arrow.keys......
7740 20 20 20 20 20 20 20 20 20 54 6f 67 67 6c 65 46 6f 63 75 73 55 73 69 6e 67 4b 65 79 62 6f 61 72 .........ToggleFocusUsingKeyboar
7760 64 28 4b 65 79 43 6f 64 65 2e 52 69 67 68 74 41 72 72 6f 77 2c 20 6d 5f 41 63 74 69 6f 6e 4d 61 d(KeyCode.RightArrow,.m_ActionMa
7780 70 73 54 72 65 65 2c 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 29 3b 0d 0a 20 20 20 20 20 20 20 psTree,.m_ActionsTree);.........
77a0 20 20 20 20 20 54 6f 67 67 6c 65 46 6f 63 75 73 55 73 69 6e 67 4b 65 79 62 6f 61 72 64 28 4b 65 .....ToggleFocusUsingKeyboard(Ke
77c0 79 43 6f 64 65 2e 4c 65 66 74 41 72 72 6f 77 2c 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2c 20 yCode.LeftArrow,.m_ActionsTree,.
77e0 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 m_ActionMapsTree);..............
7800 20 20 2f 2f 20 52 6f 75 74 65 20 63 6f 70 79 2d 70 61 73 74 65 20 65 76 65 6e 74 73 20 74 6f 20 ..//.Route.copy-paste.events.to.
7820 74 72 65 65 20 76 69 65 77 73 20 69 66 20 74 68 65 79 20 68 61 76 65 20 66 6f 63 75 73 2e 0d 0a tree.views.if.they.have.focus...
7840 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 54 72 65 65 2e 48 61 ............if.(m_ActionsTree.Ha
7860 73 46 6f 63 75 73 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 74 sFocus())..................m_Act
7880 69 6f 6e 73 54 72 65 65 2e 48 61 6e 64 6c 65 43 6f 70 79 50 61 73 74 65 43 6f 6d 6d 61 6e 64 45 ionsTree.HandleCopyPasteCommandE
78a0 76 65 6e 74 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 vent(Event.current);............
78c0 20 20 65 6c 73 65 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 54 72 65 65 2e 48 61 73 46 ..else.if.(m_ActionMapsTree.HasF
78e0 6f 63 75 73 28 29 29 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 ocus())..................m_Actio
7900 6e 4d 61 70 73 54 72 65 65 2e 48 61 6e 64 6c 65 43 6f 70 79 50 61 73 74 65 43 6f 6d 6d 61 6e 64 nMapsTree.HandleCopyPasteCommand
7920 45 76 65 6e 74 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 Event(Event.current);...........
7940 20 20 20 20 20 2f 2f 20 44 72 61 77 20 74 6f 6f 6c 62 61 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 .....//.Draw.toolbar............
7960 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c ...EditorGUILayout.BeginVertical
7980 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 6f 6f 6c 62 61 72 2e 4f 6e 47 55 49 ();..............m_Toolbar.OnGUI
79a0 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
79c0 2e 53 70 61 63 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 .Space();................//.Draw
79e0 20 63 6f 6c 75 6d 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 .columns...............EditorGUI
7a00 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 Layout.BeginHorizontal();.......
7a20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6c 75 6d 6e 41 72 65 61 57 69 64 74 68 20 3d 20 70 6f 73 .......var.columnAreaWidth.=.pos
7a40 69 74 69 6f 6e 2e 77 69 64 74 68 20 2d 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 ition.width.-.InputActionTreeVie
7a60 77 2e 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 6e 64 57 69 74 68 42 6f 72 64 65 72 2e 6d 61 w.Styles.backgroundWithBorder.ma
7a80 72 67 69 6e 2e 6c 65 66 74 20 2d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 rgin.left.-..................Inp
7aa0 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 utActionTreeView.Styles.backgrou
7ac0 6e 64 57 69 74 68 42 6f 72 64 65 72 2e 6d 61 72 67 69 6e 2e 6c 65 66 74 20 2d 0d 0a 20 20 20 20 ndWithBorder.margin.left.-......
7ae0 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e ............InputActionTreeView.
7b00 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 6e 64 57 69 74 68 42 6f 72 64 65 72 2e 6d 61 72 67 Styles.backgroundWithBorder.marg
7b20 69 6e 2e 72 69 67 68 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 6c 64 in.right;................var.old
7b40 54 79 70 65 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 3b 0d 0a 20 20 20 20 Type.=.Event.current.type;......
7b60 20 20 20 20 20 20 20 20 44 72 61 77 41 63 74 69 6f 6e 4d 61 70 73 43 6f 6c 75 6d 6e 28 63 6f 6c ........DrawActionMapsColumn(col
7b80 75 6d 6e 41 72 65 61 57 69 64 74 68 20 2a 20 30 2e 32 32 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 umnAreaWidth.*.0.22f);..........
7ba0 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 ....if.(Event.current.type.==.Ev
7bc0 65 6e 74 54 79 70 65 2e 55 73 65 64 20 26 26 20 6f 6c 64 54 79 70 65 20 21 3d 20 45 76 65 6e 74 entType.Used.&&.oldType.!=.Event
7be0 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 .current.type)..............{...
7c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 68 65 6e 20 72 65 6e 61 6d 69 6e 67 20 ...............//.When.renaming.
7c20 61 6e 20 69 74 65 6d 2c 20 54 72 65 65 56 69 65 77 73 20 77 69 6c 6c 20 63 61 70 74 75 72 65 20 an.item,.TreeViews.will.capture.
7c40 61 6c 6c 20 6d 6f 75 73 65 20 45 76 65 6e 74 73 2c 20 61 6e 64 20 70 72 6f 63 65 73 73 20 61 6e all.mouse.Events,.and.process.an
7c60 79 20 63 6c 69 63 6b 73 20 6f 75 74 73 69 64 65 20 74 68 65 20 69 74 65 6d 0d 0a 20 20 20 20 20 y.clicks.outside.the.item.......
7c80 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 62 65 69 6e 67 20 72 65 6e 61 6d 65 64 20 74 6f 20 65 ...........//.being.renamed.to.e
7ca0 6e 64 20 74 68 65 20 72 65 6e 61 6d 69 6e 67 20 70 72 6f 63 65 73 73 2e 20 48 6f 77 65 76 65 72 nd.the.renaming.process..However
7cc0 2c 20 73 69 6e 63 65 20 77 65 20 68 61 76 65 20 74 77 6f 20 54 72 65 65 56 69 65 77 73 2c 20 69 ,.since.we.have.two.TreeViews,.i
7ce0 66 20 74 68 65 20 61 63 74 69 6f 6e 20 63 6f 6c 75 6d 6e 20 69 73 0d 0a 20 20 20 20 20 20 20 20 f.the.action.column.is..........
7d00 20 20 20 20 20 20 20 20 2f 2f 20 72 65 6e 61 6d 69 6e 67 20 61 6e 20 69 74 65 6d 2c 20 61 6e 64 ........//.renaming.an.item,.and
7d20 20 74 68 65 6e 20 79 6f 75 20 64 6f 75 62 6c 65 20 63 6c 69 63 6b 20 6f 6e 20 61 6e 20 69 74 65 .then.you.double.click.on.an.ite
7d40 6d 20 69 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 63 6f 6c 75 6d 6e 2c 20 74 68 65 20 m.in.the.action.map.column,.the.
7d60 61 63 74 69 6f 6e 20 6d 61 70 20 63 6f 6c 75 6d 6e 20 77 69 6c 6c 0d 0a 20 20 20 20 20 20 20 20 action.map.column.will..........
7d80 20 20 20 20 20 20 20 20 2f 2f 20 67 65 74 20 74 6f 20 75 73 65 20 74 68 65 20 6d 6f 75 73 65 20 ........//.get.to.use.the.mouse.
7da0 65 76 65 6e 74 20 62 65 66 6f 72 65 20 74 68 65 20 61 63 74 69 6f 6e 20 63 6f 6c 6c 75 6d 6e 20 event.before.the.action.collumn.
7dc0 67 65 74 73 20 74 6f 20 73 65 65 20 69 74 2c 20 77 68 69 63 68 20 77 6f 75 6c 64 20 63 61 75 73 gets.to.see.it,.which.would.caus
7de0 65 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 63 6f 6c 75 6d 6e 0d 0a 20 20 20 20 20 20 20 e.the.action.map.column.........
7e00 20 20 20 20 20 20 20 20 20 2f 2f 20 74 6f 20 65 6e 74 65 72 20 72 65 6e 61 6d 65 20 6d 6f 64 65 .........//.to.enter.rename.mode
7e20 20 61 6e 64 20 75 73 65 20 74 68 65 20 65 76 65 6e 74 2c 20 62 65 66 6f 72 65 20 74 68 65 20 61 .and.use.the.event,.before.the.a
7e40 63 74 69 6f 6e 20 63 6f 6c 75 6d 6e 20 67 65 74 73 20 61 20 63 68 61 6e 63 65 20 74 6f 20 73 65 ction.column.gets.a.chance.to.se
7e60 65 20 69 74 20 61 6e 64 20 65 78 69 74 20 72 65 6e 61 6d 65 20 6d 6f 64 65 2e 0d 0a 20 20 20 20 e.it.and.exit.rename.mode.......
7e80 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 6e 20 77 65 20 65 6e 64 20 75 70 20 77 69 ............//.Then.we.end.up.wi
7ea0 74 68 20 74 77 6f 20 61 63 74 69 76 65 20 72 65 6e 61 6d 69 6e 67 20 73 65 73 73 69 6f 6e 73 2c th.two.active.renaming.sessions,
7ec0 20 77 68 69 63 68 20 64 6f 65 73 20 6e 6f 74 20 77 6f 72 6b 20 63 6f 72 72 65 63 74 6c 79 2e 0d .which.does.not.work.correctly..
7ee0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 28 53 65 65 20 68 74 74 70 73 3a 2f .................//.(See.https:/
7f00 2f 66 6f 67 62 75 67 7a 2e 75 6e 69 74 79 33 64 2e 63 6f 6d 2f 66 2f 63 61 73 65 73 2f 31 31 34 /fogbugz.unity3d.com/f/cases/114
7f20 30 38 36 39 2f 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 77 2c 0869/)...................//.Now,
7f40 20 6f 75 72 20 66 69 78 20 74 6f 20 74 68 69 73 20 70 72 6f 62 6c 65 6d 20 69 73 20 74 6f 20 66 .our.fix.to.this.problem.is.to.f
7f60 6f 72 63 65 2d 65 6e 64 20 61 6e 64 20 61 63 63 65 70 74 20 61 6e 79 20 72 65 6e 61 6d 69 6e 67 orce-end.and.accept.any.renaming
7f80 20 73 65 73 73 69 6f 6e 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 63 6f 6c 75 6d 6e 20 69 66 .session.on.the.action.column.if
7fa0 20 77 65 20 73 65 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 61 74 .we.see..................//.that
7fc0 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 20 63 6f 6c 75 6d 6e 20 68 61 64 20 70 72 6f 63 65 .the.action.map.column.had.proce
7fe0 73 73 65 64 20 74 68 65 20 63 75 72 72 65 6e 74 20 65 76 65 6e 74 2e 20 54 68 69 73 20 69 73 20 ssed.the.current.event..This.is.
8000 6e 6f 74 20 70 61 72 74 69 63 75 6c 61 72 6c 79 20 65 6c 65 67 61 6e 74 2c 20 62 75 74 20 49 20 not.particularly.elegant,.but.I.
8020 63 61 6e 6e 6f 74 20 74 68 69 6e 6b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f cannot.think..................//
8040 20 6f 66 20 61 20 62 65 74 74 65 72 20 73 6f 6c 75 74 69 6f 6e 20 61 73 20 77 65 20 61 72 65 20 .of.a.better.solution.as.we.are.
8060 6c 69 6d 69 74 65 64 20 62 79 20 74 68 65 20 70 75 62 6c 69 63 20 41 50 49 73 20 65 78 70 6f 73 limited.by.the.public.APIs.expos
8080 65 64 20 62 79 20 54 72 65 65 56 69 65 77 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ed.by.TreeView..................
80a0 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2e 45 6e 64 52 65 6e 61 6d 65 28 66 6f 72 63 65 41 63 .m_ActionsTree.EndRename(forceAc
80c0 63 65 70 74 3a 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 cept:.true);..............}.....
80e0 20 20 20 20 20 20 20 20 20 44 72 61 77 41 63 74 69 6f 6e 73 43 6f 6c 75 6d 6e 28 63 6f 6c 75 6d .........DrawActionsColumn(colum
8100 6e 41 72 65 61 57 69 64 74 68 20 2a 20 30 2e 33 38 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 nAreaWidth.*.0.38f);............
8120 20 20 44 72 61 77 50 72 6f 70 65 72 74 69 65 73 43 6f 6c 75 6d 6e 28 63 6f 6c 75 6d 6e 41 72 65 ..DrawPropertiesColumn(columnAre
8140 61 57 69 64 74 68 20 2a 20 30 2e 34 30 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 aWidth.*.0.40f);..............Ed
8160 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a itorGUILayout.EndHorizontal();..
8180 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 6f 74 74 6f 6d 20 6d 61 72 67 69 6e 2e 0d ..............//.Bottom.margin..
81a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 33 29 3b .............GUILayout.Space(3);
81c0 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 45 6e ..............EditorGUILayout.En
81e0 64 56 65 72 74 69 63 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 dVertical();..........}.........
8200 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 54 6f 67 67 6c 65 46 6f 63 ...private.static.void.ToggleFoc
8220 75 73 55 73 69 6e 67 4b 65 79 62 6f 61 72 64 28 4b 65 79 43 6f 64 65 20 6b 65 79 2c 20 49 6e 70 usUsingKeyboard(KeyCode.key,.Inp
8240 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 20 66 72 6f 6d 54 72 65 65 2c 0d 0a 20 20 20 20 utActionTreeView.fromTree,......
8260 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 20 74 6f 54 72 ........InputActionTreeView.toTr
8280 65 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ee)..........{..............var.
82a0 75 69 45 76 65 6e 74 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 3b 0d 0a 20 20 20 20 20 20 uiEvent.=.Event.current;........
82c0 20 20 20 20 20 20 69 66 20 28 75 69 45 76 65 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 ......if.(uiEvent.type.==.EventT
82e0 79 70 65 2e 4b 65 79 44 6f 77 6e 20 26 26 20 75 69 45 76 65 6e 74 2e 6b 65 79 43 6f 64 65 20 3d ype.KeyDown.&&.uiEvent.keyCode.=
8300 3d 20 6b 65 79 20 26 26 20 66 72 6f 6d 54 72 65 65 2e 48 61 73 46 6f 63 75 73 28 29 29 0d 0a 20 =.key.&&.fromTree.HasFocus())...
8320 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 ...........{..................if
8340 20 28 21 74 6f 54 72 65 65 2e 48 61 73 53 65 6c 65 63 74 69 6f 6e 28 29 29 0d 0a 20 20 20 20 20 .(!toTree.HasSelection()).......
8360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 54 72 65 65 2e 53 65 6c 65 63 74 46 69 72 73 ...............toTree.SelectFirs
8380 74 54 6f 70 6c 65 76 65 6c 49 74 65 6d 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tToplevelItem();................
83a0 20 20 74 6f 54 72 65 65 2e 53 65 74 46 6f 63 75 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ..toTree.SetFocus();............
83c0 20 20 20 20 20 20 75 69 45 76 65 6e 74 2e 55 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ......uiEvent.Use();............
83e0 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 ..}..........}............privat
8400 65 20 76 6f 69 64 20 44 72 61 77 41 63 74 69 6f 6e 4d 61 70 73 43 6f 6c 75 6d 6e 28 66 6c 6f 61 e.void.DrawActionMapsColumn(floa
8420 74 20 77 69 64 74 68 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 t.width)..........{.............
8440 20 44 72 61 77 43 6f 6c 75 6d 6e 57 69 74 68 54 72 65 65 56 69 65 77 28 6d 5f 41 63 74 69 6f 6e .DrawColumnWithTreeView(m_Action
8460 4d 61 70 73 54 72 65 65 2c 20 77 69 64 74 68 2c 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 MapsTree,.width,.true);.........
8480 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 72 61 77 41 .}............private.void.DrawA
84a0 63 74 69 6f 6e 73 43 6f 6c 75 6d 6e 28 66 6c 6f 61 74 20 77 69 64 74 68 29 0d 0a 20 20 20 20 20 ctionsColumn(float.width).......
84c0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6f 6c 75 6d 6e 57 69 74 68 ...{..............DrawColumnWith
84e0 54 72 65 65 56 69 65 77 28 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 2c 20 77 69 64 74 68 2c 20 66 TreeView(m_ActionsTree,.width,.f
8500 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 alse);..........}............pri
8520 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6f 6c 75 6d 6e 57 69 74 68 54 vate.static.void.DrawColumnWithT
8540 72 65 65 56 69 65 77 28 54 72 65 65 56 69 65 77 20 74 72 65 65 56 69 65 77 2c 20 66 6c 6f 61 74 reeView(TreeView.treeView,.float
8560 20 77 69 64 74 68 2c 20 62 6f 6f 6c 20 66 69 78 65 64 57 69 64 74 68 29 0d 0a 20 20 20 20 20 20 .width,.bool.fixedWidth)........
8580 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 4c 61 79 6f 75 74 ..{..............EditorGUILayout
85a0 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 .BeginVertical(InputActionTreeVi
85c0 65 77 2e 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 6e 64 57 69 74 68 42 6f 72 64 65 72 2c 0d ew.Styles.backgroundWithBorder,.
85e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 78 65 64 57 69 64 74 68 20 3f 20 47 55 .................fixedWidth.?.GU
8600 49 4c 61 79 6f 75 74 2e 4d 61 78 57 69 64 74 68 28 77 69 64 74 68 29 20 3a 20 47 55 49 4c 61 79 ILayout.MaxWidth(width).:.GUILay
8620 6f 75 74 2e 4d 69 6e 57 69 64 74 68 28 77 69 64 74 68 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 out.MinWidth(width),............
8640 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 ......GUILayout.ExpandWidth(true
8660 29 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 48 65 69 67 68 74 28 74 72 75 65 29 29 ),.GUILayout.ExpandHeight(true))
8680 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c ;..............GUILayout.Flexibl
86a0 65 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 55 49 eSpace();..............EditorGUI
86c0 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 Layout.EndVertical();...........
86e0 20 20 20 20 20 76 61 72 20 63 6f 6c 75 6d 6e 52 65 63 74 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 .....var.columnRect.=.GUILayoutU
8700 74 69 6c 69 74 79 2e 47 65 74 4c 61 73 74 52 65 63 74 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 tility.GetLastRect();...........
8720 20 20 20 20 20 74 72 65 65 56 69 65 77 2e 4f 6e 47 55 49 28 63 6f 6c 75 6d 6e 52 65 63 74 29 3b .....treeView.OnGUI(columnRect);
8740 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 ..........}............private.v
8760 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 69 65 73 43 6f 6c 75 6d 6e 28 66 6c 6f 61 74 20 77 oid.DrawPropertiesColumn(float.w
8780 69 64 74 68 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 45 64 idth)..........{..............Ed
87a0 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 49 6e 70 75 itorGUILayout.BeginVertical(Inpu
87c0 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 6e tActionTreeView.Styles.backgroun
87e0 64 57 69 74 68 42 6f 72 64 65 72 2c 20 47 55 49 4c 61 79 6f 75 74 2e 57 69 64 74 68 28 77 69 64 dWithBorder,.GUILayout.Width(wid
8800 74 68 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 63 74 20 3d 20 th));................var.rect.=.
8820 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 2c 0d 0a 20 20 20 GUILayoutUtility.GetRect(0,.....
8840 20 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 73 69 .............EditorGUIUtility.si
8860 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 20 2b 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 ngleLineHeight.+.EditorGUIUtilit
8880 79 2e 73 74 61 6e 64 61 72 64 56 65 72 74 69 63 61 6c 53 70 61 63 69 6e 67 20 2a 20 32 2c 0d 0a y.standardVerticalSpacing.*.2,..
88a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 ................GUILayout.Expand
88c0 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e Width(true));..............rect.
88e0 78 20 2d 3d 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 20 2d 3d 20 31 x.-=.2;..............rect.y.-=.1
8900 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 77 69 64 74 68 20 2b 3d 20 34 3b 0d ;..............rect.width.+=.4;.
8920 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 4c 61 62 65 6c 46 69 ...............EditorGUI.LabelFi
8940 65 6c 64 28 72 65 63 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 49 6e 70 75 74 eld(rect,.GUIContent.none,.Input
8960 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e 53 74 79 6c 65 73 2e 62 61 63 6b 67 72 6f 75 6e 64 ActionTreeView.Styles.background
8980 57 69 74 68 42 6f 72 64 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 65 WithBorder);..............var.he
89a0 61 64 65 72 52 65 63 74 20 3d 20 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 20 2b 20 31 2c 20 aderRect.=.new.Rect(rect.x.+.1,.
89c0 72 65 63 74 2e 79 20 2b 20 31 2c 20 72 65 63 74 2e 77 69 64 74 68 20 2d 20 32 2c 20 72 65 63 74 rect.y.+.1,.rect.width.-.2,.rect
89e0 2e 68 65 69 67 68 74 20 2d 20 32 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f .height.-.2);..............Edito
8a00 72 47 55 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 68 65 61 64 65 72 52 65 63 74 2c 20 22 50 72 6f rGUI.LabelField(headerRect,."Pro
8a20 70 65 72 74 69 65 73 22 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 2e 53 74 perties",.InputActionTreeView.St
8a40 79 6c 65 73 2e 63 6f 6c 75 6d 6e 48 65 61 64 65 72 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 yles.columnHeaderLabel);........
8a60 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 56 69 65 ........if.(m_BindingPropertyVie
8a80 77 20 21 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 w.!=.null)..............{.......
8aa0 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 72 6f 70 65 72 74 69 65 73 53 63 72 6f 6c 6c 20 3d 20 ...........m_PropertiesScroll.=.
8ac0 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 53 63 72 6f 6c 6c 56 69 65 77 28 EditorGUILayout.BeginScrollView(
8ae0 6d 5f 50 72 6f 70 65 72 74 69 65 73 53 63 72 6f 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 m_PropertiesScroll);............
8b00 20 20 20 20 20 20 6d 5f 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 56 69 65 77 2e 4f 6e 47 55 ......m_BindingPropertyView.OnGU
8b20 49 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c I();..................EditorGUIL
8b40 61 79 6f 75 74 2e 45 6e 64 53 63 72 6f 6c 6c 56 69 65 77 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ayout.EndScrollView();..........
8b60 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 6d 5f 41 63 ....}..............else.if.(m_Ac
8b80 74 69 6f 6e 50 72 6f 70 65 72 74 79 56 69 65 77 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 tionPropertyView.!=.null).......
8ba0 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 6d 5f 50 72 6f 70 .......{..................m_Prop
8bc0 65 72 74 69 65 73 53 63 72 6f 6c 6c 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 ertiesScroll.=.EditorGUILayout.B
8be0 65 67 69 6e 53 63 72 6f 6c 6c 56 69 65 77 28 6d 5f 50 72 6f 70 65 72 74 69 65 73 53 63 72 6f 6c eginScrollView(m_PropertiesScrol
8c00 6c 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 6e 50 72 6f l);..................m_ActionPro
8c20 70 65 72 74 79 56 69 65 77 2e 4f 6e 47 55 49 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 pertyView.OnGUI();..............
8c40 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 53 63 72 6f 6c 6c 56 69 65 ....EditorGUILayout.EndScrollVie
8c60 77 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 w();..............}.............
8c80 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 .else..............{............
8ca0 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 3b ......GUILayout.FlexibleSpace();
8cc0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 ..............}................E
8ce0 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 ditorGUILayout.EndVertical();...
8d00 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 .......}............private.void
8d20 20 52 65 6c 6f 61 64 41 73 73 65 74 46 72 6f 6d 46 69 6c 65 49 66 4e 6f 74 44 69 72 74 79 28 29 .ReloadAssetFromFileIfNotDirty()
8d40 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 ..........{..............if.(m_A
8d60 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 64 69 72 74 79 29 0d 0a 20 20 20 20 20 20 ctionAssetManager.dirty)........
8d80 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..........return;...............
8da0 20 2f 2f 20 49 66 20 6f 75 72 20 61 73 73 65 74 20 68 61 73 20 64 69 73 61 70 70 65 61 72 65 64 .//.If.our.asset.has.disappeared
8dc0 20 66 72 6f 6d 20 64 69 73 6b 2c 20 6a 75 73 74 20 63 6c 6f 73 65 20 74 68 65 20 77 69 6e 64 6f .from.disk,.just.close.the.windo
8de0 77 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c w...............if.(string.IsNul
8e00 6c 4f 72 45 6d 70 74 79 28 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 55 49 44 54 6f 41 73 73 lOrEmpty(AssetDatabase.GUIDToAss
8e20 65 74 50 61 74 68 28 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 67 75 69 64 etPath(m_ActionAssetManager.guid
8e40 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 )))..............{..............
8e60 20 20 20 20 43 6c 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 ....Close();..................re
8e80 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 turn;..............}............
8ea0 20 20 20 20 2f 2f 20 44 6f 6e 27 74 20 74 6f 75 63 68 20 74 68 65 20 55 49 20 73 74 61 74 65 20 ....//.Don't.touch.the.UI.state.
8ec0 69 66 20 74 68 65 20 73 65 72 69 61 6c 69 7a 65 64 20 64 61 74 61 20 69 73 20 73 74 69 6c 6c 20 if.the.serialized.data.is.still.
8ee0 74 68 65 20 73 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 41 63 the.same...............if.(!m_Ac
8f00 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 2e 52 65 49 6e 69 74 69 61 6c 69 7a 65 49 66 41 tionAssetManager.ReInitializeIfA
8f20 73 73 65 74 48 61 73 43 68 61 6e 67 65 64 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ssetHasChanged())...............
8f40 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 6e 66 ...return;................//.Unf
8f60 6f 72 74 75 6e 61 74 65 6c 79 2c 20 6f 6e 20 74 68 69 73 20 70 61 74 68 20 77 65 20 6c 6f 73 65 ortunately,.on.this.path.we.lose
8f80 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 73 74 61 74 65 20 6f 66 20 74 68 65 20 69 6e 74 65 .the.selection.state.of.the.inte
8fa0 72 61 63 74 69 6f 6e 73 20 61 6e 64 20 70 72 6f 63 65 73 73 6f 72 73 20 6c 69 73 74 73 0d 0a 20 ractions.and.processors.lists...
8fc0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 6e 20 74 68 65 20 70 72 6f 70 65 72 74 69 65 73 20 ...........//.in.the.properties.
8fe0 76 69 65 77 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 69 74 69 61 6c 69 7a 65 54 view.................InitializeT
9000 72 65 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 61 64 50 72 6f 70 65 72 74 rees();..............LoadPropert
9020 69 65 73 46 6f 72 53 65 6c 65 63 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 iesForSelection();..............
9040 52 65 70 61 69 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 Repaint();..........}...........
9060 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 73 68 6f 72 74 63 75 74 20 74 6f 20 66 6f 63 75 73 .////TODO:.add.shortcut.to.focus
9080 20 73 65 61 72 63 68 20 62 6f 78 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a .search.box............////TODO:
90a0 20 73 68 6f 77 20 73 68 6f 72 74 63 75 74 73 20 69 6e 20 74 6f 6f 6c 74 69 70 73 0d 0a 20 20 20 .show.shortcuts.in.tooltips.....
90c0 20 20 20 20 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 74 68 65 20 73 68 6f 72 74 63 75 74 73 20 73 65 .....////FIXME:.the.shortcuts.se
90e0 65 6d 20 74 6f 20 68 61 76 65 20 66 6f 63 75 73 20 70 72 6f 62 6c 65 6d 73 3b 20 6f 66 74 65 6e em.to.have.focus.problems;.often
9100 20 72 65 71 75 69 72 65 73 20 63 6c 69 63 6b 69 6e 67 20 61 77 61 79 20 61 6e 64 20 74 68 65 6e .requires.clicking.away.and.then
9120 20 62 61 63 6b 20 74 6f 20 74 68 65 20 77 69 6e 64 6f 77 0d 0a 20 20 20 20 20 20 20 20 5b 53 68 .back.to.the.window..........[Sh
9140 6f 72 74 63 75 74 28 22 49 6e 70 75 74 20 41 63 74 69 6f 6e 20 45 64 69 74 6f 72 2f 53 61 76 65 ortcut("Input.Action.Editor/Save
9160 22 2c 20 74 79 70 65 6f 66 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f ",.typeof(InputActionEditorWindo
9180 77 29 2c 20 4b 65 79 43 6f 64 65 2e 53 2c 20 53 68 6f 72 74 63 75 74 4d 6f 64 69 66 69 65 72 73 w),.KeyCode.S,.ShortcutModifiers
91a0 2e 41 6c 74 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 .Alt)]..........private.static.v
91c0 6f 69 64 20 53 61 76 65 53 68 6f 72 74 63 75 74 28 53 68 6f 72 74 63 75 74 41 72 67 75 6d 65 6e oid.SaveShortcut(ShortcutArgumen
91e0 74 73 20 61 72 67 75 6d 65 6e 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 ts.arguments)..........{........
9200 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 ......var.window.=.(InputActionE
9220 64 69 74 6f 72 57 69 6e 64 6f 77 29 61 72 67 75 6d 65 6e 74 73 2e 63 6f 6e 74 65 78 74 3b 0d 0a ditorWindow)arguments.context;..
9240 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 53 61 76 65 43 68 61 6e 67 65 73 54 6f ............window.SaveChangesTo
9260 41 73 73 65 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b Asset();..........}............[
9280 53 68 6f 72 74 63 75 74 28 22 49 6e 70 75 74 20 41 63 74 69 6f 6e 20 45 64 69 74 6f 72 2f 41 64 Shortcut("Input.Action.Editor/Ad
92a0 64 20 41 63 74 69 6f 6e 20 4d 61 70 22 2c 20 74 79 70 65 6f 66 28 49 6e 70 75 74 41 63 74 69 6f d.Action.Map",.typeof(InputActio
92c0 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 29 2c 20 4b 65 79 43 6f 64 65 2e 4d 2c 20 53 68 6f 72 74 nEditorWindow),.KeyCode.M,.Short
92e0 63 75 74 4d 6f 64 69 66 69 65 72 73 2e 41 6c 74 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 cutModifiers.Alt)]..........priv
9300 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 41 64 64 41 63 74 69 6f 6e 4d 61 70 53 68 6f 72 ate.static.void.AddActionMapShor
9320 74 63 75 74 28 53 68 6f 72 74 63 75 74 41 72 67 75 6d 65 6e 74 73 20 61 72 67 75 6d 65 6e 74 73 tcut(ShortcutArguments.arguments
9340 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 76 61 72 20 77 69 )..........{..............var.wi
9360 6e 64 6f 77 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 29 ndow.=.(InputActionEditorWindow)
9380 61 72 67 75 6d 65 6e 74 73 2e 63 6f 6e 74 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 arguments.context;..............
93a0 77 69 6e 64 6f 77 2e 41 64 64 4e 65 77 41 63 74 69 6f 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 window.AddNewActionMap();.......
93c0 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 68 6f 72 74 63 75 74 28 22 49 6e 70 75 74 ...}............[Shortcut("Input
93e0 20 41 63 74 69 6f 6e 20 45 64 69 74 6f 72 2f 41 64 64 20 41 63 74 69 6f 6e 22 2c 20 74 79 70 65 .Action.Editor/Add.Action",.type
9400 6f 66 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 29 2c 20 4b 65 79 of(InputActionEditorWindow),.Key
9420 43 6f 64 65 2e 41 2c 20 53 68 6f 72 74 63 75 74 4d 6f 64 69 66 69 65 72 73 2e 41 6c 74 29 5d 0d Code.A,.ShortcutModifiers.Alt)].
9440 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 41 64 64 .........private.static.void.Add
9460 41 63 74 69 6f 6e 53 68 6f 72 74 63 75 74 28 53 68 6f 72 74 63 75 74 41 72 67 75 6d 65 6e 74 73 ActionShortcut(ShortcutArguments
9480 20 61 72 67 75 6d 65 6e 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .arguments)..........{..........
94a0 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 ....var.window.=.(InputActionEdi
94c0 74 6f 72 57 69 6e 64 6f 77 29 61 72 67 75 6d 65 6e 74 73 2e 63 6f 6e 74 65 78 74 3b 0d 0a 20 20 torWindow)arguments.context;....
94e0 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 41 64 64 4e 65 77 41 63 74 69 6f 6e 28 29 3b ..........window.AddNewAction();
9500 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 68 6f 72 74 63 75 74 ..........}............[Shortcut
9520 28 22 49 6e 70 75 74 20 41 63 74 69 6f 6e 20 45 64 69 74 6f 72 2f 41 64 64 20 42 69 6e 64 69 6e ("Input.Action.Editor/Add.Bindin
9540 67 22 2c 20 74 79 70 65 6f 66 28 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 g",.typeof(InputActionEditorWind
9560 6f 77 29 2c 20 4b 65 79 43 6f 64 65 2e 42 2c 20 53 68 6f 72 74 63 75 74 4d 6f 64 69 66 69 65 72 ow),.KeyCode.B,.ShortcutModifier
9580 73 2e 41 6c 74 29 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 s.Alt)]..........private.static.
95a0 76 6f 69 64 20 41 64 64 42 69 6e 64 69 6e 67 53 68 6f 72 74 63 75 74 28 53 68 6f 72 74 63 75 74 void.AddBindingShortcut(Shortcut
95c0 41 72 67 75 6d 65 6e 74 73 20 61 72 67 75 6d 65 6e 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d Arguments.arguments)..........{.
95e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 28 49 6e 70 75 74 .............var.window.=.(Input
9600 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 29 61 72 67 75 6d 65 6e 74 73 2e 63 6f 6e ActionEditorWindow)arguments.con
9620 74 65 78 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 41 64 64 4e 65 77 text;..............window.AddNew
9640 42 69 6e 64 69 6e 67 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 Binding();..........}...........
9660 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4f 6e 44 69 72 74 79 43 68 61 6e 67 65 64 28 62 6f 6f .private.void.OnDirtyChanged(boo
9680 6c 20 64 69 72 74 79 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 l.dirty)..........{.............
96a0 20 74 69 74 6c 65 43 6f 6e 74 65 6e 74 20 3d 20 64 69 72 74 79 20 3f 20 6d 5f 44 69 72 74 79 54 .titleContent.=.dirty.?.m_DirtyT
96c0 69 74 6c 65 20 3a 20 6d 5f 54 69 74 6c 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 itle.:.m_Title;..............m_T
96e0 6f 6f 6c 62 61 72 2e 69 73 44 69 72 74 79 20 3d 20 64 69 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 oolbar.isDirty.=.dirty;.........
9700 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 70 6f 73 .}............public.void.Dispos
9720 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 69 e()..........{..............m_Bi
9740 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 56 69 65 77 3f 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 ndingPropertyView?.Dispose();...
9760 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 65 46 69 .......}............[SerializeFi
9780 65 6c 64 5d 20 70 72 69 76 61 74 65 20 54 72 65 65 56 69 65 77 53 74 61 74 65 20 6d 5f 41 63 74 eld].private.TreeViewState.m_Act
97a0 69 6f 6e 4d 61 70 73 54 72 65 65 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 ionMapsTreeState;..........[Seri
97c0 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 54 72 65 65 56 69 65 77 53 74 61 74 alizeField].private.TreeViewStat
97e0 65 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b e.m_ActionsTreeState;..........[
9800 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 43 6f 6e SerializeField].private.InputCon
9820 74 72 6f 6c 50 69 63 6b 65 72 53 74 61 74 65 20 6d 5f 43 6f 6e 74 72 6f 6c 50 69 63 6b 65 72 56 trolPickerState.m_ControlPickerV
9840 69 65 77 53 74 61 74 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 iewState;..........[SerializeFie
9860 6c 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 ld].private.InputActionAssetMana
9880 67 65 72 20 6d 5f 41 63 74 69 6f 6e 41 73 73 65 74 4d 61 6e 61 67 65 72 3b 0d 0a 20 20 20 20 20 ger.m_ActionAssetManager;.......
98a0 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 ...[SerializeField].private.Inpu
98c0 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 54 6f 6f 6c 62 61 72 20 6d 5f 54 6f 6f 6c 62 61 72 3b 0d tActionEditorToolbar.m_Toolbar;.
98e0 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 .........[SerializeField].privat
9900 65 20 47 55 49 43 6f 6e 74 65 6e 74 20 6d 5f 44 69 72 74 79 54 69 74 6c 65 3b 0d 0a 20 20 20 20 e.GUIContent.m_DirtyTitle;......
9920 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 61 74 65 20 47 55 49 ....[SerializeField].private.GUI
9940 43 6f 6e 74 65 6e 74 20 6d 5f 54 69 74 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 Content.m_Title;............priv
9960 61 74 65 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 69 65 73 56 69 65 77 20 6d ate.InputBindingPropertiesView.m
9980 5f 42 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 56 69 65 77 3b 0d 0a 20 20 20 20 20 20 20 20 70 _BindingPropertyView;..........p
99a0 72 69 76 61 74 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 50 72 6f 70 65 72 74 69 65 73 56 69 65 77 rivate.InputActionPropertiesView
99c0 20 6d 5f 41 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 56 69 65 77 3b 0d 0a 20 20 20 20 20 20 20 20 .m_ActionPropertyView;..........
99e0 70 72 69 76 61 74 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 20 6d 5f 41 63 private.InputActionTreeView.m_Ac
9a00 74 69 6f 6e 4d 61 70 73 54 72 65 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 tionMapsTree;..........private.I
9a20 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 20 6d 5f 41 63 74 69 6f 6e 73 54 72 65 65 nputActionTreeView.m_ActionsTree
9a40 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 6f 6f 6c ;............private.static.bool
9a60 20 73 5f 52 65 66 72 65 73 68 50 65 6e 64 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 .s_RefreshPending;..........priv
9a80 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 74 72 69 6e 67 20 6b 5f 46 69 6c ate.static.readonly.string.k_Fil
9aa0 65 45 78 74 65 6e 73 69 6f 6e 20 3d 20 22 2e 22 20 2b 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 eExtension.=.".".+.InputActionAs
9ac0 73 65 74 2e 45 78 74 65 6e 73 69 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 set.Extension;............privat
9ae0 65 20 56 65 63 74 6f 72 32 20 6d 5f 50 72 6f 70 65 72 74 69 65 73 53 63 72 6f 6c 6c 3b 0d 0a 20 e.Vector2.m_PropertiesScroll;...
9b00 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 46 6f 72 63 65 51 75 69 74 3b .......private.bool.m_ForceQuit;
9b20 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 79 73 74 65 6d 2e 44 69 61 67 6e 6f 73 74 69 63 73 2e ............[System.Diagnostics.
9b40 43 6f 64 65 41 6e 61 6c 79 73 69 73 2e 53 75 70 70 72 65 73 73 4d 65 73 73 61 67 65 28 22 4d 69 CodeAnalysis.SuppressMessage("Mi
9b60 63 72 6f 73 6f 66 74 2e 50 65 72 66 6f 72 6d 61 6e 63 65 22 2c 20 22 43 41 31 38 31 32 3a 41 76 crosoft.Performance",."CA1812:Av
9b80 6f 69 64 55 6e 69 6e 73 74 61 6e 74 69 61 74 65 64 49 6e 74 65 72 6e 61 6c 43 6c 61 73 73 65 73 oidUninstantiatedInternalClasses
9ba0 22 2c 20 4a 75 73 74 69 66 69 63 61 74 69 6f 6e 20 3d 20 22 49 6e 74 61 6e 74 69 61 74 65 64 20 ",.Justification.=."Intantiated.
9bc0 74 68 72 6f 75 67 68 20 72 65 66 6c 65 63 74 69 6f 6e 20 62 79 20 55 6e 69 74 79 22 29 5d 0d 0a through.reflection.by.Unity")]..
9be0 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6c 61 73 73 20 50 72 6f 63 65 73 73 41 73 73 ........private.class.ProcessAss
9c00 65 74 4d 6f 64 69 66 69 63 61 74 69 6f 6e 73 20 3a 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 41 73 etModifications.:.UnityEditor.As
9c20 73 65 74 4d 6f 64 69 66 69 63 61 74 69 6f 6e 50 72 6f 63 65 73 73 6f 72 0d 0a 20 20 20 20 20 20 setModificationProcessor........
9c40 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 61 6e 64 6c 65 20 2e 69 6e 70 75 ..{..............//.Handle..inpu
9c60 74 61 63 74 69 6f 6e 73 20 61 73 73 65 74 20 62 65 69 6e 67 20 64 65 6c 65 74 65 64 2e 0d 0a 20 tactions.asset.being.deleted....
9c80 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 53 68 61 72 70 65 72 20 64 69 73 61 62 6c 65 20 ...........//.ReSharper.disable.
9ca0 6f 6e 63 65 20 55 6e 75 73 65 64 4d 65 6d 62 65 72 2e 4c 6f 63 61 6c 0d 0a 20 20 20 20 20 20 20 once.UnusedMember.Local.........
9cc0 20 20 20 20 20 5b 53 79 73 74 65 6d 2e 44 69 61 67 6e 6f 73 74 69 63 73 2e 43 6f 64 65 41 6e 61 .....[System.Diagnostics.CodeAna
9ce0 6c 79 73 69 73 2e 53 75 70 70 72 65 73 73 4d 65 73 73 61 67 65 28 22 4d 69 63 72 6f 73 6f 66 74 lysis.SuppressMessage("Microsoft
9d00 2e 55 73 61 67 65 22 2c 20 22 43 41 31 38 30 31 3a 52 65 76 69 65 77 55 6e 75 73 65 64 50 61 72 .Usage",."CA1801:ReviewUnusedPar
9d20 61 6d 65 74 65 72 73 22 2c 20 4d 65 73 73 61 67 65 49 64 20 3d 20 22 6f 70 74 69 6f 6e 73 22 2c ameters",.MessageId.=."options",
9d40 20 4a 75 73 74 69 66 69 63 61 74 69 6f 6e 20 3d 20 22 6f 70 74 69 6f 6e 73 20 70 61 72 61 6d 65 .Justification.=."options.parame
9d60 74 65 72 20 72 65 71 75 69 72 65 64 20 62 79 20 55 6e 69 74 79 20 41 50 49 22 29 5d 0d 0a 20 20 ter.required.by.Unity.API")]....
9d80 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 41 73 73 65 74 44 65 6c ..........public.static.AssetDel
9da0 65 74 65 52 65 73 75 6c 74 20 4f 6e 57 69 6c 6c 44 65 6c 65 74 65 41 73 73 65 74 28 73 74 72 69 eteResult.OnWillDeleteAsset(stri
9dc0 6e 67 20 70 61 74 68 2c 20 52 65 6d 6f 76 65 41 73 73 65 74 4f 70 74 69 6f 6e 73 20 6f 70 74 69 ng.path,.RemoveAssetOptions.opti
9de0 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ons)..............{.............
9e00 20 20 20 20 20 69 66 20 28 21 70 61 74 68 2e 45 6e 64 73 57 69 74 68 28 6b 5f 46 69 6c 65 45 78 .....if.(!path.EndsWith(k_FileEx
9e20 74 65 6e 73 69 6f 6e 2c 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 tension,.StringComparison.Invari
9e40 61 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 29 0d 0a 20 20 20 20 20 20 20 20 antCultureIgnoreCase))..........
9e60 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 65 66 61 75 6c 74 3b 0d 0a 0d 0a 20 ............return.default;.....
9e80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 69 66 20 77 65 20 68 61 76 65 ...............//.See.if.we.have
9ea0 20 61 6e 20 6f 70 65 6e 20 77 69 6e 64 6f 77 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .an.open.window.................
9ec0 20 20 76 61 72 20 67 75 69 64 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 73 73 65 74 ..var.guid.=.AssetDatabase.Asset
9ee0 50 61 74 68 54 6f 47 55 49 44 28 70 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 PathToGUID(path);...............
9f00 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 46 69 6e 64 45 64 69 74 6f 72 46 6f 72 41 73 73 ...var.window.=.FindEditorForAss
9f20 65 74 57 69 74 68 47 55 49 44 28 67 75 69 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 etWithGUID(guid);...............
9f40 20 20 20 69 66 20 28 77 69 6e 64 6f 77 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 ...if.(window.!=.null)..........
9f60 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ........{....................../
9f80 2f 20 49 66 20 74 68 65 72 65 27 73 20 75 6e 73 61 76 65 64 20 63 68 61 6e 67 65 73 2c 20 61 73 /.If.there's.unsaved.changes,.as
9fa0 6b 20 66 6f 72 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 k.for.confirmation..............
9fc0 20 20 20 20 20 20 20 20 20 69 66 20 28 77 69 6e 64 6f 77 2e 6d 5f 41 63 74 69 6f 6e 41 73 73 65 .........if.(window.m_ActionAsse
9fe0 74 4d 61 6e 61 67 65 72 2e 64 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tManager.dirty).................
a000 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 .....{..........................
a020 76 61 72 20 72 65 73 75 6c 74 20 3d 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 44 69 73 70 6c var.result.=.EditorUtility.Displ
a040 61 79 44 69 61 6c 6f 67 28 22 55 6e 73 61 76 65 64 20 63 68 61 6e 67 65 73 22 2c 0d 0a 20 20 20 ayDialog("Unsaved.changes",.....
a060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 59 6f 75 20 68 .........................$"You.h
a080 61 76 65 20 75 6e 73 61 76 65 64 20 63 68 61 6e 67 65 73 20 66 6f 72 20 27 7b 70 61 74 68 7d 27 ave.unsaved.changes.for.'{path}'
a0a0 2e 20 44 6f 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 64 69 73 63 61 72 64 20 74 68 65 20 63 68 61 ..Do.you.want.to.discard.the.cha
a0c0 6e 67 65 73 20 61 6e 64 20 64 65 6c 65 74 65 20 74 68 65 20 61 73 73 65 74 3f 22 2c 0d 0a 20 20 nges.and.delete.the.asset?",....
a0e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 22 59 65 73 2c 20 .........................."Yes,.
a100 44 65 6c 65 74 65 22 2c 20 22 4e 6f 2c 20 43 61 6e 63 65 6c 22 29 3b 0d 0a 20 20 20 20 20 20 20 Delete",."No,.Cancel");.........
a120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 72 65 73 75 6c 74 29 0d 0a 20 .................if.(!result)...
a140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 .......................{........
a160 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 55 73 65 72 20 63 61 ......................//.User.ca
a180 6e 63 65 6c 65 64 2e 20 53 74 6f 70 20 74 68 65 20 64 65 6c 65 74 69 6f 6e 2e 0d 0a 20 20 20 20 nceled..Stop.the.deletion.......
a1a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 ........................return.A
a1c0 73 73 65 74 44 65 6c 65 74 65 52 65 73 75 6c 74 2e 46 61 69 6c 65 64 44 65 6c 65 74 65 3b 0d 0a ssetDeleteResult.FailedDelete;..
a1e0 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 0d 0a 20 20 20 ........................}.......
a200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 6d 5f 46 6f .....................window.m_Fo
a220 72 63 65 51 75 69 74 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rceQuit.=.true;.................
a240 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 77 69 .....}........................wi
a260 6e 64 6f 77 2e 43 6c 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d ndow.Close();..................}
a280 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 65 66 61 75 ....................return.defau
a2a0 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 lt;..............}..............
a2c0 20 20 23 70 72 61 67 6d 61 20 77 61 72 6e 69 6e 67 20 64 69 73 61 62 6c 65 20 43 41 31 38 30 31 ..#pragma.warning.disable.CA1801
a2e0 20 2f 2f 20 75 6e 75 73 65 64 20 70 61 72 61 6d 65 74 65 72 73 0d 0a 0d 0a 20 20 20 20 20 20 20 .//.unused.parameters...........
a300 20 20 20 20 20 2f 2f 20 48 61 6e 64 6c 65 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 73 .....//.Handle..inputactions.ass
a320 65 74 20 62 65 69 6e 67 20 6d 6f 76 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 et.being.moved...............//.
a340 52 65 53 68 61 72 70 65 72 20 64 69 73 61 62 6c 65 20 6f 6e 63 65 20 55 6e 75 73 65 64 4d 65 6d ReSharper.disable.once.UnusedMem
a360 62 65 72 2e 4c 6f 63 61 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 ber.Local..............public.st
a380 61 74 69 63 20 41 73 73 65 74 4d 6f 76 65 52 65 73 75 6c 74 20 4f 6e 57 69 6c 6c 4d 6f 76 65 41 atic.AssetMoveResult.OnWillMoveA
a3a0 73 73 65 74 28 73 74 72 69 6e 67 20 73 6f 75 72 63 65 50 61 74 68 2c 20 73 74 72 69 6e 67 20 64 sset(string.sourcePath,.string.d
a3c0 65 73 74 69 6e 61 74 69 6f 6e 50 61 74 68 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a estinationPath)..............{..
a3e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 6f 75 72 63 65 50 61 74 68 2e ................if.(!sourcePath.
a400 45 6e 64 73 57 69 74 68 28 6b 5f 46 69 6c 65 45 78 74 65 6e 73 69 6f 6e 2c 20 53 74 72 69 6e 67 EndsWith(k_FileExtension,.String
a420 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 Comparison.InvariantCultureIgnor
a440 65 43 61 73 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 eCase))......................ret
a460 75 72 6e 20 64 65 66 61 75 6c 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 urn.default;....................
a480 76 61 72 20 67 75 69 64 20 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 41 73 73 65 74 50 61 var.guid.=.AssetDatabase.AssetPa
a4a0 74 68 54 6f 47 55 49 44 28 73 6f 75 72 63 65 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 thToGUID(sourcePath);...........
a4c0 20 20 20 20 20 20 20 76 61 72 20 77 69 6e 64 6f 77 20 3d 20 46 69 6e 64 45 64 69 74 6f 72 46 6f .......var.window.=.FindEditorFo
a4e0 72 41 73 73 65 74 57 69 74 68 47 55 49 44 28 67 75 69 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 rAssetWithGUID(guid);...........
a500 20 20 20 20 20 20 20 69 66 20 28 77 69 6e 64 6f 77 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 .......if.(window.!=.null)......
a520 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 ............{...................
a540 20 20 20 77 69 6e 64 6f 77 2e 55 70 64 61 74 65 57 69 6e 64 6f 77 54 69 74 6c 65 28 29 3b 0d 0a ...window.UpdateWindowTitle();..
a560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ................}...............
a580 20 20 20 20 20 72 65 74 75 72 6e 20 64 65 66 61 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .....return.default;............
a5a0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 70 72 61 67 6d 61 20 77 61 72 6e 69 ..}................#pragma.warni
a5c0 6e 67 20 72 65 73 74 6f 72 65 20 43 41 31 38 30 31 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 ng.restore.CA1801..........}....
a5e0 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 52 0d 0a ..}..}..#endif.//.UNITY_EDITOR..
a600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17 00 00 00 49 6e 70 75 74 41 63 74 ........................InputAct
a620 69 6f 6e 45 64 69 74 6f 72 57 69 6e 64 6f 77 00 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e ionEditorWindow.....UnityEngine.
a640 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 00 00 InputSystem.Editor..