summaryrefslogtreecommitdiff
path: root/Library/Artifacts/c3/c38464ab78be0a537746ed1d4ed3210f
blob: 9bc0360494c5e2066d5f72218c99daa78a46c790 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 62 c0 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......b.............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 60 52 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 `R..............................
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 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 49 ............InputActionTreeViewI
10a0 74 65 6d 73 e4 51 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 tems.Q..#if.UNITY_EDITOR..using.
10c0 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 System;..using.UnityEditor;..usi
10e0 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 49 4d 47 55 49 2e 43 6f 6e 74 72 6f 6c 73 3b 0d 0a ng.UnityEditor.IMGUI.Controls;..
1100 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 73 79 6e 63 20 65 78 70 61 6e 64 65 64 20 73 74 61 74 65 20 ..////TODO:.sync.expanded.state.
1120 6f 66 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 65 78 70 61 6e of.SerializedProperties.to.expan
1140 64 65 64 20 73 74 61 74 65 20 6f 66 20 74 72 65 65 20 28 77 69 6c 6c 20 68 65 6c 70 20 70 72 65 ded.state.of.tree.(will.help.pre
1160 73 65 72 76 69 6e 67 20 65 78 70 61 6e 73 69 6f 6e 20 69 6e 20 69 6e 73 70 65 63 74 6f 72 29 0d serving.expansion.in.inspector).
1180 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 77 6f 75 6c 64 20 62 65 20 67 72 65 61 74 20 74 6f ...////REVIEW:.would.be.great.to
11a0 20 61 6c 69 67 6e 20 61 6c 6c 20 22 5b 64 65 76 69 63 65 5d 22 20 70 61 72 74 73 20 6f 66 20 62 .align.all."[device]".parts.of.b
11c0 69 6e 64 69 6e 67 20 73 74 72 69 6e 67 73 20 6e 65 61 74 6c 79 20 69 6e 20 61 20 63 6f 6c 75 6d inding.strings.neatly.in.a.colum
11e0 6e 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 n....namespace.UnityEngine.Input
1200 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 0d 0a 7b 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 61 System.Editor..{......internal.a
1220 62 73 74 72 61 63 74 20 63 6c 61 73 73 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 42 61 73 65 bstract.class.ActionTreeItemBase
1240 20 3a 20 54 72 65 65 56 69 65 77 49 74 65 6d 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .:.TreeViewItem......{..........
1260 70 75 62 6c 69 63 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 public.SerializedProperty.proper
1280 74 79 20 7b 20 67 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 69 72 74 ty.{.get;.}..........public.virt
12a0 75 61 6c 20 73 74 72 69 6e 67 20 65 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 ual.string.expectedControlLayout
12c0 20 3d 3e 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 .=>.string.Empty;..........publi
12e0 63 20 76 69 72 74 75 61 6c 20 62 6f 6f 6c 20 63 61 6e 52 65 6e 61 6d 65 20 3d 3e 20 74 72 75 65 c.virtual.bool.canRename.=>.true
1300 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 62 6f 6f 6c 20 73 ;..........public.virtual.bool.s
1320 65 72 69 61 6c 69 7a 65 64 44 61 74 61 49 6e 63 6c 75 64 65 73 43 68 69 6c 64 72 65 6e 20 3d 3e erializedDataIncludesChildren.=>
1340 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 .false;..........public.abstract
1360 20 47 55 49 53 74 79 6c 65 20 63 6f 6c 6f 72 54 61 67 53 74 79 6c 65 20 7b 20 67 65 74 3b 20 7d .GUIStyle.colorTagStyle.{.get;.}
1380 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 6e 61 6d 65 20 7b 20 67 ..........public.string.name.{.g
13a0 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 47 75 69 64 20 67 75 69 64 20 et;.}..........public.Guid.guid.
13c0 7b 20 67 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 41 63 74 69 6f 6e 20 64 61 {.get;.}............//.Action.da
13e0 74 61 20 69 73 20 67 65 6e 65 72 61 6c 6c 79 20 73 74 6f 72 65 64 20 69 6e 20 61 72 72 61 79 73 ta.is.generally.stored.in.arrays
1400 2e 20 41 63 74 69 6f 6e 20 6d 61 70 73 20 61 72 65 20 73 74 6f 72 65 64 20 69 6e 20 6d 5f 41 63 ..Action.maps.are.stored.in.m_Ac
1420 74 69 6f 6e 4d 61 70 73 20 61 72 72 61 79 73 20 69 6e 20 61 73 73 65 74 73 2c 0d 0a 20 20 20 20 tionMaps.arrays.in.assets,......
1440 20 20 20 20 2f 2f 20 61 63 74 69 6f 6e 73 20 61 72 65 20 73 74 6f 72 65 64 20 69 6e 20 6d 5f 41 ....//.actions.are.stored.in.m_A
1460 63 74 69 6f 6e 73 20 61 72 72 61 79 73 20 6f 6e 20 6d 61 70 73 20 61 6e 64 20 62 69 6e 64 69 6e ctions.arrays.on.maps.and.bindin
1480 67 73 20 61 72 65 20 73 74 6f 72 65 64 20 69 6e 20 6d 5f 42 69 6e 64 69 6e 67 73 20 61 72 72 61 gs.are.stored.in.m_Bindings.arra
14a0 79 73 20 6f 6e 20 6d 61 70 73 2e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 53 65 72 69 ys.on.maps...........public.Seri
14c0 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 3e 20 alizedProperty.arrayProperty.=>.
14e0 70 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 50 72 6f 70 65 72 74 79 46 72 6f 6d 45 6c 65 property.GetArrayPropertyFromEle
1500 6d 65 6e 74 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 44 79 6e 61 6d 69 63 61 6c 6c ment();............//.Dynamicall
1520 79 20 6c 6f 6f 6b 20 75 70 20 74 68 65 20 61 72 72 61 79 20 69 6e 64 65 78 20 69 6e 73 74 65 61 y.look.up.the.array.index.instea
1540 64 20 6f 66 20 6a 75 73 74 20 74 61 6b 69 6e 67 20 69 74 20 66 72 6f 6d 20 60 70 72 6f 70 65 72 d.of.just.taking.it.from.`proper
1560 74 79 60 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 6d 61 6b 65 73 20 73 75 72 65 ty`...........//.This.makes.sure
1580 20 77 68 61 74 65 76 65 72 20 69 6e 73 65 72 74 69 6f 6e 73 20 6f 72 20 64 65 6c 65 74 69 6f 6e .whatever.insertions.or.deletion
15a0 73 20 77 65 20 70 65 72 66 6f 72 6d 20 6f 6e 20 74 68 65 20 73 65 72 69 61 6c 69 7a 65 64 20 64 s.we.perform.on.the.serialized.d
15c0 61 74 61 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 77 65 20 67 65 74 20 74 68 65 20 72 69 67 68 ata,..........//.we.get.the.righ
15e0 74 20 61 72 72 61 79 20 69 6e 64 65 78 20 66 72 6f 6d 20 61 6e 20 69 74 65 6d 2e 0d 0a 20 20 20 t.array.index.from.an.item......
1600 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 61 72 72 61 79 49 6e 64 65 78 20 3d 3e 20 49 6e .....public.int.arrayIndex.=>.In
1620 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 47 65 putActionSerializationHelpers.Ge
1640 74 49 6e 64 65 78 28 61 72 72 61 79 50 72 6f 70 65 72 74 79 2c 20 67 75 69 64 29 3b 0d 0a 0d 0a tIndex(arrayProperty,.guid);....
1660 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d ........protected.ActionTreeItem
1680 42 61 73 65 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 Base(SerializedProperty.property
16a0 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 74 68 69 73 2e 70 )..........{..............this.p
16c0 72 6f 70 65 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 roperty.=.property;.............
16e0 20 20 20 2f 2f 20 4c 6f 6f 6b 20 75 70 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ...//.Look.up.name..............
1700 20 76 61 72 20 6e 61 6d 65 50 72 6f 70 65 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e .var.nameProperty.=.property.Fin
1720 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4e 61 6d 65 22 29 3b 0d 0a 20 20 dPropertyRelative("m_Name");....
1740 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6e 61 6d 65 50 72 6f 70 65 ..........Debug.Assert(namePrope
1760 72 74 79 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 6d 5f 4e 61 6d rty.!=.null,.$"Cannot.find.m_Nam
1780 65 20 70 72 6f 70 65 72 74 79 20 6f 6e 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 e.property.on.{property.property
17a0 50 61 74 68 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 20 3d 20 6e 61 6d Path}");..............name.=.nam
17c0 65 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 eProperty.stringValue;..........
17e0 20 20 20 20 20 20 2f 2f 20 4c 6f 6f 6b 20 75 70 20 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 ......//.Look.up.ID.............
1800 20 20 76 61 72 20 69 64 50 72 6f 70 65 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 ..var.idProperty.=.property.Find
1820 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 64 22 29 3b 0d 0a 20 20 20 20 20 PropertyRelative("m_Id");.......
1840 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 69 64 50 72 6f 70 65 72 74 79 20 21 .......Debug.Assert(idProperty.!
1860 3d 20 6e 75 6c 6c 2c 20 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 6d 5f 49 64 20 70 72 6f 70 65 =.null,.$"Cannot.find.m_Id.prope
1880 72 74 79 20 6f 6e 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 50 61 74 68 7d 22 29 rty.on.{property.propertyPath}")
18a0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 64 50 72 6f 70 65 72 74 79 53 74 72 ;..............var.idPropertyStr
18c0 69 6e 67 20 3d 20 69 64 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 20 ing.=.idProperty.stringValue;...
18e0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d ...........if.(string.IsNullOrEm
1900 70 74 79 28 69 64 50 72 6f 70 65 72 74 79 53 74 72 69 6e 67 29 29 0d 0a 20 20 20 20 20 20 20 20 pty(idPropertyString))..........
1920 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 54 68 69 73 20 69 ....{..................//.This.i
1940 73 20 73 6f 6d 65 77 68 61 74 20 71 75 65 73 74 69 6f 6e 61 62 6c 65 20 62 75 74 20 77 65 20 63 s.somewhat.questionable.but.we.c
1960 61 6e 27 74 20 6f 70 65 72 61 74 65 20 69 66 20 77 65 20 64 6f 6e 27 74 20 68 61 76 65 20 49 44 an't.operate.if.we.don't.have.ID
1980 73 20 6f 6e 20 74 68 65 20 64 61 74 61 20 75 73 65 64 20 69 6e 20 74 68 65 20 74 72 65 65 2e 0d s.on.the.data.used.in.the.tree..
19a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 61 74 68 65 72 20 74 68 61 6e 20 .................//.Rather.than.
19c0 72 65 71 75 69 72 69 6e 67 20 75 73 65 72 73 20 6f 66 20 74 68 65 20 74 72 65 65 20 74 6f 20 73 requiring.users.of.the.tree.to.s
19e0 65 74 20 74 68 69 73 20 75 70 20 63 6f 6e 73 69 73 74 65 6e 74 6c 79 2c 20 77 65 20 61 73 73 69 et.this.up.consistently,.we.assi
1a00 67 6e 20 49 44 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 6e 20 74 68 gn.IDs..................//.on.th
1a20 65 20 66 6c 79 2c 20 69 66 20 6e 65 63 65 73 73 61 72 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 e.fly,.if.necessary.............
1a40 20 20 20 20 20 20 67 75 69 64 20 3d 20 47 75 69 64 2e 4e 65 77 47 75 69 64 28 29 3b 0d 0a 20 20 ......guid.=.Guid.NewGuid();....
1a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 64 50 72 6f 70 65 72 74 79 53 74 72 69 6e 67 20 3d ..............idPropertyString.=
1a80 20 67 75 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .guid.ToString();...............
1aa0 20 20 20 69 64 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 20 3d 20 69 64 50 72 ...idProperty.stringValue.=.idPr
1ac0 6f 70 65 72 74 79 53 74 72 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 opertyString;..................i
1ae0 64 50 72 6f 70 65 72 74 79 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 dProperty.serializedObject.Apply
1b00 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 3b ModifiedPropertiesWithoutUndo();
1b20 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 73 ..............}..............els
1b40 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e..............{................
1b60 20 20 67 75 69 64 20 3d 20 6e 65 77 20 47 75 69 64 28 69 64 50 72 6f 70 65 72 74 79 53 74 72 69 ..guid.=.new.Guid(idPropertyStri
1b80 6e 67 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 ng);..............}.............
1ba0 20 20 20 2f 2f 20 41 6c 6c 20 6f 75 72 20 65 6c 65 6d 65 6e 74 73 20 28 6d 61 70 73 2c 20 61 63 ...//.All.our.elements.(maps,.ac
1bc0 74 69 6f 6e 73 2c 20 62 69 6e 64 69 6e 67 73 29 20 63 61 72 72 79 20 75 6e 69 71 75 65 20 49 44 tions,.bindings).carry.unique.ID
1be0 73 2e 20 57 65 20 75 73 65 20 74 68 65 69 72 20 68 61 73 68 0d 0a 20 20 20 20 20 20 20 20 20 20 s..We.use.their.hash............
1c00 20 20 2f 2f 20 63 6f 64 65 73 20 61 73 20 69 74 65 6d 20 49 44 73 20 69 6e 20 74 68 65 20 74 72 ..//.codes.as.item.IDs.in.the.tr
1c20 65 65 2e 20 54 68 69 73 20 73 68 6f 75 6c 64 20 72 65 73 75 6c 74 20 69 6e 20 73 74 61 62 6c 65 ee..This.should.result.in.stable
1c40 20 69 74 65 6d 20 49 44 73 20 74 68 61 74 20 6b 65 65 70 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .item.IDs.that.keep.............
1c60 20 2f 2f 20 69 64 65 6e 74 69 66 79 69 6e 67 20 74 68 65 20 72 69 67 68 74 20 69 74 65 6d 20 61 .//.identifying.the.right.item.a
1c80 63 72 6f 73 73 20 61 6c 6c 20 72 65 6c 6f 61 64 73 20 61 6e 64 20 74 72 65 65 20 6d 75 74 61 74 cross.all.reloads.and.tree.mutat
1ca0 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 64 20 3d 20 67 75 69 64 2e 47 65 74 ions...............id.=.guid.Get
1cc0 48 61 73 68 43 6f 64 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 HashCode();..........}..........
1ce0 20 20 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 52 65 6e 61 6d 65 28 73 74 72 ..public.virtual.void.Rename(str
1d00 69 6e 67 20 6e 65 77 4e 61 6d 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ing.newName)..........{.........
1d20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 21 63 61 6e 52 65 6e 61 6d 65 2c 20 22 49 .....Debug.Assert(!canRename,."I
1d40 74 65 6d 20 69 73 20 6d 61 72 6b 65 64 20 61 73 20 61 6c 6c 6f 77 69 6e 67 20 72 65 6e 61 6d 65 tem.is.marked.as.allowing.rename
1d60 73 20 79 65 74 20 64 6f 65 73 20 6e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 20 52 65 6e 61 6d 65 28 s.yet.does.not.implement.Rename(
1d80 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c )");..........}............///.<
1da0 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 65 6c 65 74 65 20 73 65 72 summary>..........///.Delete.ser
1dc0 69 61 6c 69 7a 65 64 20 64 61 74 61 20 66 6f 72 20 74 68 65 20 74 72 65 65 20 69 74 65 6d 20 61 ialized.data.for.the.tree.item.a
1de0 6e 64 20 69 74 73 20 63 68 69 6c 64 72 65 6e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f nd.its.children...........///.</
1e00 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 summary>..........public.abstrac
1e20 74 20 76 6f 69 64 20 44 65 6c 65 74 65 44 61 74 61 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 t.void.DeleteData();............
1e40 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 20 62 6f 6f 6c 20 41 63 63 65 70 74 73 44 72 6f 70 public.abstract.bool.AcceptsDrop
1e60 28 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 42 61 73 65 20 69 74 65 6d 29 3b 0d 0a 0d 0a 20 20 (ActionTreeItemBase.item);......
1e80 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ......///.<summary>..........///
1ea0 20 47 65 74 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 74 20 77 68 65 72 65 20 74 6f 20 .Get.information.about.where.to.
1ec0 64 72 6f 70 20 61 6e 20 69 74 65 6d 20 6f 66 20 74 68 65 20 67 69 76 65 6e 20 74 79 70 65 20 61 drop.an.item.of.the.given.type.a
1ee0 6e 64 20 28 6f 70 74 69 6f 6e 61 6c 6c 79 29 20 74 68 65 20 67 69 76 65 6e 20 69 6e 64 65 78 2e nd.(optionally).the.given.index.
1f00 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ..........///.</summary>........
1f20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 20 62 6f 6f 6c 20 47 65 74 44 72 6f 70 4c 6f ..public.abstract.bool.GetDropLo
1f40 63 61 74 69 6f 6e 28 54 79 70 65 20 69 74 65 6d 54 79 70 65 2c 20 69 6e 74 3f 20 63 68 69 6c 64 cation(Type.itemType,.int?.child
1f60 49 6e 64 65 78 2c 20 72 65 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 72 Index,.ref.SerializedProperty.ar
1f80 72 61 79 2c 20 72 65 66 20 69 6e 74 20 61 72 72 61 79 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 ray,.ref.int.arrayIndex);.......
1fa0 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 53 74 79 6c .....protected.static.class.Styl
1fc0 65 73 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 70 72 69 76 61 es..........{..............priva
1fe0 74 65 20 73 74 61 74 69 63 20 47 55 49 53 74 79 6c 65 20 53 74 79 6c 65 57 69 74 68 42 61 63 6b te.static.GUIStyle.StyleWithBack
2000 67 72 6f 75 6e 64 28 73 74 72 69 6e 67 20 66 69 6c 65 4e 61 6d 65 29 0d 0a 20 20 20 20 20 20 20 ground(string.fileName).........
2020 20 20 20 20 20 7b 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 6e .....{..................return.n
2040 65 77 20 47 55 49 53 74 79 6c 65 28 22 4c 61 62 65 6c 22 29 2e 57 69 74 68 4e 6f 72 6d 61 6c 42 ew.GUIStyle("Label").WithNormalB
2060 61 63 6b 67 72 6f 75 6e 64 28 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 4c 6f 61 64 41 73 73 65 ackground(AssetDatabase.LoadAsse
2080 74 41 74 50 61 74 68 3c 54 65 78 74 75 72 65 32 44 3e 28 24 22 7b 49 6e 70 75 74 41 63 74 69 6f tAtPath<Texture2D>($"{InputActio
20a0 6e 54 72 65 65 56 69 65 77 2e 53 68 61 72 65 64 52 65 73 6f 75 72 63 65 73 50 61 74 68 7d 7b 66 nTreeView.SharedResourcesPath}{f
20c0 69 6c 65 4e 61 6d 65 7d 2e 70 6e 67 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ileName}.png"));..............}.
20e0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 ...............public.static.rea
2100 64 6f 6e 6c 79 20 47 55 49 53 74 79 6c 65 20 79 65 6c 6c 6f 77 52 65 63 74 20 3d 20 53 74 79 6c donly.GUIStyle.yellowRect.=.Styl
2120 65 57 69 74 68 42 61 63 6b 67 72 6f 75 6e 64 28 22 79 65 6c 6c 6f 77 22 29 3b 0d 0a 20 20 20 20 eWithBackground("yellow");......
2140 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 ........public.static.readonly.G
2160 55 49 53 74 79 6c 65 20 67 72 65 65 6e 52 65 63 74 20 3d 20 53 74 79 6c 65 57 69 74 68 42 61 63 UIStyle.greenRect.=.StyleWithBac
2180 6b 67 72 6f 75 6e 64 28 22 67 72 65 65 6e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 kground("green");..............p
21a0 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 53 74 79 6c 65 20 62 ublic.static.readonly.GUIStyle.b
21c0 6c 75 65 52 65 63 74 20 3d 20 53 74 79 6c 65 57 69 74 68 42 61 63 6b 67 72 6f 75 6e 64 28 22 62 lueRect.=.StyleWithBackground("b
21e0 6c 75 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 lue");..............public.stati
2200 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 53 74 79 6c 65 20 70 69 6e 6b 52 65 63 74 20 3d 20 53 c.readonly.GUIStyle.pinkRect.=.S
2220 74 79 6c 65 57 69 74 68 42 61 63 6b 67 72 6f 75 6e 64 28 22 70 69 6e 6b 22 29 3b 0d 0a 20 20 20 tyleWithBackground("pink");.....
2240 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 .....}......}........///.<summar
2260 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 72 65 65 20 76 69 65 77 20 69 74 65 6d 20 66 6f 72 20 61 y>......///.Tree.view.item.for.a
2280 6e 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 n.action.map.......///.</summary
22a0 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 >......///.<seealso.cref="InputA
22c0 63 74 69 6f 6e 4d 61 70 22 2f 3e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 20 ctionMap"/>......internal.class.
22e0 41 63 74 69 6f 6e 4d 61 70 54 72 65 65 49 74 65 6d 20 3a 20 41 63 74 69 6f 6e 54 72 65 65 49 74 ActionMapTreeItem.:.ActionTreeIt
2300 65 6d 42 61 73 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 emBase......{..........public.Ac
2320 74 69 6f 6e 4d 61 70 54 72 65 65 49 74 65 6d 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 tionMapTreeItem(SerializedProper
2340 74 79 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 ty.actionMapProperty)...........
2360 20 20 20 3a 20 62 61 73 65 28 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 ...:.base(actionMapProperty)....
2380 20 20 20 20 20 20 7b 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 ......{..........}............pu
23a0 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 47 55 49 53 74 79 6c 65 20 63 6f 6c 6f 72 54 61 67 53 blic.override.GUIStyle.colorTagS
23c0 74 79 6c 65 20 3d 3e 20 53 74 79 6c 65 73 2e 79 65 6c 6c 6f 77 52 65 63 74 3b 0d 0a 20 20 20 20 tyle.=>.Styles.yellowRect;......
23e0 20 20 20 20 70 75 62 6c 69 63 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 62 69 ....public.SerializedProperty.bi
2400 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 3e 20 70 72 6f 70 65 72 74 79 2e ndingsArrayProperty.=>.property.
2420 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 42 69 6e 64 69 6e 67 73 FindPropertyRelative("m_Bindings
2440 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 53 65 72 69 61 6c 69 7a 65 64 50 72 ");..........public.SerializedPr
2460 6f 70 65 72 74 79 20 61 63 74 69 6f 6e 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 3e 20 70 operty.actionsArrayProperty.=>.p
2480 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f roperty.FindPropertyRelative("m_
24a0 41 63 74 69 6f 6e 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 Actions");..........public.overr
24c0 69 64 65 20 62 6f 6f 6c 20 73 65 72 69 61 6c 69 7a 65 64 44 61 74 61 49 6e 63 6c 75 64 65 73 43 ide.bool.serializedDataIncludesC
24e0 68 69 6c 64 72 65 6e 20 3d 3e 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c hildren.=>.true;............publ
2500 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 52 65 6e 61 6d 65 28 73 74 72 69 6e 67 20 6e ic.override.void.Rename(string.n
2520 65 77 4e 61 6d 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 ewName)..........{..............
2540 49 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 InputActionSerializationHelpers.
2560 52 65 6e 61 6d 65 41 63 74 69 6f 6e 4d 61 70 28 70 72 6f 70 65 72 74 79 2c 20 6e 65 77 4e 61 6d RenameActionMap(property,.newNam
2580 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 75 62 6c 69 63 e);..........}............public
25a0 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 65 6c 65 74 65 44 61 74 61 28 29 0d 0a 20 20 20 .override.void.DeleteData().....
25c0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 4f 62 6a .....{..............var.assetObj
25e0 65 63 74 20 3d 20 70 72 6f 70 65 72 74 79 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 3b ect.=.property.serializedObject;
2600 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 28 61 73 73 65 74 4f 62 6a 65 63 74 2e ..............if.(!(assetObject.
2620 74 61 72 67 65 74 4f 62 6a 65 63 74 20 69 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 targetObject.is.InputActionAsset
2640 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 49 6e ))..................throw.new.In
2660 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 validOperationException(........
2680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 41 63 74 69 6f 6e 20 6d 61 70 20 6d 75 73 74 20 ..............$"Action.map.must.
26a0 62 65 20 70 61 72 74 20 6f 66 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 62 75 74 20 be.part.of.InputActionAsset.but.
26c0 69 73 20 69 6e 20 7b 61 73 73 65 74 4f 62 6a 65 63 74 2e 74 61 72 67 65 74 4f 62 6a 65 63 74 7d is.in.{assetObject.targetObject}
26e0 20 69 6e 73 74 65 61 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 .instead");................Input
2700 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 44 65 6c 65 74 ActionSerializationHelpers.Delet
2720 65 41 63 74 69 6f 6e 4d 61 70 28 61 73 73 65 74 4f 62 6a 65 63 74 2c 20 67 75 69 64 29 3b 0d 0a eActionMap(assetObject,.guid);..
2740 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 ........}............public.over
2760 72 69 64 65 20 62 6f 6f 6c 20 41 63 63 65 70 74 73 44 72 6f 70 28 41 63 74 69 6f 6e 54 72 65 65 ride.bool.AcceptsDrop(ActionTree
2780 49 74 65 6d 42 61 73 65 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ItemBase.item)..........{.......
27a0 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 65 6d 20 69 73 20 41 63 74 69 6f 6e 54 72 65 65 .......return.item.is.ActionTree
27c0 49 74 65 6d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c Item;..........}............publ
27e0 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 47 65 74 44 72 6f 70 4c 6f 63 61 74 69 6f 6e ic.override.bool.GetDropLocation
2800 28 54 79 70 65 20 69 74 65 6d 54 79 70 65 2c 20 69 6e 74 3f 20 63 68 69 6c 64 49 6e 64 65 78 2c (Type.itemType,.int?.childIndex,
2820 20 72 65 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 72 72 61 79 2c 20 72 .ref.SerializedProperty.array,.r
2840 65 66 20 69 6e 74 20 61 72 72 61 79 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 ef.int.arrayIndex)..........{...
2860 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 6f 70 20 61 63 74 69 6f 6e 73 20 69 6e 74 6f 20 ...........//.Drop.actions.into.
2880 61 63 74 69 6f 6e 20 61 72 72 61 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 action.array...............if.(i
28a0 74 65 6d 54 79 70 65 20 3d 3d 20 74 79 70 65 6f 66 28 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d temType.==.typeof(ActionTreeItem
28c0 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 20 ))..............{...............
28e0 20 20 20 61 72 72 61 79 20 3d 20 61 63 74 69 6f 6e 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 3b ...array.=.actionsArrayProperty;
2900 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 49 6e 64 65 78 20 3d 20 63 ..................arrayIndex.=.c
2920 68 69 6c 64 49 6e 64 65 78 20 3f 3f 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 hildIndex.??.-1;................
2940 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d ..return.true;..............}...
2960 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 .............//.For.action.maps.
2980 69 6e 20 61 73 73 65 74 73 2c 20 64 72 6f 70 20 6f 74 68 65 72 20 61 63 74 69 6f 6e 20 6d 61 70 in.assets,.drop.other.action.map
29a0 73 20 6e 65 78 74 20 74 6f 20 74 68 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 s.next.to.them...............if.
29c0 28 69 74 65 6d 54 79 70 65 20 3d 3d 20 74 79 70 65 6f 66 28 41 63 74 69 6f 6e 4d 61 70 54 72 65 (itemType.==.typeof(ActionMapTre
29e0 65 49 74 65 6d 29 20 26 26 20 70 72 6f 70 65 72 74 79 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a eItem).&&.property.serializedObj
2a00 65 63 74 2e 74 61 72 67 65 74 4f 62 6a 65 63 74 20 69 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 ect.targetObject.is.InputActionA
2a20 73 73 65 74 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 sset)..............{............
2a40 20 20 20 20 20 20 61 72 72 61 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 50 ......array.=.property.GetArrayP
2a60 72 6f 70 65 72 74 79 46 72 6f 6d 45 6c 65 6d 65 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ropertyFromElement();...........
2a80 20 20 20 20 20 20 20 61 72 72 61 79 49 6e 64 65 78 20 3d 20 74 68 69 73 2e 61 72 72 61 79 49 6e .......arrayIndex.=.this.arrayIn
2aa0 64 65 78 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e dex.+.1;..................return
2ac0 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 .true;..............}...........
2ae0 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 77 6f 75 6c 64 20 62 65 20 6e 69 63 65 20 74 .....////REVIEW:.would.be.nice.t
2b00 6f 20 62 65 20 61 62 6c 65 20 74 6f 20 72 65 70 6c 61 63 65 20 74 68 65 20 65 6e 74 69 72 65 20 o.be.able.to.replace.the.entire.
2b20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 20 6d 61 70 20 69 6e 20 74 68 65 20 69 6e 73 70 65 63 74 contents.of.a.map.in.the.inspect
2b40 6f 72 20 62 79 20 64 72 6f 70 70 69 6e 67 20 69 6e 20 61 6e 6f 74 68 65 72 20 6d 61 70 0d 0a 0d or.by.dropping.in.another.map...
2b60 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 .............return.false;......
2b80 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 41 ....}............public.static.A
2ba0 63 74 69 6f 6e 4d 61 70 54 72 65 65 49 74 65 6d 20 41 64 64 54 6f 28 54 72 65 65 56 69 65 77 49 ctionMapTreeItem.AddTo(TreeViewI
2bc0 74 65 6d 20 70 61 72 65 6e 74 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 tem.parent,.SerializedProperty.a
2be0 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 ctionMapProperty)..........{....
2c00 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6e 65 77 20 41 63 74 69 6f 6e 4d ..........var.item.=.new.ActionM
2c20 61 70 54 72 65 65 49 74 65 6d 28 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 29 3b 0d 0a apTreeItem(actionMapProperty);..
2c40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 65 70 74 68 20 3d 20 70 61 72 65 6e ..............item.depth.=.paren
2c60 74 2e 64 65 70 74 68 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 t.depth.+.1;..............item.d
2c80 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 69 74 65 6d 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 isplayName.=.item.name;.........
2ca0 20 20 20 20 20 70 61 72 65 6e 74 2e 41 64 64 43 68 69 6c 64 28 69 74 65 6d 29 3b 0d 0a 0d 0a 20 .....parent.AddChild(item);.....
2cc0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 65 6d 3b 0d 0a 20 20 20 20 20 20 20 ...........return.item;.........
2ce0 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 41 64 64 41 63 74 .}............public.void.AddAct
2d00 69 6f 6e 73 54 6f 28 54 72 65 65 56 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 29 0d 0a 20 20 20 ionsTo(TreeViewItem.parent).....
2d20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 41 63 74 69 6f 6e 73 54 6f .....{..............AddActionsTo
2d40 28 70 61 72 65 6e 74 2c 20 61 64 64 42 69 6e 64 69 6e 67 73 3a 20 66 61 6c 73 65 29 3b 0d 0a 20 (parent,.addBindings:.false);...
2d60 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 69 64 20 .......}............public.void.
2d80 41 64 64 41 63 74 69 6f 6e 73 41 6e 64 42 69 6e 64 69 6e 67 73 54 6f 28 54 72 65 65 56 69 65 77 AddActionsAndBindingsTo(TreeView
2da0 49 74 65 6d 20 70 61 72 65 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 Item.parent)..........{.........
2dc0 20 20 20 20 20 41 64 64 41 63 74 69 6f 6e 73 54 6f 28 70 61 72 65 6e 74 2c 20 61 64 64 42 69 6e .....AddActionsTo(parent,.addBin
2de0 64 69 6e 67 73 3a 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 dings:.true);..........}........
2e00 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 41 64 64 41 63 74 69 6f 6e 73 54 6f 28 54 72 ....private.void.AddActionsTo(Tr
2e20 65 65 56 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 2c 20 62 6f 6f 6c 20 61 64 64 42 69 6e 64 69 eeViewItem.parent,.bool.addBindi
2e40 6e 67 73 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 ngs)..........{..............var
2e60 20 61 63 74 69 6f 6e 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 20 74 68 69 73 2e 61 63 74 .actionsArrayProperty.=.this.act
2e80 69 6f 6e 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ionsArrayProperty;..............
2ea0 44 65 62 75 67 2e 41 73 73 65 72 74 28 61 63 74 69 6f 6e 73 41 72 72 61 79 50 72 6f 70 65 72 74 Debug.Assert(actionsArrayPropert
2ec0 79 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 6d 5f 41 63 74 69 6f y.!=.null,.$"Cannot.find.m_Actio
2ee0 6e 73 20 69 6e 20 7b 70 72 6f 70 65 72 74 79 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ns.in.{property}");.............
2f00 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 61 63 74 69 6f 6e 73 41 72 ...for.(var.i.=.0;.i.<.actionsAr
2f20 72 61 79 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 0d 0a 20 20 20 rayProperty.arraySize;.i++).....
2f40 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 .........{..................var.
2f60 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 3d 20 61 63 74 69 6f 6e 73 41 72 72 61 79 50 72 6f actionProperty.=.actionsArrayPro
2f80 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b perty.GetArrayElementAtIndex(i);
2fa0 0d 0a 20 20 20 20 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 ..................var.actionItem
2fc0 20 3d 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 2e 41 64 64 54 6f 28 70 61 72 65 6e 74 2c 20 .=.ActionTreeItem.AddTo(parent,.
2fe0 70 72 6f 70 65 72 74 79 2c 20 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 20 property,.actionProperty);......
3000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 64 64 42 69 6e 64 69 6e 67 73 29 0d 0a ..............if.(addBindings)..
3020 20 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 49 74 65 6d 2e 41 ....................actionItem.A
3040 64 64 42 69 6e 64 69 6e 67 73 54 6f 28 61 63 74 69 6f 6e 49 74 65 6d 29 3b 0d 0a 20 20 20 20 20 ddBindingsTo(actionItem);.......
3060 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 .......}..........}............p
3080 75 62 6c 69 63 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 73 46 ublic.static.void.AddActionMapsF
30a0 72 6f 6d 41 73 73 65 74 54 6f 28 54 72 65 65 56 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 2c 20 romAssetTo(TreeViewItem.parent,.
30c0 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 20 61 73 73 65 74 4f 62 6a 65 63 74 29 0d 0a 20 SerializedObject.assetObject)...
30e0 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 61 63 74 69 6f 6e .......{..............var.action
3100 4d 61 70 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 20 61 73 73 65 74 4f 62 6a 65 63 74 2e MapsArrayProperty.=.assetObject.
3120 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 22 29 3b 0d 0a 20 FindProperty("m_ActionMaps");...
3140 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 6f 6e 4d 61 ...........Debug.Assert(actionMa
3160 70 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 43 61 6e 6e 6f psArrayProperty.!=.null,.$"Canno
3180 74 20 66 69 6e 64 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 69 6e 20 7b 61 73 73 65 74 4f 62 6a t.find.m_ActionMaps.in.{assetObj
31a0 65 63 74 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 ect}");..............Debug.Asser
31c0 74 28 61 63 74 69 6f 6e 4d 61 70 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 2e 69 73 41 72 72 61 t(actionMapsArrayProperty.isArra
31e0 79 2c 20 24 22 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 69 6e 20 7b 61 73 73 65 74 4f 62 6a 65 63 y,.$"m_ActionMaps.in.{assetObjec
3200 74 7d 20 69 73 20 6e 6f 74 20 61 6e 20 61 72 72 61 79 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 t}.is.not.an.array");...........
3220 20 20 20 20 20 76 61 72 20 6d 61 70 43 6f 75 6e 74 20 3d 20 61 63 74 69 6f 6e 4d 61 70 73 41 72 .....var.mapCount.=.actionMapsAr
3240 72 61 79 50 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 20 rayProperty.arraySize;..........
3260 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 61 70 43 6f 75 6e 74 ....for.(var.i.=.0;.i.<.mapCount
3280 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ;.++i)..............{...........
32a0 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 50 72 6f 70 65 72 74 79 20 3d 20 61 63 74 69 6f 6e 4d .......var.mapProperty.=.actionM
32c0 61 70 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 apsArrayProperty.GetArrayElement
32e0 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 AtIndex(i);..................Add
3300 54 6f 28 70 61 72 65 6e 74 2c 20 6d 61 70 50 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 To(parent,.mapProperty);........
3320 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 ......}..........}......}.......
3340 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 72 65 65 20 76 69 65 .///.<summary>......///.Tree.vie
3360 77 20 69 74 65 6d 20 66 6f 72 20 61 6e 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c w.item.for.an.action.......///.<
3380 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e /summary>......///.<see.cref="In
33a0 70 75 74 41 63 74 69 6f 6e 22 2f 3e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 putAction"/>......internal.class
33c0 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 20 3a 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d .ActionTreeItem.:.ActionTreeItem
33e0 42 61 73 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 63 74 69 Base......{..........public.Acti
3400 6f 6e 54 72 65 65 49 74 65 6d 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 63 onTreeItem(SerializedProperty.ac
3420 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 tionMapProperty,.SerializedPrope
3440 72 74 79 20 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 rty.actionProperty).............
3460 20 3a 20 62 61 73 65 28 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 .:.base(actionProperty).........
3480 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 61 63 74 69 6f 6e 4d 61 70 50 72 .{..............this.actionMapPr
34a0 6f 70 65 72 74 79 20 3d 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 operty.=.actionMapProperty;.....
34c0 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 53 65 72 69 61 6c 69 .....}............public.Seriali
34e0 7a 65 64 50 72 6f 70 65 72 74 79 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 20 7b 20 zedProperty.actionMapProperty.{.
3500 67 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 get;.}..........public.override.
3520 47 55 49 53 74 79 6c 65 20 63 6f 6c 6f 72 54 61 67 53 74 79 6c 65 20 3d 3e 20 53 74 79 6c 65 73 GUIStyle.colorTagStyle.=>.Styles
3540 2e 67 72 65 65 6e 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c .greenRect;..........public.bool
3560 20 69 73 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 20 3d 3e 20 61 63 74 69 6f 6e 4d 61 70 50 .isSingletonAction.=>.actionMapP
3580 72 6f 70 65 72 74 79 20 3d 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c roperty.==.null;............publ
35a0 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 20 65 78 70 65 63 74 65 64 43 6f 6e 74 72 ic.override.string.expectedContr
35c0 6f 6c 4c 61 79 6f 75 74 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 olLayout.=>..............propert
35e0 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 45 78 70 65 63 74 y.FindPropertyRelative("m_Expect
3600 65 64 43 6f 6e 74 72 6f 6c 54 79 70 65 22 29 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 0d 0a edControlType").stringValue;....
3620 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 ........public.SerializedPropert
3640 79 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 3e 20 69 73 53 69 6e y.bindingsArrayProperty.=>.isSin
3660 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 3f 20 70 72 6f 70 65 72 74 79 gletonAction..........?.property
3680 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 69 6e 67 6c 65 74 .FindPropertyRelative("m_Singlet
36a0 6f 6e 41 63 74 69 6f 6e 42 69 6e 64 69 6e 67 73 22 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 onActionBindings")..............
36c0 3a 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 :.actionMapProperty.FindProperty
36e0 52 65 6c 61 74 69 76 65 28 22 6d 5f 42 69 6e 64 69 6e 67 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 Relative("m_Bindings");.........
3700 20 20 20 2f 2f 20 49 66 20 77 65 27 72 65 20 61 20 73 69 6e 67 6c 65 74 6f 6e 20 61 63 74 69 6f ...//.If.we're.a.singleton.actio
3720 6e 20 28 6e 6f 20 61 73 73 6f 63 69 61 74 65 64 20 61 63 74 69 6f 6e 20 6d 61 70 20 70 72 6f 70 n.(no.associated.action.map.prop
3740 65 72 74 79 29 2c 20 77 65 20 69 6e 63 6c 75 64 65 20 61 6c 6c 20 6f 75 72 20 62 69 6e 64 69 6e erty),.we.include.all.our.bindin
3760 67 73 20 69 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 73 65 72 69 61 6c 69 7a 65 64 gs.in.the..........//.serialized
3780 20 64 61 74 61 2e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 .data...........public.override.
37a0 62 6f 6f 6c 20 73 65 72 69 61 6c 69 7a 65 64 44 61 74 61 49 6e 63 6c 75 64 65 73 43 68 69 6c 64 bool.serializedDataIncludesChild
37c0 72 65 6e 20 3d 3e 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 20 3d 3d 20 6e 75 6c 6c ren.=>.actionMapProperty.==.null
37e0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 ;............public.override.voi
3800 64 20 52 65 6e 61 6d 65 28 73 74 72 69 6e 67 20 6e 65 77 4e 61 6d 65 29 0d 0a 20 20 20 20 20 20 d.Rename(string.newName)........
3820 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 6e 53 65 72 69 ..{..............InputActionSeri
3840 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 52 65 6e 61 6d 65 41 63 74 69 6f 6e 28 70 72 alizationHelpers.RenameAction(pr
3860 6f 70 65 72 74 79 2c 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2c 20 6e 65 77 4e 61 operty,.actionMapProperty,.newNa
3880 6d 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 75 62 6c 69 me);..........}............publi
38a0 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 65 6c 65 74 65 44 61 74 61 28 29 0d 0a 20 20 c.override.void.DeleteData()....
38c0 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 6e ......{..............InputAction
38e0 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 44 65 6c 65 74 65 41 63 74 69 6f SerializationHelpers.DeleteActio
3900 6e 41 6e 64 42 69 6e 64 69 6e 67 73 28 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2c 20 nAndBindings(actionMapProperty,.
3920 67 75 69 64 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 75 62 guid);..........}............pub
3940 6c 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 41 63 63 65 70 74 73 44 72 6f 70 28 41 63 lic.override.bool.AcceptsDrop(Ac
3960 74 69 6f 6e 54 72 65 65 49 74 65 6d 42 61 73 65 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 tionTreeItemBase.item)..........
3980 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 65 6d 20 69 73 20 42 69 {..............return.item.is.Bi
39a0 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 20 26 26 20 21 28 69 74 65 6d 20 69 73 20 50 61 72 74 4f ndingTreeItem.&&.!(item.is.PartO
39c0 66 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 3b 0d 0a 20 20 20 fCompositeBindingTreeItem);.....
39e0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 .....}............public.overrid
3a00 65 20 62 6f 6f 6c 20 47 65 74 44 72 6f 70 4c 6f 63 61 74 69 6f 6e 28 54 79 70 65 20 69 74 65 6d e.bool.GetDropLocation(Type.item
3a20 54 79 70 65 2c 20 69 6e 74 3f 20 63 68 69 6c 64 49 6e 64 65 78 2c 20 72 65 66 20 53 65 72 69 61 Type,.int?.childIndex,.ref.Seria
3a40 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 72 72 61 79 2c 20 72 65 66 20 69 6e 74 20 61 72 72 lizedProperty.array,.ref.int.arr
3a60 61 79 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ayIndex)..........{.............
3a80 20 2f 2f 20 44 72 6f 70 20 62 69 6e 64 69 6e 67 73 20 69 6e 74 6f 20 62 69 6e 64 69 6e 67 20 61 .//.Drop.bindings.into.binding.a
3aa0 72 72 61 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 79 70 65 6f 66 28 42 69 rray...............if.(typeof(Bi
3ac0 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 2e 49 73 41 73 73 69 67 6e 61 62 6c 65 46 72 6f 6d 28 ndingTreeItem).IsAssignableFrom(
3ae0 69 74 65 6d 54 79 70 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 itemType))..............{.......
3b00 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 20 3d 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 ...........array.=.bindingsArray
3b20 50 72 6f 70 65 72 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 Property;....................//.
3b40 49 6e 64 65 78 69 6e 67 20 62 79 20 74 72 65 65 20 69 74 65 6d 73 20 69 73 20 72 65 6c 61 74 69 Indexing.by.tree.items.is.relati
3b60 76 65 20 74 6f 20 65 61 63 68 20 61 63 74 69 6f 6e 20 62 75 74 20 69 6e 64 65 78 69 6e 67 20 69 ve.to.each.action.but.indexing.i
3b80 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 62 69 6e 64 69 6e 67 20 61 72 n..................//.binding.ar
3ba0 72 61 79 20 69 73 20 67 6c 6f 62 61 6c 20 66 6f 72 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e ray.is.global.for.all.actions.in
3bc0 20 61 20 6d 61 70 2e 20 41 64 6a 75 73 74 20 69 6e 64 65 78 20 61 63 63 6f 72 64 69 6e 67 6c 79 .a.map..Adjust.index.accordingly
3be0 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 4f 54 45 3a 20 42 69 6e 64 ...................//.NOTE:.Bind
3c00 69 6e 67 73 20 66 6f 72 20 61 6e 79 20 6f 6e 65 20 61 63 74 69 6f 6e 20 6e 65 65 64 20 6e 6f 74 ings.for.any.one.action.need.not
3c20 20 62 65 20 73 74 6f 72 65 64 20 63 6f 6e 74 69 67 75 6f 75 73 6c 79 20 69 6e 20 74 68 65 20 62 .be.stored.contiguously.in.the.b
3c40 69 6e 64 69 6e 67 20 61 72 72 61 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f inding.array..................//
3c60 20 20 20 20 20 20 20 73 6f 20 77 65 20 63 61 6e 27 74 20 6a 75 73 74 20 61 64 64 20 73 6f 6d 65 .......so.we.can't.just.add.some
3c80 74 68 69 6e 67 20 74 6f 20 74 68 65 20 69 6e 64 65 78 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 thing.to.the.index.of.the.first.
3ca0 62 69 6e 64 69 6e 67 20 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 binding.to.the.action...........
3cc0 20 20 20 20 20 20 20 20 61 72 72 61 79 49 6e 64 65 78 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 ........arrayIndex.=............
3ce0 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 72 69 61 6c 69 7a 61 74 69 ..........InputActionSerializati
3d00 6f 6e 48 65 6c 70 65 72 73 2e 43 6f 6e 76 65 72 74 42 69 6e 64 69 6e 67 49 6e 64 65 78 4f 6e 41 onHelpers.ConvertBindingIndexOnA
3d20 63 74 69 6f 6e 54 6f 42 69 6e 64 69 6e 67 49 6e 64 65 78 49 6e 41 72 72 61 79 28 0d 0a 20 20 20 ctionToBindingIndexInArray(.....
3d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 2c 20 6e 61 6d 65 .....................array,.name
3d60 2c 20 63 68 69 6c 64 49 6e 64 65 78 20 3f 3f 20 2d 31 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ,.childIndex.??.-1);............
3d80 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ........return.true;............
3da0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 6f 70 20 6f 74 68 65 72 ..}................//.Drop.other
3dc0 20 61 63 74 69 6f 6e 73 20 6e 65 78 74 20 74 6f 20 75 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 .actions.next.to.us.............
3de0 20 20 69 66 20 28 69 74 65 6d 54 79 70 65 20 3d 3d 20 74 79 70 65 6f 66 28 41 63 74 69 6f 6e 54 ..if.(itemType.==.typeof(ActionT
3e00 72 65 65 49 74 65 6d 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 reeItem))..............{........
3e20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 20 3d 20 61 72 72 61 79 50 72 6f 70 65 72 74 79 3b ..........array.=.arrayProperty;
3e40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 49 6e 64 65 78 20 3d 20 74 ..................arrayIndex.=.t
3e60 68 69 73 2e 61 72 72 61 79 49 6e 64 65 78 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 his.arrayIndex.+.1;.............
3e80 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d .....return.true;..............}
3ea0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 ................return.false;...
3ec0 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 61 74 69 .......}............public.stati
3ee0 63 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 20 41 64 64 54 6f 28 54 72 65 65 56 69 65 77 49 c.ActionTreeItem.AddTo(TreeViewI
3f00 74 65 6d 20 70 61 72 65 6e 74 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 61 tem.parent,.SerializedProperty.a
3f20 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 ctionMapProperty,.SerializedProp
3f40 65 72 74 79 20 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d erty.actionProperty)..........{.
3f60 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6e 65 77 20 41 63 74 69 .............var.item.=.new.Acti
3f80 6f 6e 54 72 65 65 49 74 65 6d 28 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 2c 20 61 63 onTreeItem(actionMapProperty,.ac
3fa0 74 69 6f 6e 50 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 tionProperty);................it
3fc0 65 6d 2e 64 65 70 74 68 20 3d 20 70 61 72 65 6e 74 2e 64 65 70 74 68 20 2b 20 31 3b 0d 0a 20 20 em.depth.=.parent.depth.+.1;....
3fe0 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 69 74 65 ..........item.displayName.=.ite
4000 6d 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 65 6e 74 2e 41 64 64 43 m.name;..............parent.AddC
4020 68 69 6c 64 28 69 74 65 6d 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 hild(item);................retur
4040 6e 20 69 74 65 6d 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 n.item;..........}............//
4060 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 41 64 64 20 69 74 65 /.<summary>..........///.Add.ite
4080 6d 73 20 66 6f 72 20 74 68 65 20 62 69 6e 64 69 6e 67 73 20 6f 66 20 6a 75 73 74 20 74 68 69 73 ms.for.the.bindings.of.just.this
40a0 20 61 63 74 69 6f 6e 20 74 6f 20 74 68 65 20 67 69 76 65 6e 20 70 61 72 65 6e 74 20 74 72 65 65 .action.to.the.given.parent.tree
40c0 20 69 74 65 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a .item...........///.</summary>..
40e0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 64 64 42 69 6e 64 69 6e 67 73 54 ........public.void.AddBindingsT
4100 6f 28 54 72 65 65 56 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 o(TreeViewItem.parent)..........
4120 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 53 69 6e 67 6c 65 74 6f 6e 20 3d {..............var.isSingleton.=
4140 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 72 74 79 20 3d 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 .actionMapProperty.==.null;.....
4160 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 65 72 .........var.bindingsArrayProper
4180 74 79 20 3d 20 69 73 53 69 6e 67 6c 65 74 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty.=.isSingleton................
41a0 20 20 3f 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 ..?.property.FindPropertyRelativ
41c0 65 28 22 6d 5f 53 69 6e 67 6c 65 74 6f 6e 41 63 74 69 6f 6e 42 69 6e 64 69 6e 67 73 22 29 0d 0a e("m_SingletonActionBindings")..
41e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 61 63 74 69 6f 6e 4d 61 70 50 72 6f 70 65 ................:.actionMapPrope
4200 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 42 69 6e 64 rty.FindPropertyRelative("m_Bind
4220 69 6e 67 73 22 29 3b 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 ings");................var.bindi
4240 6e 67 73 43 6f 75 6e 74 49 6e 4d 61 70 20 3d 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f ngsCountInMap.=.bindingsArrayPro
4260 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 perty.arraySize;..............va
4280 72 20 63 75 72 72 65 6e 74 43 6f 6d 70 6f 73 69 74 65 20 3d 20 28 43 6f 6d 70 6f 73 69 74 65 42 r.currentComposite.=.(CompositeB
42a0 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 indingTreeItem)null;............
42c0 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 62 69 6e 64 69 6e 67 73 43 6f ..for.(var.i.=.0;.i.<.bindingsCo
42e0 75 6e 74 49 6e 4d 61 70 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 untInMap;.++i)..............{...
4300 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 ...............var.bindingProper
4320 74 79 20 3d 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 ty.=.bindingsArrayProperty.GetAr
4340 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 rayElementAtIndex(i);...........
4360 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6b 69 70 20 69 66 20 62 69 6e 64 69 6e 67 20 69 73 20 6e .........//.Skip.if.binding.is.n
4380 6f 74 20 66 6f 72 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 ot.for.action...................
43a0 76 61 72 20 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 3d 20 62 69 6e 64 69 6e 67 50 72 6f 70 var.actionProperty.=.bindingProp
43c0 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 41 63 74 erty.FindPropertyRelative("m_Act
43e0 69 6f 6e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 ion");..................Debug.As
4400 73 65 72 74 28 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 43 sert(actionProperty.!=.null,.$"C
4420 6f 75 6c 64 20 6e 6f 74 20 66 69 6e 64 20 6d 5f 41 63 74 69 6f 6e 20 69 6e 20 7b 62 69 6e 64 69 ould.not.find.m_Action.in.{bindi
4440 6e 67 50 72 6f 70 65 72 74 79 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ngProperty}");..................
4460 69 66 20 28 21 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 2e if.(!actionProperty.stringValue.
4480 45 71 75 61 6c 73 28 6e 61 6d 65 2c 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e Equals(name,.StringComparison.In
44a0 76 61 72 69 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 variantCultureIgnoreCase))......
44c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 ................continue;.......
44e0 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 65 20 77 68 61 74 20 6b 69 6e 64 20 6f 66 .............//.See.what.kind.of
4500 20 62 69 6e 64 69 6e 67 20 77 65 20 68 61 76 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .binding.we.have................
4520 20 20 20 76 61 72 20 66 6c 61 67 73 50 72 6f 70 65 72 74 79 20 3d 20 62 69 6e 64 69 6e 67 50 72 ...var.flagsProperty.=.bindingPr
4540 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 46 operty.FindPropertyRelative("m_F
4560 6c 61 67 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 lags");..................Debug.A
4580 73 73 65 72 74 28 61 63 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 21 3d 20 6e 75 6c 6c 2c 20 24 22 ssert(actionProperty.!=.null,.$"
45a0 43 6f 75 6c 64 20 6e 6f 74 20 66 69 6e 64 20 6d 5f 46 6c 61 67 73 20 69 6e 20 7b 62 69 6e 64 69 Could.not.find.m_Flags.in.{bindi
45c0 6e 67 50 72 6f 70 65 72 74 79 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ngProperty}");..................
45e0 76 61 72 20 66 6c 61 67 73 20 3d 20 28 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 46 6c 61 67 73 29 var.flags.=.(InputBinding.Flags)
4600 66 6c 61 67 73 50 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 flagsProperty.intValue;.........
4620 20 20 20 20 20 20 20 20 20 69 66 20 28 28 66 6c 61 67 73 20 26 20 49 6e 70 75 74 42 69 6e 64 69 .........if.((flags.&.InputBindi
4640 6e 67 2e 46 6c 61 67 73 2e 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 29 20 21 3d 20 30 20 26 ng.Flags.PartOfComposite).!=.0.&
4660 26 20 63 75 72 72 65 6e 74 43 6f 6d 70 6f 73 69 74 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 &.currentComposite.!=.null).....
4680 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
46a0 20 20 20 20 2f 2f 20 43 6f 6d 70 6f 73 69 74 65 20 70 61 72 74 20 62 69 6e 64 69 6e 67 2e 0d 0a ....//.Composite.part.binding...
46c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 61 72 74 4f 66 43 6f 6d 70 6f 73 ....................PartOfCompos
46e0 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 2e 41 64 64 54 6f 28 63 75 72 72 65 6e 74 iteBindingTreeItem.AddTo(current
4700 43 6f 6d 70 6f 73 69 74 65 2c 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 Composite,.bindingProperty);....
4720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
4740 20 65 6c 73 65 20 69 66 20 28 28 66 6c 61 67 73 20 26 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e .else.if.((flags.&.InputBinding.
4760 46 6c 61 67 73 2e 43 6f 6d 70 6f 73 69 74 65 29 20 21 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 Flags.Composite).!=.0)..........
4780 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 ........{....................../
47a0 2f 20 43 6f 6d 70 6f 73 69 74 65 20 62 69 6e 64 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 /.Composite.binding.............
47c0 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 43 6f 6d 70 6f 73 69 74 65 20 3d 20 43 6f 6d ..........currentComposite.=.Com
47e0 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 2e 41 64 64 54 6f 28 70 61 72 65 positeBindingTreeItem.AddTo(pare
4800 6e 74 2c 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 nt,.bindingProperty);...........
4820 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 65 0d 0a .......}..................else..
4840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
4860 20 20 20 20 20 20 20 2f 2f 20 22 4e 6f 72 6d 61 6c 22 20 62 69 6e 64 69 6e 67 2e 0d 0a 20 20 20 .......//."Normal".binding......
4880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d .................BindingTreeItem
48a0 2e 41 64 64 54 6f 28 70 61 72 65 6e 74 2c 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 3b .AddTo(parent,.bindingProperty);
48c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 43 6f 6d ......................currentCom
48e0 70 6f 73 69 74 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 posite.=.null;..................
4900 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 }..............}..........}.....
4920 20 7d 0d 0a 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f .}........///.<summary>......///
4940 20 54 72 65 65 20 76 69 65 77 20 69 74 65 6d 20 66 6f 72 20 61 20 62 69 6e 64 69 6e 67 2e 0d 0a .Tree.view.item.for.a.binding...
4960 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 2f 2f 20 3c 73 65 65 ....///.</summary>......///.<see
4980 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 22 2f 3e 0d 0a 20 20 20 20 also.cref="InputBinding"/>......
49a0 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 20 3a internal.class.BindingTreeItem.:
49c0 20 41 63 74 69 6f 6e 54 72 65 65 49 74 65 6d 42 61 73 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 .ActionTreeItemBase......{......
49e0 20 20 20 20 70 75 62 6c 69 63 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 28 53 65 72 69 61 ....public.BindingTreeItem(Seria
4a00 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 0d 0a lizedProperty.bindingProperty)..
4a20 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 62 61 73 65 28 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 ............:.base(bindingProper
4a40 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 20 70 61 74 68 ty)..........{..............path
4a60 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 .=.property.FindPropertyRelative
4a80 28 22 6d 5f 50 61 74 68 22 29 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 ("m_Path").stringValue;.........
4aa0 20 20 20 20 20 67 72 6f 75 70 73 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 .....groups.=.property.FindPrope
4ac0 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 72 6f 75 70 73 22 29 2e 73 74 72 69 6e 67 56 61 rtyRelative("m_Groups").stringVa
4ae0 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 20 3d 20 70 72 6f 70 65 lue;..............action.=.prope
4b00 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 41 63 74 69 rty.FindPropertyRelative("m_Acti
4b20 6f 6e 22 29 2e 73 74 72 69 6e 67 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a on").stringValue;..........}....
4b40 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 70 61 74 68 20 7b 20 67 65 74 ........public.string.path.{.get
4b60 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 67 72 6f 75 70 ;.}..........public.string.group
4b80 73 20 7b 20 67 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e s.{.get;.}..........public.strin
4ba0 67 20 61 63 74 69 6f 6e 20 7b 20 67 65 74 3b 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 g.action.{.get;.}............pub
4bc0 6c 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 63 61 6e 52 65 6e 61 6d 65 20 3d 3e 20 66 lic.override.bool.canRename.=>.f
4be0 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 47 alse;..........public.override.G
4c00 55 49 53 74 79 6c 65 20 63 6f 6c 6f 72 54 61 67 53 74 79 6c 65 20 3d 3e 20 53 74 79 6c 65 73 2e UIStyle.colorTagStyle.=>.Styles.
4c20 62 6c 75 65 52 65 63 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 blueRect;............public.stri
4c40 6e 67 20 64 69 73 70 6c 61 79 50 61 74 68 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 21 ng.displayPath.=>..............!
4c60 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 61 74 68 29 20 3f 20 49 6e 70 string.IsNullOrEmpty(path).?.Inp
4c80 75 74 43 6f 6e 74 72 6f 6c 50 61 74 68 2e 54 6f 48 75 6d 61 6e 52 65 61 64 61 62 6c 65 53 74 72 utControlPath.ToHumanReadableStr
4ca0 69 6e 67 28 70 61 74 68 29 20 3a 20 22 3c 4e 6f 20 42 69 6e 64 69 6e 67 3e 22 3b 0d 0a 0d 0a 20 ing(path).:."<No.Binding>";.....
4cc0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 20 65 78 .......public.override.string.ex
4ce0 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a pectedControlLayout..........{..
4d00 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ............get..............{..
4d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 69 6e 64 20 74 68 65 20 61 63 74 69 ................//.Find.the.acti
4d40 6f 6e 20 77 65 27 72 65 20 75 6e 64 65 72 20 61 6e 64 20 72 65 74 75 72 6e 20 69 74 73 20 65 78 on.we're.under.and.return.its.ex
4d60 70 65 63 74 65 64 20 63 6f 6e 74 72 6f 6c 20 6c 61 79 6f 75 74 2e 0d 0a 20 20 20 20 20 20 20 20 pected.control.layout...........
4d80 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 74 65 6d 20 3d 20 70 61 72 65 6e 74 3b 20 ........for.(var.item.=.parent;.
4da0 69 74 65 6d 20 21 3d 20 6e 75 6c 6c 3b 20 69 74 65 6d 20 3d 20 69 74 65 6d 2e 70 61 72 65 6e 74 item.!=.null;.item.=.item.parent
4dc0 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 )..................{............
4de0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d 20 69 73 20 41 63 74 69 6f 6e 54 72 65 65 ..........if.(item.is.ActionTree
4e00 49 74 65 6d 20 61 63 74 69 6f 6e 49 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Item.actionItem)................
4e20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 63 74 69 6f 6e 49 74 65 6d 2e 65 78 70 65 ..........return.actionItem.expe
4e40 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ctedControlLayout;..............
4e60 20 20 20 20 7d 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 73 74 ....}..................return.st
4e80 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 ring.Empty;..............}......
4ea0 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 ....}............public.override
4ec0 20 76 6f 69 64 20 44 65 6c 65 74 65 44 61 74 61 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 .void.DeleteData()..........{...
4ee0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 ...........var.bindingsArrayProp
4f00 65 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 47 65 74 50 61 72 65 6e 74 50 72 6f 70 65 72 74 erty.=.property.GetParentPropert
4f20 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 72 y();..............InputActionSer
4f40 69 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 44 65 6c 65 74 65 42 69 6e 64 69 6e 67 28 ializationHelpers.DeleteBinding(
4f60 62 69 6e 64 69 6e 67 73 41 72 72 61 79 50 72 6f 70 65 72 74 79 2c 20 67 75 69 64 29 3b 0d 0a 20 bindingsArrayProperty,.guid);...
4f80 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 .......}............public.overr
4fa0 69 64 65 20 62 6f 6f 6c 20 41 63 63 65 70 74 73 44 72 6f 70 28 41 63 74 69 6f 6e 54 72 65 65 49 ide.bool.AcceptsDrop(ActionTreeI
4fc0 74 65 6d 42 61 73 65 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 temBase.item)..........{........
4fe0 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a ......return.false;..........}..
5000 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 47 ..........public.override.bool.G
5020 65 74 44 72 6f 70 4c 6f 63 61 74 69 6f 6e 28 54 79 70 65 20 69 74 65 6d 54 79 70 65 2c 20 69 6e etDropLocation(Type.itemType,.in
5040 74 3f 20 63 68 69 6c 64 49 6e 64 65 78 2c 20 72 65 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f t?.childIndex,.ref.SerializedPro
5060 70 65 72 74 79 20 61 72 72 61 79 2c 20 72 65 66 20 69 6e 74 20 61 72 72 61 79 49 6e 64 65 78 29 perty.array,.ref.int.arrayIndex)
5080 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 44 72 6f 70 ..........{..............//.Drop
50a0 20 62 69 6e 64 69 6e 67 73 20 6e 65 78 74 20 74 6f 20 75 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 .bindings.next.to.us............
50c0 20 20 20 69 66 20 28 74 79 70 65 6f 66 28 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 2e 49 ...if.(typeof(BindingTreeItem).I
50e0 73 41 73 73 69 67 6e 61 62 6c 65 46 72 6f 6d 28 69 74 65 6d 54 79 70 65 29 29 0d 0a 20 20 20 20 sAssignableFrom(itemType))......
5100 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 61 72 72 61 79 ........{..................array
5120 20 3d 20 61 72 72 61 79 50 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .=.arrayProperty;...............
5140 20 20 20 61 72 72 61 79 49 6e 64 65 78 20 3d 20 74 68 69 73 2e 61 72 72 61 79 49 6e 64 65 78 20 ...arrayIndex.=.this.arrayIndex.
5160 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 +.1;..................return.tru
5180 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 e;..............}...............
51a0 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 .return.false;..........}.......
51c0 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 .....public.static.BindingTreeIt
51e0 65 6d 20 41 64 64 54 6f 28 54 72 65 65 56 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 2c 20 53 65 em.AddTo(TreeViewItem.parent,.Se
5200 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 rializedProperty.bindingProperty
5220 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 69 74 )..........{..............var.it
5240 65 6d 20 3d 20 6e 65 77 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 28 62 69 6e 64 69 6e 67 em.=.new.BindingTreeItem(binding
5260 50 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 Property);................item.d
5280 65 70 74 68 20 3d 20 70 61 72 65 6e 74 2e 64 65 70 74 68 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 epth.=.parent.depth.+.1;........
52a0 20 20 20 20 20 20 69 74 65 6d 2e 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 69 74 65 6d 2e 64 69 ......item.displayName.=.item.di
52c0 73 70 6c 61 79 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 65 6e 74 2e 41 splayPath;..............parent.A
52e0 64 64 43 68 69 6c 64 28 69 74 65 6d 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 ddChild(item);................re
5300 74 75 72 6e 20 69 74 65 6d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a turn.item;..........}......}....
5320 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 72 65 65 20 ....///.<summary>......///.Tree.
5340 76 69 65 77 20 69 74 65 6d 20 66 6f 72 20 61 20 63 6f 6d 70 6f 73 69 74 65 20 62 69 6e 64 69 6e view.item.for.a.composite.bindin
5360 67 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 2f 2f 20 g.......///.</summary>......///.
5380 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 69 73 43 6f <seealso.cref="InputBinding.isCo
53a0 6d 70 6f 73 69 74 65 22 2f 3e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 20 43 mposite"/>......internal.class.C
53c0 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 20 3a 20 42 69 6e 64 69 6e ompositeBindingTreeItem.:.Bindin
53e0 67 54 72 65 65 49 74 65 6d 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 gTreeItem......{..........public
5400 20 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 28 53 65 72 69 61 6c .CompositeBindingTreeItem(Serial
5420 69 7a 65 64 50 72 6f 70 65 72 74 79 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 0d 0a 20 izedProperty.bindingProperty)...
5440 20 20 20 20 20 20 20 20 20 20 20 3a 20 62 61 73 65 28 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 ...........:.base(bindingPropert
5460 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 y)..........{..........}........
5480 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 47 55 49 53 74 79 6c 65 20 63 6f 6c ....public.override.GUIStyle.col
54a0 6f 72 54 61 67 53 74 79 6c 65 20 3d 3e 20 53 74 79 6c 65 73 2e 62 6c 75 65 52 65 63 74 3b 0d 0a orTagStyle.=>.Styles.blueRect;..
54c0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 63 61 6e ........public.override.bool.can
54e0 52 65 6e 61 6d 65 20 3d 3e 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 Rename.=>.true;............publi
5500 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 52 65 6e 61 6d 65 28 73 74 72 69 6e 67 20 6e 65 c.override.void.Rename(string.ne
5520 77 4e 61 6d 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 49 wName)..........{..............I
5540 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
5560 65 6e 61 6d 65 43 6f 6d 70 6f 73 69 74 65 28 70 72 6f 70 65 72 74 79 2c 20 6e 65 77 4e 61 6d 65 enameComposite(property,.newName
5580 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 75 62 6c 69 63 20 );..........}............public.
55a0 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 41 63 63 65 70 74 73 44 72 6f 70 28 41 63 74 69 6f 6e override.bool.AcceptsDrop(Action
55c0 54 72 65 65 49 74 65 6d 42 61 73 65 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 TreeItemBase.item)..........{...
55e0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 65 6d 20 69 73 20 50 61 72 74 4f 66 ...........return.item.is.PartOf
5600 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 3b 0d 0a 20 20 20 20 20 CompositeBindingTreeItem;.......
5620 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 ...}............public.override.
5640 62 6f 6f 6c 20 47 65 74 44 72 6f 70 4c 6f 63 61 74 69 6f 6e 28 54 79 70 65 20 69 74 65 6d 54 79 bool.GetDropLocation(Type.itemTy
5660 70 65 2c 20 69 6e 74 3f 20 63 68 69 6c 64 49 6e 64 65 78 2c 20 72 65 66 20 53 65 72 69 61 6c 69 pe,.int?.childIndex,.ref.Seriali
5680 7a 65 64 50 72 6f 70 65 72 74 79 20 61 72 72 61 79 2c 20 72 65 66 20 69 6e 74 20 61 72 72 61 79 zedProperty.array,.ref.int.array
56a0 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f Index)..........{............../
56c0 2f 20 44 72 6f 70 20 70 61 72 74 20 62 69 6e 64 69 6e 67 20 69 6e 74 6f 20 63 6f 6d 70 6f 73 69 /.Drop.part.binding.into.composi
56e0 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d 54 79 70 65 20 3d 3d te...............if.(itemType.==
5700 20 74 79 70 65 6f 66 28 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 .typeof(PartOfCompositeBindingTr
5720 65 65 49 74 65 6d 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 eeItem))..............{.........
5740 20 20 20 20 20 20 20 20 20 61 72 72 61 79 20 3d 20 61 72 72 61 79 50 72 6f 70 65 72 74 79 3b 0d .........array.=.arrayProperty;.
5760 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 6a 75 73 74 20 63 68 69 ...................//.Adjust.chi
5780 6c 64 20 69 6e 64 65 78 20 62 79 20 69 6e 64 65 78 20 6f 66 20 63 6f 6d 70 6f 73 69 74 65 20 69 ld.index.by.index.of.composite.i
57a0 74 65 6d 20 69 74 73 65 6c 66 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 tem.itself...................arr
57c0 61 79 49 6e 64 65 78 20 3d 20 63 68 69 6c 64 49 6e 64 65 78 20 21 3d 20 6e 75 6c 6c 0d 0a 20 20 ayIndex.=.childIndex.!=.null....
57e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3f 20 74 68 69 73 2e 61 72 72 61 79 49 6e ..................?.this.arrayIn
5800 64 65 78 20 2b 20 31 20 2b 20 63 68 69 6c 64 49 6e 64 65 78 2e 56 61 6c 75 65 20 2f 2f 20 44 72 dex.+.1.+.childIndex.Value.//.Dr
5820 6f 70 70 69 6e 67 20 61 74 20 23 30 20 73 68 6f 75 6c 64 20 70 75 74 20 61 73 20 6f 75 72 20 69 opping.at.#0.should.put.as.our.i
5840 6e 64 65 78 20 70 6c 75 73 20 6f 6e 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ndex.plus.one...................
5860 20 20 20 20 3a 20 74 68 69 73 2e 61 72 72 61 79 49 6e 64 65 78 20 2b 20 31 20 2b 20 49 6e 70 75 ....:.this.arrayIndex.+.1.+.Inpu
5880 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 47 65 74 43 tActionSerializationHelpers.GetC
58a0 6f 6d 70 6f 73 69 74 65 50 61 72 74 43 6f 75 6e 74 28 61 72 72 61 79 2c 20 74 68 69 73 2e 61 72 ompositePartCount(array,.this.ar
58c0 72 61 79 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 rayIndex);....................re
58e0 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 turn.true;..............}.......
5900 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 6f 70 20 6f 74 68 65 72 20 62 69 6e 64 69 6e 67 73 20 .........//.Drop.other.bindings.
5920 6e 65 78 74 20 74 6f 20 75 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 79 70 next.to.us...............if.(typ
5940 65 6f 66 28 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 29 2e 49 73 41 73 73 69 67 6e 61 62 6c eof(BindingTreeItem).IsAssignabl
5960 65 46 72 6f 6d 28 69 74 65 6d 54 79 70 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d eFrom(itemType))..............{.
5980 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 20 3d 20 61 72 72 61 79 50 72 .................array.=.arrayPr
59a0 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 49 6e operty;..................arrayIn
59c0 64 65 78 20 3d 20 74 68 69 73 2e 61 72 72 61 79 49 6e 64 65 78 20 2b 20 31 20 2b 0d 0a 20 20 20 dex.=.this.arrayIndex.+.1.+.....
59e0 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 6f 6e 53 65 72 69 .................InputActionSeri
5a00 61 6c 69 7a 61 74 69 6f 6e 48 65 6c 70 65 72 73 2e 47 65 74 43 6f 6d 70 6f 73 69 74 65 50 61 72 alizationHelpers.GetCompositePar
5a20 74 43 6f 75 6e 74 28 61 72 72 61 79 2c 20 74 68 69 73 2e 61 72 72 61 79 49 6e 64 65 78 29 3b 0d tCount(array,.this.arrayIndex);.
5a40 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 .................return.true;...
5a60 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 72 65 74 75 ...........}................retu
5a80 72 6e 20 66 61 6c 73 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 rn.false;..........}............
5aa0 70 75 62 6c 69 63 20 6e 65 77 20 73 74 61 74 69 63 20 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 public.new.static.CompositeBindi
5ac0 6e 67 54 72 65 65 49 74 65 6d 20 41 64 64 54 6f 28 54 72 65 65 56 69 65 77 49 74 65 6d 20 70 61 ngTreeItem.AddTo(TreeViewItem.pa
5ae0 72 65 6e 74 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 62 69 6e 64 69 6e 67 rent,.SerializedProperty.binding
5b00 50 72 6f 70 65 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 Property)..........{............
5b20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6e 65 77 20 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e ..var.item.=.new.CompositeBindin
5b40 67 54 72 65 65 49 74 65 6d 28 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 gTreeItem(bindingProperty);.....
5b60 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 65 70 74 68 20 3d 20 70 61 72 65 6e 74 2e 64 ...........item.depth.=.parent.d
5b80 65 70 74 68 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 64 69 73 70 epth.+.1;..............item.disp
5ba0 6c 61 79 4e 61 6d 65 20 3d 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 layName.=.!string.IsNullOrEmpty(
5bc0 69 74 65 6d 2e 6e 61 6d 65 29 20 3f 20 69 74 65 6d 2e 6e 61 6d 65 20 3a 20 4f 62 6a 65 63 74 4e item.name).?.item.name.:.ObjectN
5be0 61 6d 65 73 2e 4e 69 63 69 66 79 56 61 72 69 61 62 6c 65 4e 61 6d 65 28 69 74 65 6d 2e 70 61 74 ames.NicifyVariableName(item.pat
5c00 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 65 6e 74 2e 41 64 64 43 68 69 6c 64 h);..............parent.AddChild
5c20 28 69 74 65 6d 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 (item);................return.it
5c40 65 6d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 2f 2f 2f em;..........}......}........///
5c60 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 72 65 65 20 76 69 65 77 20 69 74 .<summary>......///.Tree.view.it
5c80 65 6d 20 66 6f 72 20 62 69 6e 64 69 6e 67 73 20 74 68 61 74 20 61 72 65 20 70 61 72 74 73 20 6f em.for.bindings.that.are.parts.o
5ca0 66 20 63 6f 6d 70 6f 73 69 74 65 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 f.composites.......///.</summary
5cc0 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 42 69 6e 64 69 >......///.<see.cref="InputBindi
5ce0 6e 67 2e 69 73 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 2f 3e 0d 0a 20 20 20 20 69 6e 74 ng.isPartOfComposite"/>......int
5d00 65 72 6e 61 6c 20 63 6c 61 73 73 20 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 ernal.class.PartOfCompositeBindi
5d20 6e 67 54 72 65 65 49 74 65 6d 20 3a 20 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 0d 0a 20 20 ngTreeItem.:.BindingTreeItem....
5d40 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 50 61 72 74 4f 66 43 6f 6d 70 6f 73 ..{..........public.PartOfCompos
5d60 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f iteBindingTreeItem(SerializedPro
5d80 70 65 72 74 79 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 perty.bindingProperty)..........
5da0 20 20 20 20 3a 20 62 61 73 65 28 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 ....:.base(bindingProperty).....
5dc0 20 20 20 20 20 7b 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 .....{..........}............pub
5de0 6c 69 63 20 6f 76 65 72 72 69 64 65 20 47 55 49 53 74 79 6c 65 20 63 6f 6c 6f 72 54 61 67 53 74 lic.override.GUIStyle.colorTagSt
5e00 79 6c 65 20 3d 3e 20 53 74 79 6c 65 73 2e 70 69 6e 6b 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 yle.=>.Styles.pinkRect;.........
5e20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 62 6f 6f 6c 20 63 61 6e 52 65 6e 61 6d 65 20 .public.override.bool.canRename.
5e40 3d 3e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 =>.false;............public.over
5e60 72 69 64 65 20 73 74 72 69 6e 67 20 65 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 ride.string.expectedControlLayou
5e80 74 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 67 65 74 0d 0a 20 t..........{..............get...
5ea0 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
5ec0 20 28 6d 5f 45 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 20 3d 3d 20 6e 75 6c .(m_ExpectedControlLayout.==.nul
5ee0 6c 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 l)..................{...........
5f00 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 74 4e 61 6d 65 20 3d 20 6e 61 6d 65 3b 0d ...........var.partName.=.name;.
5f20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 70 6f 73 69 .....................var.composi
5f40 74 65 4e 61 6d 65 20 3d 20 28 28 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 teName.=.((CompositeBindingTreeI
5f60 74 65 6d 29 70 61 72 65 6e 74 29 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 tem)parent).name;...............
5f80 20 20 20 20 20 20 20 76 61 72 20 6c 61 79 6f 75 74 4e 61 6d 65 20 3d 20 49 6e 70 75 74 42 69 6e .......var.layoutName.=.InputBin
5fa0 64 69 6e 67 43 6f 6d 70 6f 73 69 74 65 2e 47 65 74 45 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c dingComposite.GetExpectedControl
5fc0 4c 61 79 6f 75 74 4e 61 6d 65 28 63 6f 6d 70 6f 73 69 74 65 4e 61 6d 65 2c 20 70 61 72 74 4e 61 LayoutName(compositeName,.partNa
5fe0 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 78 70 65 me);......................m_Expe
6000 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 20 3d 20 6c 61 79 6f 75 74 4e 61 6d 65 20 3f ctedControlLayout.=.layoutName.?
6020 3f 20 22 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 ?."";..................}........
6040 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 45 78 70 65 63 74 65 64 43 6f 6e ............return.m_ExpectedCon
6060 74 72 6f 6c 4c 61 79 6f 75 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 trolLayout;..............}......
6080 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 73 74 72 69 6e 67 20 ....}............private.string.
60a0 6d 5f 45 78 70 65 63 74 65 64 43 6f 6e 74 72 6f 6c 4c 61 79 6f 75 74 3b 0d 0a 0d 0a 20 20 20 20 m_ExpectedControlLayout;........
60c0 20 20 20 20 70 75 62 6c 69 63 20 6e 65 77 20 73 74 61 74 69 63 20 50 61 72 74 4f 66 43 6f 6d 70 ....public.new.static.PartOfComp
60e0 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 20 41 64 64 54 6f 28 54 72 65 65 56 ositeBindingTreeItem.AddTo(TreeV
6100 69 65 77 49 74 65 6d 20 70 61 72 65 6e 74 2c 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 iewItem.parent,.SerializedProper
6120 74 79 20 62 69 6e 64 69 6e 67 50 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a ty.bindingProperty)..........{..
6140 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6e 65 77 20 50 61 72 74 4f ............var.item.=.new.PartO
6160 66 43 6f 6d 70 6f 73 69 74 65 42 69 6e 64 69 6e 67 54 72 65 65 49 74 65 6d 28 62 69 6e 64 69 6e fCompositeBindingTreeItem(bindin
6180 67 50 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e gProperty);................item.
61a0 64 65 70 74 68 20 3d 20 70 61 72 65 6e 74 2e 64 65 70 74 68 20 2b 20 31 3b 0d 0a 20 20 20 20 20 depth.=.parent.depth.+.1;.......
61c0 20 20 20 20 20 20 20 69 74 65 6d 2e 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 24 22 7b 4f 62 6a .......item.displayName.=.$"{Obj
61e0 65 63 74 4e 61 6d 65 73 2e 4e 69 63 69 66 79 56 61 72 69 61 62 6c 65 4e 61 6d 65 28 69 74 65 6d ectNames.NicifyVariableName(item
6200 2e 6e 61 6d 65 29 7d 3a 20 7b 69 74 65 6d 2e 64 69 73 70 6c 61 79 50 61 74 68 7d 22 3b 0d 0a 20 .name)}:.{item.displayPath}";...
6220 20 20 20 20 20 20 20 20 20 20 20 70 61 72 65 6e 74 2e 41 64 64 43 68 69 6c 64 28 69 74 65 6d 29 ...........parent.AddChild(item)
6240 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 74 65 6d 3b 0d 0a 20 ;................return.item;...
6260 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e 64 69 66 20 2f 2f 20 55 4e .......}......}..}..#endif.//.UN
6280 49 54 59 5f 45 44 49 54 4f 52 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ITY_EDITOR......................
62a0 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 54 72 65 65 56 69 65 77 49 74 65 6d 73 00 00 00 00 ....InputActionTreeViewItems....