| ofs | hex dump | ascii |
|---|
| 0000 | 00 00 0f 81 00 00 af 58 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe | .......X............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 | f8 9e 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fe0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 | .....................y.......... |
| 1040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1080 | 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 74 9e 00 00 | ............InputActionAssett... |
| 10a0 | 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c | using.System;..using.System.Coll |
| 10c0 | 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f | ections;..using.System.Collectio |
| 10e0 | 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 | ns.Generic;..using.UnityEngine.I |
| 1100 | 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 | nputSystem.Utilities;....////TOD |
| 1120 | 4f 3a 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 2c 20 6c 69 6b 65 20 61 63 74 69 6f 6e 73 | O:.control.schemes,.like.actions |
| 1140 | 20 61 6e 64 20 6d 61 70 73 2c 20 73 68 6f 75 6c 64 20 68 61 76 65 20 73 74 61 62 6c 65 20 49 44 | .and.maps,.should.have.stable.ID |
| 1160 | 73 20 73 6f 20 74 68 61 74 20 74 68 65 79 20 63 61 6e 20 62 65 20 72 65 6e 61 6d 65 64 0d 0a 0d | s.so.that.they.can.be.renamed... |
| 1180 | 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 68 61 76 65 20 73 6f 6d 65 20 77 61 79 20 6f 66 20 65 78 | .////REVIEW:.have.some.way.of.ex |
| 11a0 | 70 72 65 73 73 69 6e 67 20 27 63 6f 6e 74 72 61 63 74 73 27 20 6f 6e 20 61 63 74 69 6f 6e 20 6d | pressing.'contracts'.on.action.m |
| 11c0 | 61 70 73 3f 20 49 2e 65 2e 20 73 6f 6d 65 74 68 69 6e 67 20 6c 69 6b 65 0d 0a 2f 2f 2f 2f 20 20 | aps?.I.e..something.like..////.. |
| 11e0 | 20 20 20 20 20 20 22 49 20 65 78 70 65 63 74 20 61 20 27 6c 6f 6f 6b 27 20 61 6e 64 20 61 20 27 | ......"I.expect.a.'look'.and.a.' |
| 1200 | 6d 6f 76 65 27 20 61 63 74 69 6f 6e 20 69 6e 20 68 65 72 65 22 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 | move'.action.in.here"....////REV |
| 1220 | 49 45 57 3a 20 72 65 6e 61 6d 65 20 74 68 69 73 20 66 72 6f 6d 20 22 49 6e 70 75 74 41 63 74 69 | IEW:.rename.this.from."InputActi |
| 1240 | 6f 6e 41 73 73 65 74 22 20 74 6f 20 73 6f 6d 65 74 68 69 6e 67 20 65 6c 73 65 20 74 68 61 74 20 | onAsset".to.something.else.that. |
| 1260 | 65 6d 70 68 61 73 69 7a 65 73 20 74 68 65 20 61 73 73 65 74 20 61 73 70 65 63 74 20 6c 65 73 73 | emphasizes.the.asset.aspect.less |
| 1280 | 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 61 6e 64 20 69 6e 73 74 65 61 64 20 65 6d 70 68 61 73 | ..////........and.instead.emphas |
| 12a0 | 69 7a 65 73 20 74 68 65 20 6d 61 70 20 63 6f 6c 6c 65 63 74 69 6f 6e 20 61 73 70 65 63 74 20 6d | izes.the.map.collection.aspect.m |
| 12c0 | 6f 72 65 3f 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 | ore?....namespace.UnityEngine.In |
| 12e0 | 70 75 74 53 79 73 74 65 6d 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d | putSystem..{......///.<summary>. |
| 1300 | 0a 20 20 20 20 2f 2f 2f 20 41 6e 20 61 73 73 65 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 61 63 74 | .....///.An.asset.containing.act |
| 1320 | 69 6f 6e 20 6d 61 70 73 20 61 6e 64 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 2e 0d 0a 20 | ion.maps.and.control.schemes.... |
| 1340 | 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 72 65 6d 61 | ...///.</summary>......///.<rema |
| 1360 | 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 20 | rks>......///.InputActionAssets. |
| 1380 | 63 61 6e 20 62 65 20 63 72 65 61 74 65 64 20 69 6e 20 63 6f 64 65 20 62 75 74 20 61 72 65 20 75 | can.be.created.in.code.but.are.u |
| 13a0 | 73 75 61 6c 6c 79 20 73 74 6f 72 65 64 20 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 20 6f 6e 0d | sually.stored.in.JSON.format.on. |
| 13c0 | 0a 20 20 20 20 2f 2f 2f 20 64 69 73 6b 20 77 69 74 68 20 74 68 65 20 22 2e 69 6e 70 75 74 61 63 | .....///.disk.with.the.".inputac |
| 13e0 | 74 69 6f 6e 73 22 20 65 78 74 65 6e 73 69 6f 6e 20 61 6e 64 20 61 72 65 20 69 6d 70 6f 72 74 65 | tions".extension.and.are.importe |
| 1400 | 64 20 62 79 20 55 6e 69 74 79 20 75 73 69 6e 67 20 61 20 63 75 73 74 6f 6d 0d 0a 20 20 20 20 2f | d.by.Unity.using.a.custom....../ |
| 1420 | 2f 2f 20 69 6d 70 6f 72 74 65 72 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 | //.importer.......///......///.T |
| 1440 | 6f 20 63 72 65 61 74 65 20 61 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 69 6e 20 | o.create.an.InputActionAsset.in. |
| 1460 | 63 6f 64 65 2c 20 75 73 65 20 74 68 65 20 3c 63 3e 53 69 6e 67 6c 65 74 6f 6e 3c 2f 63 3e 20 41 | code,.use.the.<c>Singleton</c>.A |
| 1480 | 50 49 20 61 6e 64 20 70 6f 70 75 6c 61 74 65 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 61 73 73 | PI.and.populate.the......///.ass |
| 14a0 | 65 74 20 77 69 74 68 20 74 68 65 20 6d 65 74 68 6f 64 73 20 66 6f 75 6e 64 20 69 6e 20 3c 73 65 | et.with.the.methods.found.in.<se |
| 14c0 | 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f | e.cref="InputActionSetupExtensio |
| 14e0 | 6e 73 22 2f 3e 2e 20 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 2c 0d 0a 20 20 20 20 2f 2f 2f 20 79 | ns"/>..Alternatively,......///.y |
| 1500 | 6f 75 20 63 61 6e 20 6c 6f 61 64 20 61 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 | ou.can.load.an.InputActionAsset. |
| 1520 | 64 69 72 65 63 74 6c 79 20 66 72 6f 6d 20 61 20 73 74 72 69 6e 67 20 69 6e 20 4a 53 4f 4e 20 66 | directly.from.a.string.in.JSON.f |
| 1540 | 6f 72 6d 61 74 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 46 72 6f 6d 4a 73 6f 6e 22 | ormat.using.<see.cref="FromJson" |
| 1560 | 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d | />.......///......///.<example>. |
| 1580 | 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 43 72 65 61 | .....///.<code>......///.//.Crea |
| 15a0 | 74 65 20 61 6e 64 20 63 6f 6e 66 69 67 75 72 65 20 61 6e 20 61 73 73 65 74 20 69 6e 20 63 6f 64 | te.and.configure.an.asset.in.cod |
| 15c0 | 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 73 73 65 74 31 20 3d 20 53 63 72 69 70 74 61 | e.......///.var.asset1.=.Scripta |
| 15e0 | 62 6c 65 4f 62 6a 65 63 74 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 26 6c 74 3b 49 6e 70 75 | bleObject.CreateInstance<Inpu |
| 1600 | 74 41 63 74 69 6f 6e 41 73 73 65 74 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 76 61 72 | tActionAsset>();......///.var |
| 1620 | 20 61 63 74 69 6f 6e 4d 61 70 31 20 3d 20 61 73 73 65 74 31 2e 43 72 65 61 74 65 41 63 74 69 6f | .actionMap1.=.asset1.CreateActio |
| 1640 | 6e 4d 61 70 28 22 6d 61 70 31 22 29 3b 0d 0a 20 20 20 20 2f 2f 2f 20 61 63 74 69 6f 6e 31 4d 61 | nMap("map1");......///.action1Ma |
| 1660 | 70 2e 41 64 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 31 22 2c 20 62 69 6e 64 69 6e 67 3a 20 | p.AddAction("action1",.binding:. |
| 1680 | 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 73 70 61 63 65 22 29 3b 0d 0a 20 20 20 20 | "<Keyboard>/space");...... |
| 16a0 | 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d | ///.</code>......///.</example>. |
| 16c0 | 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 45 61 63 68 20 61 73 73 65 74 20 63 61 6e | .....///......///.Each.asset.can |
| 16e0 | 20 63 6f 6e 74 61 69 6e 20 61 72 62 69 74 72 61 72 79 20 6d 61 6e 79 20 61 63 74 69 6f 6e 20 6d | .contain.arbitrary.many.action.m |
| 1700 | 61 70 73 20 74 68 61 74 20 63 61 6e 20 62 65 20 65 6e 61 62 6c 65 64 20 61 6e 64 20 64 69 73 61 | aps.that.can.be.enabled.and.disa |
| 1720 | 62 6c 65 64 20 69 6e 64 69 76 69 64 75 61 6c 6c 79 0d 0a 20 20 20 20 2f 2f 2f 20 28 73 65 65 20 | bled.individually......///.(see. |
| 1740 | 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 | <see.cref="InputActionMap.Enable |
| 1760 | 22 2f 3e 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 | "/>.and.<see.cref="InputActionMa |
| 1780 | 70 2e 44 69 73 61 62 6c 65 22 2f 3e 29 20 6f 72 20 69 6e 20 62 75 6c 6b 0d 0a 20 20 20 20 2f 2f | p.Disable"/>).or.in.bulk......// |
| 17a0 | 2f 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 20 61 6e 64 20 | /.(see.<see.cref="Enable"/>.and. |
| 17c0 | 3c 73 65 65 20 63 72 65 66 3d 22 44 69 73 61 62 6c 65 22 2f 3e 29 2e 20 54 68 65 20 6e 61 6d 65 | <see.cref="Disable"/>)..The.name |
| 17e0 | 20 6f 66 20 65 61 63 68 20 61 63 74 69 6f 6e 20 6d 61 70 20 6d 75 73 74 20 62 65 20 75 6e 69 71 | .of.each.action.map.must.be.uniq |
| 1800 | 75 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 6c 69 73 74 20 6f 66 20 61 63 74 69 6f 6e 20 | ue.......///.The.list.of.action. |
| 1820 | 6d 61 70 73 20 63 61 6e 20 62 65 20 71 75 65 72 69 65 64 20 66 72 6f 6d 20 3c 73 65 65 20 63 72 | maps.can.be.queried.from.<see.cr |
| 1840 | 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 73 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 | ef="actionMaps"/>.......///..... |
| 1860 | 20 2f 2f 2f 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 20 63 61 6e 20 6f 6e 6c 79 20 | .///.InputActionAssets.can.only. |
| 1880 | 64 65 66 69 6e 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 | define.<see.cref="InputControlSc |
| 18a0 | 68 65 6d 65 22 2f 3e 73 2e 20 54 68 65 79 20 63 61 6e 20 62 65 20 61 64 64 65 64 20 74 6f 0d 0a | heme"/>s..They.can.be.added.to.. |
| 18c0 | 20 20 20 20 2f 2f 2f 20 61 6e 20 61 73 73 65 74 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d | ....///.an.asset.with.<see.cref= |
| 18e0 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e 73 2e 41 64 64 43 | "InputActionSetupExtensions.AddC |
| 1900 | 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2c 73 74 | ontrolScheme(InputActionAsset,st |
| 1920 | 72 69 6e 67 29 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 61 6e 64 20 63 61 6e 20 62 65 20 71 75 65 | ring)"/>......///.and.can.be.que |
| 1940 | 72 69 65 64 20 66 72 6f 6d 20 3c 73 65 65 20 63 72 65 66 3d 22 63 6f 6e 74 72 6f 6c 53 63 68 65 | ried.from.<see.cref="controlSche |
| 1960 | 6d 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 42 65 20 61 77 61 | mes"/>.......///......///.Be.awa |
| 1980 | 72 65 20 74 68 61 74 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 20 61 73 73 65 74 73 20 64 6f 20 6e | re.that.input.action.assets.do.n |
| 19a0 | 6f 74 20 73 65 70 61 72 61 74 65 20 62 65 74 77 65 65 6e 20 73 74 61 74 69 63 20 28 63 6f 6e 66 | ot.separate.between.static.(conf |
| 19c0 | 69 67 75 72 61 74 69 6f 6e 29 20 64 61 74 61 20 61 6e 64 20 64 79 6e 61 6d 69 63 0d 0a 20 20 20 | iguration).data.and.dynamic..... |
| 19e0 | 20 2f 2f 2f 20 28 69 6e 73 74 61 6e 63 65 29 20 64 61 74 61 2e 20 46 6f 72 20 61 75 64 69 6f 2c | .///.(instance).data..For.audio, |
| 1a00 | 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 3c 63 3e 41 75 64 69 6f 43 6c 69 70 3c 2f 63 3e 20 72 | .for.example,.<c>AudioClip</c>.r |
| 1a20 | 65 70 72 65 73 65 6e 74 73 20 74 68 65 20 73 74 61 74 69 63 2c 0d 0a 20 20 20 20 2f 2f 2f 20 73 | epresents.the.static,......///.s |
| 1a40 | 68 61 72 65 64 20 64 61 74 61 20 70 6f 72 74 69 6f 6e 20 6f 66 20 61 75 64 69 6f 20 70 6c 61 79 | hared.data.portion.of.audio.play |
| 1a60 | 62 61 63 6b 20 77 68 65 72 65 61 73 20 3c 63 3e 41 75 64 69 6f 53 6f 75 72 63 65 22 3c 2f 63 3e | back.whereas.<c>AudioSource"</c> |
| 1a80 | 20 72 65 70 72 65 73 65 6e 74 73 20 74 68 65 0d 0a 20 20 20 20 2f 2f 2f 20 64 79 6e 61 6d 69 63 | .represents.the......///.dynamic |
| 1aa0 | 2c 20 70 65 72 2d 69 6e 73 74 61 6e 63 65 20 61 75 64 69 6f 20 70 6c 61 79 62 61 63 6b 20 70 6f | ,.per-instance.audio.playback.po |
| 1ac0 | 72 74 69 6f 6e 20 28 72 65 66 65 72 65 6e 63 69 6e 67 20 74 68 65 20 63 6c 69 70 20 74 68 72 6f | rtion.(referencing.the.clip.thro |
| 1ae0 | 75 67 68 20 3c 63 3e 41 75 64 69 6f 53 6f 75 72 63 65 2e 63 6c 69 70 3c 2f 63 3e 29 2e 0d 0a 20 | ugh.<c>AudioSource.clip</c>).... |
| 1b00 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 46 6f 72 20 69 6e 70 75 74 2c 20 73 75 63 68 20 | ...///......///.For.input,.such. |
| 1b20 | 61 20 73 70 6c 69 74 20 69 73 20 6c 65 73 73 20 62 65 6e 65 66 69 63 69 61 6c 20 61 73 20 74 68 | a.split.is.less.beneficial.as.th |
| 1b40 | 65 20 73 61 6d 65 20 69 6e 70 75 74 20 69 73 20 67 65 6e 65 72 61 6c 6c 79 20 6e 6f 74 20 65 78 | e.same.input.is.generally.not.ex |
| 1b60 | 65 72 63 69 73 65 64 0d 0a 20 20 20 20 2f 2f 2f 20 6d 75 6c 74 69 70 6c 65 20 74 69 6d 65 73 20 | ercised......///.multiple.times. |
| 1b80 | 69 6e 20 70 61 72 61 6c 6c 65 6c 2e 20 4b 65 65 70 69 6e 67 20 62 6f 74 68 20 73 74 61 74 69 63 | in.parallel..Keeping.both.static |
| 1ba0 | 20 61 6e 64 20 64 79 6e 61 6d 69 63 20 64 61 74 61 20 74 6f 67 65 74 68 65 72 20 73 69 6d 70 6c | .and.dynamic.data.together.simpl |
| 1bc0 | 69 66 69 65 73 0d 0a 20 20 20 20 2f 2f 2f 20 75 73 69 6e 67 20 74 68 65 20 73 79 73 74 65 6d 2e | ifies......///.using.the.system. |
| 1be0 | 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 48 6f 77 65 76 65 72 2c 20 74 68 65 72 | ......///......///.However,.ther |
| 1c00 | 65 20 61 72 65 20 73 63 65 6e 61 72 69 6f 73 20 77 68 65 72 65 20 79 6f 75 20 69 6e 64 65 65 64 | e.are.scenarios.where.you.indeed |
| 1c20 | 20 77 61 6e 74 20 74 6f 20 74 61 6b 65 20 74 68 65 20 73 61 6d 65 20 69 6e 70 75 74 20 61 63 74 | .want.to.take.the.same.input.act |
| 1c40 | 69 6f 6e 20 61 6e 64 0d 0a 20 20 20 20 2f 2f 2f 20 65 78 65 72 63 69 73 65 20 69 74 20 6d 75 6c | ion.and......///.exercise.it.mul |
| 1c60 | 74 69 70 6c 65 20 74 69 6d 65 73 20 69 6e 20 70 61 72 61 6c 6c 65 6c 2e 20 41 20 70 72 6f 6d 69 | tiple.times.in.parallel..A.promi |
| 1c80 | 6e 65 6e 74 20 65 78 61 6d 70 6c 65 20 6f 66 20 73 75 63 68 20 61 20 75 73 65 20 63 61 73 65 20 | nent.example.of.such.a.use.case. |
| 1ca0 | 69 73 0d 0a 20 20 20 20 2f 2f 2f 20 6c 6f 63 61 6c 20 6d 75 6c 74 69 70 6c 61 79 65 72 20 77 68 | is......///.local.multiplayer.wh |
| 1cc0 | 65 72 65 20 65 61 63 68 20 70 6c 61 79 65 72 20 67 65 74 73 20 74 68 65 20 73 61 6d 65 20 73 65 | ere.each.player.gets.the.same.se |
| 1ce0 | 74 20 6f 66 20 61 63 74 69 6f 6e 73 20 62 75 74 20 69 73 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 0d | t.of.actions.but.is.controlling. |
| 1d00 | 0a 20 20 20 20 2f 2f 2f 20 74 68 65 6d 20 77 69 74 68 20 61 20 64 69 66 66 65 72 65 6e 74 20 64 | .....///.them.with.a.different.d |
| 1d20 | 65 76 69 63 65 20 28 6f 72 20 64 65 76 69 63 65 73 29 20 65 61 63 68 2e 20 54 68 69 73 20 69 73 | evice.(or.devices).each..This.is |
| 1d40 | 20 65 61 73 69 6c 79 20 61 63 68 69 65 76 65 64 20 62 79 20 73 69 6d 70 6c 79 0d 0a 20 20 20 20 | .easily.achieved.by.simply...... |
| 1d60 | 2f 2f 2f 20 75 73 69 6e 67 20 3c 63 3e 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 2e | ///.using.<c>UnityEngine.Object. |
| 1d80 | 49 6e 73 74 61 6e 74 69 61 74 65 3c 2f 63 3e 20 74 6f 20 69 6e 73 74 61 6e 74 69 61 74 65 20 74 | Instantiate</c>.to.instantiate.t |
| 1da0 | 68 65 20 69 6e 70 75 74 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 20 6d | he.input.action......///.asset.m |
| 1dc0 | 75 6c 74 69 70 6c 65 20 74 69 6d 65 73 2e 20 3c 73 65 65 20 63 72 65 66 3d 22 50 6c 61 79 65 72 | ultiple.times..<see.cref="Player |
| 1de0 | 49 6e 70 75 74 22 2f 3e 20 77 69 6c 6c 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 6f 20 73 | Input"/>.will.automatically.do.s |
| 1e00 | 6f 20 69 6e 20 69 74 73 0d 0a 20 20 20 20 2f 2f 2f 20 69 6e 74 65 72 6e 61 6c 73 2e 0d 0a 20 20 | o.in.its......///.internals..... |
| 1e20 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 61 6c 73 6f 20 74 68 61 74 20 61 6c | ..///......///.Note.also.that.al |
| 1e40 | 6c 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 69 6e 20 61 6e 20 61 73 73 65 74 20 73 68 61 72 65 20 | l.action.maps.in.an.asset.share. |
| 1e60 | 62 69 6e 64 69 6e 67 20 73 74 61 74 65 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 69 | binding.state..This.means.that.i |
| 1e80 | 66 0d 0a 20 20 20 20 2f 2f 2f 20 6f 6e 65 20 6d 61 70 20 69 6e 20 61 6e 20 61 73 73 65 74 20 68 | f......///.one.map.in.an.asset.h |
| 1ea0 | 61 73 20 74 6f 20 72 65 73 6f 6c 76 65 20 69 74 73 20 62 69 6e 64 69 6e 67 73 2c 20 61 6c 6c 20 | as.to.resolve.its.bindings,.all. |
| 1ec0 | 6d 61 70 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 68 61 76 65 20 74 6f 2e 0d 0a 20 20 20 20 | maps.in.the.asset.have.to....... |
| 1ee0 | 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 | ///.</remarks>......public.class |
| 1f00 | 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 3a 20 53 63 72 69 70 74 61 62 6c 65 4f 62 | .InputActionAsset.:.ScriptableOb |
| 1f20 | 6a 65 63 74 2c 20 49 49 6e 70 75 74 41 63 74 69 6f 6e 43 6f 6c 6c 65 63 74 69 6f 6e 0d 0a 20 20 | ject,.IInputActionCollection.... |
| 1f40 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 | ..{..........///.<summary>...... |
| 1f60 | 20 20 20 20 2f 2f 2f 20 46 69 6c 65 20 65 78 74 65 6e 73 69 6f 6e 20 28 77 69 74 68 6f 75 74 20 | ....///.File.extension.(without. |
| 1f80 | 74 68 65 20 64 6f 74 29 20 66 6f 72 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 20 69 | the.dot).for.InputActionAssets.i |
| 1fa0 | 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 | n.JSON.format...........///.</su |
| 1fc0 | 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 46 69 6c 65 20 | mmary>..........///.<value>File. |
| 1fe0 | 65 78 74 65 6e 73 69 6f 6e 20 66 6f 72 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 73 | extension.for.InputActionAsset.s |
| 2000 | 6f 75 72 63 65 20 66 69 6c 65 73 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | ource.files.</value>..........// |
| 2020 | 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 69 6c 65 73 20 77 | /.<remarks>..........///.Files.w |
| 2040 | 69 74 68 20 74 68 69 73 20 65 78 74 65 6e 73 69 6f 6e 20 77 69 6c 6c 20 61 75 74 6f 6d 61 74 69 | ith.this.extension.will.automati |
| 2060 | 63 61 6c 6c 79 20 62 65 20 69 6d 70 6f 72 74 65 64 20 62 79 20 55 6e 69 74 79 20 61 73 0d 0a 20 | cally.be.imported.by.Unity.as... |
| 2080 | 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 73 2e 0d 0a 20 | .......///.InputActionAssets.... |
| 20a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 | .......///.</remarks>..........p |
| 20c0 | 75 62 6c 69 63 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 45 78 74 65 6e 73 69 6f 6e 20 3d 20 22 | ublic.const.string.Extension.=." |
| 20e0 | 69 6e 70 75 74 61 63 74 69 6f 6e 73 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 | inputactions";............///.<s |
| 2100 | 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 72 75 65 20 69 66 20 61 6e 79 | ummary>..........///.True.if.any |
| 2120 | 20 61 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 69 73 20 63 75 72 72 65 6e 74 6c | .action.in.the.asset.is.currentl |
| 2140 | 79 20 65 6e 61 62 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 | y.enabled...........///.</summar |
| 2160 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 | y>..........///.<seealso.cref="I |
| 2180 | 6e 70 75 74 41 63 74 69 6f 6e 2e 65 6e 61 62 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f | nputAction.enabled"/>........../ |
| 21a0 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 | //.<seealso.cref="InputActionMap |
| 21c0 | 2e 65 6e 61 62 6c 65 64 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 | .enabled"/>..........///.<seeals |
| 21e0 | 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 45 6e 61 62 6c 65 22 2f 3e 0d 0a 20 | o.cref="InputAction.Enable"/>... |
| 2200 | 20 20 20 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 |
| 2220 | 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ctionMap.Enable"/>..........///. |
| 2240 | 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 45 6e 61 62 6c 65 22 2f 3e 0d 0a 20 20 20 20 20 20 | <seealso.cref="Enable"/>........ |
| 2260 | 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 65 6e 61 62 6c 65 64 0d 0a 20 20 20 20 20 20 20 20 7b | ..public.bool.enabled..........{ |
| 2280 | 0d 0a 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 | ..............get..............{ |
| 22a0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 | ..................foreach.(var.a |
| 22c0 | 63 74 69 6f 6e 4d 61 70 20 69 6e 20 61 63 74 69 6f 6e 4d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 | ctionMap.in.actionMaps)......... |
| 22e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 6f 6e 4d 61 70 2e 65 6e 61 62 6c | .............if.(actionMap.enabl |
| 2300 | 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | ed)..........................ret |
| 2320 | 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 | urn.true;..................retur |
| 2340 | 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 | n.false;..............}......... |
| 2360 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 | .}............///.<summary>..... |
| 2380 | 20 20 20 20 20 2f 2f 2f 20 4c 69 73 74 20 6f 66 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 64 65 66 | .....///.List.of.action.maps.def |
| 23a0 | 69 6e 65 64 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ined.in.the.asset...........///. |
| 23c0 | 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 41 | </summary>..........///.<value>A |
| 23e0 | 63 74 69 6f 6e 20 6d 61 70 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 74 68 65 20 61 73 73 65 | ction.maps.contained.in.the.asse |
| 2400 | 74 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f | t.</value>..........///.<seealso |
| 2420 | 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e | .cref="InputActionSetupExtension |
| 2440 | 73 2e 41 64 64 41 63 74 69 6f 6e 4d 61 70 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2c | s.AddActionMap(InputActionAsset, |
| 2460 | 73 74 72 69 6e 67 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f | string)"/>..........///.<seealso |
| 2480 | 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f 6e | .cref="InputActionSetupExtension |
| 24a0 | 73 2e 52 65 6d 6f 76 65 41 63 74 69 6f 6e 4d 61 70 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 | s.RemoveActionMap(InputActionAss |
| 24c0 | 65 74 2c 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f | et,InputActionMap)"/>........../ |
| 24e0 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 46 69 6e 64 41 63 74 69 6f 6e 4d 61 70 28 | //.<seealso.cref="FindActionMap( |
| 2500 | 73 74 72 69 6e 67 2c 62 6f 6f 6c 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 | string,bool)"/>..........public. |
| 2520 | 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 3e 20 61 63 | ReadOnlyArray<InputActionMap>.ac |
| 2540 | 74 69 6f 6e 4d 61 70 73 20 3d 3e 20 6e 65 77 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e | tionMaps.=>.new.ReadOnlyArray<In |
| 2560 | 70 75 74 41 63 74 69 6f 6e 4d 61 70 3e 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 29 3b 0d 0a 0d 0a | putActionMap>(m_ActionMaps);.... |
| 2580 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<summary>........../ |
| 25a0 | 2f 2f 20 4c 69 73 74 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 73 20 64 65 66 69 6e | //.List.of.control.schemes.defin |
| 25c0 | 65 64 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | ed.in.the.asset...........///.</ |
| 25e0 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 43 6f 6e | summary>..........///.<value>Con |
| 2600 | 74 72 6f 6c 20 73 63 68 65 6d 65 73 20 64 65 66 69 6e 65 64 20 66 6f 72 20 74 68 65 20 61 73 73 | trol.schemes.defined.for.the.ass |
| 2620 | 65 74 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 | et.</value>..........///.<seeals |
| 2640 | 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 6e 73 69 6f | o.cref="InputActionSetupExtensio |
| 2660 | 6e 73 2e 41 64 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 28 49 6e 70 75 74 41 63 74 69 6f 6e 41 | ns.AddControlScheme(InputActionA |
| 2680 | 73 73 65 74 2c 73 74 72 69 6e 67 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 | sset,string)"/>..........///.<se |
| 26a0 | 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 53 65 74 75 70 45 78 74 65 | ealso.cref="InputActionSetupExte |
| 26c0 | 6e 73 69 6f 6e 73 2e 52 65 6d 6f 76 65 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 22 2f 3e 0d 0a 20 | nsions.RemoveControlScheme"/>... |
| 26e0 | 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 | .......public.ReadOnlyArray<Inpu |
| 2700 | 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3e 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 20 3d | tControlScheme>.controlSchemes.= |
| 2720 | 3e 20 6e 65 77 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 43 6f 6e 74 72 6f 6c | >.new.ReadOnlyArray<InputControl |
| 2740 | 53 63 68 65 6d 65 3e 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 29 3b 0d 0a 0d 0a 20 20 | Scheme>(m_ControlSchemes);...... |
| 2760 | 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>........../// |
| 2780 | 20 42 69 6e 64 69 6e 67 20 6d 61 73 6b 20 74 6f 20 61 70 70 6c 79 20 74 6f 20 61 6c 6c 20 61 63 | .Binding.mask.to.apply.to.all.ac |
| 27a0 | 74 69 6f 6e 20 6d 61 70 73 20 61 6e 64 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 61 73 73 | tion.maps.and.actions.in.the.ass |
| 27c0 | 65 74 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 20 20 20 | et...........///.</summary>..... |
| 27e0 | 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4f 70 74 69 6f 6e 61 6c 20 6d 61 73 6b 20 74 68 | .....///.<value>Optional.mask.th |
| 2800 | 61 74 20 64 65 74 65 72 6d 69 6e 65 73 20 77 68 69 63 68 20 62 69 6e 64 69 6e 67 73 20 69 6e 20 | at.determines.which.bindings.in. |
| 2820 | 74 68 65 20 61 73 73 65 74 20 74 6f 20 65 6e 61 62 6c 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 | the.asset.to.enable.</value>.... |
| 2840 | 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ......///.<remarks>........../// |
| 2860 | 20 42 69 6e 64 69 6e 67 20 6d 61 73 6b 73 20 63 61 6e 20 62 65 20 61 70 70 6c 69 65 64 20 61 74 | .Binding.masks.can.be.applied.at |
| 2880 | 20 74 68 72 65 65 20 64 69 66 66 65 72 65 6e 74 20 6c 65 76 65 6c 73 3a 20 66 6f 72 20 61 6e 20 | .three.different.levels:.for.an. |
| 28a0 | 65 6e 74 69 72 65 20 61 73 73 65 74 20 74 68 72 6f 75 67 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f | entire.asset.through..........// |
| 28c0 | 2f 20 74 68 69 73 20 70 72 6f 70 65 72 74 79 2c 20 66 6f 72 20 61 20 73 70 65 63 69 66 69 63 20 | /.this.property,.for.a.specific. |
| 28e0 | 6d 61 70 20 74 68 72 6f 75 67 68 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 | map.through.<see.cref="InputActi |
| 2900 | 6f 6e 4d 61 70 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f | onMap.bindingMask"/>,........../ |
| 2920 | 2f 2f 20 61 6e 64 20 66 6f 72 20 73 69 6e 67 6c 65 20 61 63 74 69 6f 6e 73 20 74 68 72 6f 75 67 | //.and.for.single.actions.throug |
| 2940 | 68 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 62 69 6e 64 69 6e 67 | h.<see.cref="InputAction.binding |
| 2960 | 4d 61 73 6b 22 2f 3e 2e 20 42 79 20 64 65 66 61 75 6c 74 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f | Mask"/>..By.default,..........// |
| 2980 | 2f 20 6e 6f 6e 65 20 6f 66 20 74 68 65 20 6d 61 73 6b 73 20 77 69 6c 6c 20 62 65 20 73 65 74 20 | /.none.of.the.masks.will.be.set. |
| 29a0 | 28 69 2e 65 2e 20 74 68 65 79 20 77 69 6c 6c 20 62 65 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 29 2e | (i.e..they.will.be.<c>null</c>). |
| 29c0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 | ..........///..........///.When. |
| 29e0 | 61 6e 20 61 63 74 69 6f 6e 20 69 73 20 65 6e 61 62 6c 65 64 2c 20 61 6c 6c 20 74 68 65 20 62 69 | an.action.is.enabled,.all.the.bi |
| 2a00 | 6e 64 69 6e 67 20 6d 61 73 6b 73 20 74 68 61 74 20 61 70 70 6c 79 20 74 6f 20 69 74 20 61 72 65 | nding.masks.that.apply.to.it.are |
| 2a20 | 20 74 61 6b 65 6e 20 69 6e 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 63 63 6f 75 6e 74 | .taken.into..........///.account |
| 2a40 | 2e 20 53 70 65 63 69 66 69 63 61 6c 6c 79 2c 20 74 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 | ..Specifically,.this.means.that. |
| 2a60 | 61 6e 79 20 67 69 76 65 6e 20 62 69 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 | any.given.binding.on.the.action. |
| 2a80 | 77 69 6c 6c 20 62 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 6e 61 62 6c 65 64 20 6f 6e 6c | will.be..........///.enabled.onl |
| 2aa0 | 79 20 69 66 20 69 74 20 6d 61 74 63 68 65 73 20 74 68 65 20 6d 61 73 6b 20 61 70 70 6c 69 65 64 | y.if.it.matches.the.mask.applied |
| 2ac0 | 20 74 6f 20 74 68 65 20 61 73 73 65 74 2c 20 74 68 65 20 6d 61 73 6b 20 61 70 70 6c 69 65 64 0d | .to.the.asset,.the.mask.applied. |
| 2ae0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 74 68 65 20 6d 61 70 20 74 68 61 74 20 63 6f 6e | .........///.to.the.map.that.con |
| 2b00 | 74 61 69 6e 73 20 74 68 65 20 61 63 74 69 6f 6e 2c 20 61 6e 64 20 74 68 65 20 6d 61 73 6b 20 61 | tains.the.action,.and.the.mask.a |
| 2b20 | 70 70 6c 69 65 64 20 74 6f 20 74 68 65 20 61 63 74 69 6f 6e 20 69 74 73 65 6c 66 2e 0d 0a 20 20 | pplied.to.the.action.itself..... |
| 2b40 | 20 20 20 20 20 20 2f 2f 2f 20 41 6c 6c 20 74 68 65 20 6d 61 73 6b 73 20 61 72 65 20 69 6e 64 69 | ......///.All.the.masks.are.indi |
| 2b60 | 76 69 64 75 61 6c 6c 79 20 6f 70 74 69 6f 6e 61 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | vidually.optional...........///. |
| 2b80 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 61 73 6b 73 20 61 72 65 20 6d 61 74 63 68 65 64 20 61 | .........///.Masks.are.matched.a |
| 2ba0 | 67 61 69 6e 73 74 20 62 69 6e 64 69 6e 67 73 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d | gainst.bindings.using.<see.cref= |
| 2bc0 | 22 49 6e 70 75 74 42 69 6e 64 69 6e 67 2e 4d 61 74 63 68 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 | "InputBinding.Matches"/>........ |
| 2be0 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 69 66 | ...///..........///.Note.that.if |
| 2c00 | 20 79 6f 75 20 6d 6f 64 69 66 79 20 74 68 65 20 6d 61 73 6b 73 20 61 70 70 6c 69 63 61 62 6c 65 | .you.modify.the.masks.applicable |
| 2c20 | 20 74 6f 20 61 6e 20 61 63 74 69 6f 6e 20 77 68 69 6c 65 20 69 74 20 69 73 0d 0a 20 20 20 20 20 | .to.an.action.while.it.is....... |
| 2c40 | 20 20 20 2f 2f 2f 20 65 6e 61 62 6c 65 64 2c 20 74 68 65 20 61 63 74 69 6f 6e 27 73 20 3c 73 65 | ...///.enabled,.the.action's.<se |
| 2c60 | 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 63 6f 6e 74 72 6f 6c 73 22 2f 3e 20 | e.cref="InputAction.controls"/>. |
| 2c80 | 77 69 6c 6c 20 67 65 74 20 75 70 64 61 74 65 64 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 74 6f 0d | will.get.updated.immediately.to. |
| 2ca0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 72 65 73 70 65 63 74 20 74 68 65 20 6d 61 73 6b 2e 20 54 | .........///.respect.the.mask..T |
| 2cc0 | 6f 20 61 76 6f 69 64 20 72 65 70 65 61 74 65 64 20 62 69 6e 64 69 6e 67 20 72 65 73 6f 6c 75 74 | o.avoid.repeated.binding.resolut |
| 2ce0 | 69 6f 6e 2c 20 69 74 20 69 73 20 6d 6f 73 74 20 65 66 66 69 63 69 65 6e 74 0d 0a 20 20 20 20 20 | ion,.it.is.most.efficient....... |
| 2d00 | 20 20 20 2f 2f 2f 20 74 6f 20 61 70 70 6c 79 20 62 69 6e 64 69 6e 67 20 6d 61 73 6b 73 20 62 65 | ...///.to.apply.binding.masks.be |
| 2d20 | 66 6f 72 65 20 65 6e 61 62 6c 69 6e 67 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 | fore.enabling.actions........... |
| 2d40 | 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 69 6e 64 69 6e 67 20 6d 61 73 6b 73 20 61 | ///..........///.Binding.masks.a |
| 2d60 | 72 65 20 6e 6f 6e 2d 64 65 73 74 72 75 63 74 69 76 65 2e 20 41 6c 6c 20 74 68 65 20 62 69 6e 64 | re.non-destructive..All.the.bind |
| 2d80 | 69 6e 67 73 20 6f 6e 20 74 68 65 20 61 63 74 69 6f 6e 20 61 72 65 20 6c 65 66 74 0d 0a 20 20 20 | ings.on.the.action.are.left..... |
| 2da0 | 20 20 20 20 20 2f 2f 2f 20 69 6e 20 70 6c 61 63 65 2e 20 53 65 74 74 69 6e 67 20 61 20 6d 61 73 | .....///.in.place..Setting.a.mas |
| 2dc0 | 6b 20 77 69 6c 6c 20 6e 6f 74 20 61 66 66 65 63 74 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 | k.will.not.affect.the.value.of.t |
| 2de0 | 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 62 69 6e 64 69 6e | he.<see.cref="InputAction.bindin |
| 2e00 | 67 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 | gs"/>..........///.and.<see.cref |
| 2e20 | 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 62 69 6e 64 69 6e 67 73 22 2f 3e 20 70 72 6f | ="InputActionMap.bindings"/>.pro |
| 2e40 | 70 65 72 74 69 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e | perties...........///.</remarks> |
| 2e60 | 0d 0a 20 20 20 20 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 | ..........///.<seealso.cref="Inp |
| 2e80 | 75 74 42 69 6e 64 69 6e 67 2e 4d 61 73 6b 42 79 47 72 6f 75 70 22 2f 3e 0d 0a 20 20 20 20 20 20 | utBinding.MaskByGroup"/>........ |
| 2ea0 | 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 63 74 69 6f 6e | ..///.<seealso.cref="InputAction |
| 2ec0 | 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 | .bindingMask"/>..........///.<se |
| 2ee0 | 65 61 6c 73 6f 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 62 69 6e 64 69 | ealso.cref="InputActionMap.bindi |
| 2f00 | 6e 67 4d 61 73 6b 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 42 | ngMask"/>..........public.InputB |
| 2f20 | 69 6e 64 69 6e 67 3f 20 62 69 6e 64 69 6e 67 4d 61 73 6b 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a | inding?.bindingMask..........{.. |
| 2f40 | 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 42 69 6e 64 69 6e 67 4d 61 73 6b | ............get.=>.m_BindingMask |
| 2f60 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ;..............set.............. |
| 2f80 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 42 69 6e 64 69 6e 67 | {..................if.(m_Binding |
| 2fa0 | 4d 61 73 6b 20 3d 3d 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Mask.==.value).................. |
| 2fc0 | 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d | ....return;....................m |
| 2fe0 | 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 20 3d 20 76 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | _BindingMask.=.value;........... |
| 3000 | 20 20 20 20 20 20 20 20 20 52 65 52 65 73 6f 6c 76 65 49 66 4e 65 63 65 73 73 61 72 79 28 29 3b | .........ReResolveIfNecessary(); |
| 3020 | 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 0d 0a 20 20 | ..............}..........}...... |
| 3040 | 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>........../// |
| 3060 | 20 53 65 74 20 6f 66 20 64 65 76 69 63 65 73 20 74 68 61 74 20 62 69 6e 64 69 6e 67 73 20 69 6e | .Set.of.devices.that.bindings.in |
| 3080 | 20 74 68 65 20 61 73 73 65 74 20 63 61 6e 20 62 69 6e 64 20 74 6f 2e 0d 0a 20 20 20 20 20 20 20 | .the.asset.can.bind.to.......... |
| 30a0 | 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 | .///.</summary>..........///.<va |
| 30c0 | 6c 75 65 3e 4f 70 74 69 6f 6e 61 6c 20 73 65 74 20 6f 66 20 64 65 76 69 63 65 73 20 74 6f 20 75 | lue>Optional.set.of.devices.to.u |
| 30e0 | 73 65 20 62 79 20 62 69 6e 64 69 6e 67 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 3c 2f 76 61 | se.by.bindings.in.the.asset.</va |
| 3100 | 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 | lue>..........///.<remarks>..... |
| 3120 | 20 20 20 20 20 2f 2f 2f 20 42 79 20 64 65 66 61 75 6c 74 20 28 77 69 74 68 20 74 68 69 73 20 70 | .....///.By.default.(with.this.p |
| 3140 | 72 6f 70 65 72 74 79 20 62 65 69 6e 67 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 29 2c 20 62 69 6e 64 | roperty.being.<c>null</c>),.bind |
| 3160 | 69 6e 67 73 20 77 69 6c 6c 20 62 69 6e 64 20 74 6f 20 61 6e 79 20 6f 66 20 74 68 65 0d 0a 20 20 | ings.will.bind.to.any.of.the.... |
| 3180 | 20 20 20 20 20 20 2f 2f 2f 20 63 6f 6e 74 72 6f 6c 73 20 61 76 61 69 6c 61 62 6c 65 20 74 68 72 | ......///.controls.available.thr |
| 31a0 | 6f 75 67 68 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 | ough.<see.cref="InputSystem.devi |
| 31c0 | 63 65 73 22 2f 3e 2c 20 69 2e 65 2e 20 63 6f 6e 74 72 6f 6c 73 20 66 72 6f 6d 20 61 6c 6c 0d 0a | ces"/>,.i.e..controls.from.all.. |
| 31e0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 65 76 69 63 65 73 20 69 6e 20 74 68 65 20 73 79 73 74 65 | ........///.devices.in.the.syste |
| 3200 | 6d 20 77 69 6c 6c 20 62 65 20 75 73 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 | m.will.be.used...........///.... |
| 3220 | 20 20 20 20 20 20 2f 2f 2f 20 42 79 20 73 65 74 74 69 6e 67 20 74 68 69 73 20 70 72 6f 70 65 72 | ......///.By.setting.this.proper |
| 3240 | 74 79 2c 20 62 69 6e 64 69 6e 67 20 72 65 73 6f 6c 75 74 69 6f 6e 20 63 61 6e 20 69 6e 73 74 65 | ty,.binding.resolution.can.inste |
| 3260 | 61 64 20 62 65 20 72 65 73 74 72 69 63 74 65 64 20 74 6f 20 6a 75 73 74 20 73 70 65 63 69 66 69 | ad.be.restricted.to.just.specifi |
| 3280 | 63 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 65 76 69 63 65 73 2e 20 54 68 69 73 20 72 65 73 | c..........///.devices..This.res |
| 32a0 | 74 72 69 63 74 69 6f 6e 20 63 61 6e 20 65 69 74 68 65 72 20 62 65 20 61 70 70 6c 69 65 64 20 74 | triction.can.either.be.applied.t |
| 32c0 | 6f 20 61 6e 20 65 6e 74 69 72 65 20 61 73 73 65 74 20 75 73 69 6e 67 20 74 68 69 73 20 70 72 6f | o.an.entire.asset.using.this.pro |
| 32e0 | 70 65 72 74 79 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 74 6f 20 73 70 65 63 69 66 69 | perty..........///.or.to.specifi |
| 3300 | 63 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 62 79 20 75 73 69 6e 67 20 3c 73 65 65 20 63 72 65 66 | c.action.maps.by.using.<see.cref |
| 3320 | 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 64 65 76 69 63 65 73 22 2f 3e 2e 20 4e 6f 74 | ="InputActionMap.devices"/>..Not |
| 3340 | 65 20 74 68 61 74 20 69 66 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 62 6f 74 68 20 74 68 69 73 | e.that.if..........///.both.this |
| 3360 | 20 70 72 6f 70 65 72 74 79 20 61 6e 64 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 | .property.and.<see.cref="InputAc |
| 3380 | 74 69 6f 6e 4d 61 70 2e 64 65 76 69 63 65 73 22 2f 3e 20 69 73 20 73 65 74 20 66 6f 72 20 61 20 | tionMap.devices"/>.is.set.for.a. |
| 33a0 | 73 70 65 63 69 66 69 63 20 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6d 61 70 | specific.action..........///.map |
| 33c0 | 2c 20 74 68 65 20 6c 69 73 74 20 6f 66 20 64 65 76 69 63 65 73 20 6f 6e 20 74 68 65 20 61 63 74 | ,.the.list.of.devices.on.the.act |
| 33e0 | 69 6f 6e 20 6d 61 70 20 77 69 6c 6c 20 74 61 6b 65 20 70 72 65 63 65 64 65 6e 63 65 20 61 6e 64 | ion.map.will.take.precedence.and |
| 3400 | 20 74 68 65 20 6c 69 73 74 20 6f 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 | .the.list.on.the..........///.as |
| 3420 | 73 65 74 20 77 69 6c 6c 20 62 65 20 69 67 6e 6f 72 65 64 20 66 6f 72 20 62 69 6e 64 69 6e 67 73 | set.will.be.ignored.for.bindings |
| 3440 | 20 69 6e 20 74 68 61 74 20 61 63 74 69 6f 6e 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .in.that.action.map...........// |
| 3460 | 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 | /..........///.<example>........ |
| 3480 | 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 43 72 65 | ..///.<code>..........///.//.Cre |
| 34a0 | 61 74 65 20 61 6e 20 61 73 73 65 74 20 77 69 74 68 20 61 20 73 69 6e 67 6c 65 20 61 63 74 69 6f | ate.an.asset.with.a.single.actio |
| 34c0 | 6e 20 6d 61 70 20 61 6e 64 20 61 20 73 69 6e 67 6c 65 20 61 63 74 69 6f 6e 20 77 69 74 68 20 61 | n.map.and.a.single.action.with.a |
| 34e0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 67 61 6d 65 70 61 64 20 62 69 6e 64 69 6e 67 | ..........///.//.gamepad.binding |
| 3500 | 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 73 73 65 74 20 3d 20 53 63 72 69 70 | ...........///.var.asset.=.Scrip |
| 3520 | 74 61 62 6c 65 4f 62 6a 65 63 74 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 26 6c 74 3b 49 6e | tableObject.CreateInstance<In |
| 3540 | 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f | putActionAsset>();........../ |
| 3560 | 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 4d 61 70 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 | //.var.actionMap.=.new.InputActi |
| 3580 | 6f 6e 4d 61 70 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 66 69 72 65 41 63 | onMap();..........///.var.fireAc |
| 35a0 | 74 69 6f 6e 20 3d 20 61 63 74 69 6f 6e 4d 61 70 2e 41 64 64 41 63 74 69 6f 6e 28 22 46 69 72 65 | tion.=.actionMap.AddAction("Fire |
| 35c0 | 22 2c 20 62 69 6e 64 69 6e 67 3a 20 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 62 75 74 | ",.binding:."<Gamepad>/but |
| 35e0 | 74 6f 6e 53 6f 75 74 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 41 | tonSouth");..........///.asset.A |
| 3600 | 64 64 41 63 74 69 6f 6e 4d 61 70 28 61 63 74 69 6f 6e 4d 61 70 29 3b 0d 0a 20 20 20 20 20 20 20 | ddActionMap(actionMap);......... |
| 3620 | 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 4c 65 74 27 73 20 61 73 73 75 6d | .///..........///.//.Let's.assum |
| 3640 | 65 20 77 65 20 68 61 76 65 20 74 77 6f 20 67 61 6d 65 70 61 64 73 20 63 6f 6e 6e 65 63 74 65 64 | e.we.have.two.gamepads.connected |
| 3660 | 2e 20 49 66 20 77 65 20 65 6e 61 62 6c 65 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ..If.we.enable.the..........///. |
| 3680 | 2f 2f 20 61 63 74 69 6f 6e 20 6d 61 70 20 6e 6f 77 2c 20 74 68 65 20 27 46 69 72 65 27 20 61 63 | //.action.map.now,.the.'Fire'.ac |
| 36a0 | 74 69 6f 6e 20 77 69 6c 6c 20 62 69 6e 64 20 74 6f 20 62 6f 74 68 2e 0d 0a 20 20 20 20 20 20 20 | tion.will.bind.to.both.......... |
| 36c0 | 20 2f 2f 2f 20 61 63 74 69 6f 6e 4d 61 70 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 | .///.actionMap.Enable();........ |
| 36e0 | 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 54 68 69 73 20 77 69 6c 6c 20 | ..///..........///.//.This.will. |
| 3700 | 70 72 69 6e 74 20 74 77 6f 20 63 6f 6e 74 72 6f 6c 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | print.two.controls.........../// |
| 3720 | 20 44 65 62 75 67 2e 4c 6f 67 28 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 5c 6e 22 2c 20 66 69 72 | .Debug.Log(string.Join("\n",.fir |
| 3740 | 65 41 63 74 69 6f 6e 2e 63 6f 6e 74 72 6f 6c 73 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | eAction.controls));........../// |
| 3760 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 54 6f 20 72 65 73 74 72 69 63 74 20 74 68 65 | ..........///.//.To.restrict.the |
| 3780 | 20 73 65 74 75 70 20 74 6f 20 6a 75 73 74 20 74 68 65 20 66 69 72 73 74 20 67 61 6d 65 70 61 64 | .setup.to.just.the.first.gamepad |
| 37a0 | 2c 20 77 65 20 63 61 6e 20 61 73 73 69 67 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 | ,.we.can.assign..........///.//. |
| 37c0 | 74 6f 20 74 68 65 20 27 64 65 76 69 63 65 73 27 20 70 72 6f 70 65 72 74 79 20 28 69 6e 20 74 68 | to.the.'devices'.property.(in.th |
| 37e0 | 69 73 20 63 61 73 65 2c 20 77 65 20 63 6f 75 6c 64 20 64 6f 20 73 6f 20 6f 6e 20 65 69 74 68 65 | is.case,.we.could.do.so.on.eithe |
| 3800 | 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 | r..........///.//.the.action.map |
| 3820 | 20 6f 72 20 6f 6e 20 74 68 65 20 61 73 73 65 74 3b 20 77 65 20 63 68 6f 6f 73 65 20 74 68 65 20 | .or.on.the.asset;.we.choose.the. |
| 3840 | 6c 61 74 74 65 72 20 68 65 72 65 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 | latter.here)...........///.asset |
| 3860 | 2e 64 65 76 69 63 65 73 20 3d 20 6e 65 77 20 49 6e 70 75 74 44 65 76 69 63 65 5b 5d 20 7b 20 47 | .devices.=.new.InputDevice[].{.G |
| 3880 | 61 6d 65 70 61 64 2e 61 6c 6c 5b 30 5d 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 | amepad.all[0].};..........///... |
| 38a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 4e 6f 77 20 74 68 69 73 20 77 69 6c 6c 20 70 72 69 6e | .......///.//.Now.this.will.prin |
| 38c0 | 74 20 6f 6e 6c 79 20 6f 6e 65 20 63 6f 6e 74 72 6f 6c 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | t.only.one.control.........../// |
| 38e0 | 20 44 65 62 75 67 2e 4c 6f 67 28 73 74 72 69 6e 67 2e 4a 6f 69 6e 28 22 5c 6e 22 2c 20 66 69 72 | .Debug.Log(string.Join("\n",.fir |
| 3900 | 65 41 63 74 69 6f 6e 2e 63 6f 6e 74 72 6f 6c 73 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | eAction.controls));........../// |
| 3920 | 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e | .</code>..........///.</example> |
| 3940 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 | ..........///.</remarks>........ |
| 3960 | 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 63 74 69 6f 6e | ..///.<seealso.cref="InputAction |
| 3980 | 4d 61 70 2e 64 65 76 69 63 65 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 | Map.devices"/>..........public.R |
| 39a0 | 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 44 65 76 69 63 65 3e 3f 20 64 65 76 69 63 | eadOnlyArray<InputDevice>?.devic |
| 39c0 | 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 67 65 74 0d 0a | es..........{..............get.. |
| 39e0 | 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 69 | ............{..................i |
| 3a00 | 66 20 28 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 | f.(m_DevicesCount.<.0).......... |
| 3a20 | 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 | ............return.null;........ |
| 3a40 | 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 52 65 61 64 4f 6e 6c 79 41 72 72 | ..........return.new.ReadOnlyArr |
| 3a60 | 61 79 3c 49 6e 70 75 74 44 65 76 69 63 65 3e 28 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 2c 20 | ay<InputDevice>(m_DevicesArray,. |
| 3a80 | 30 2c 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | 0,.m_DevicesCount);............. |
| 3aa0 | 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .}..............set............. |
| 3ac0 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 6c 75 65 20 3d 3d | .{..................if.(value.== |
| 3ae0 | 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | .null)..................{....... |
| 3b00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e | ...............if.(m_DevicesCoun |
| 3b20 | 74 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | t.<.0).......................... |
| 3b40 | 72 65 74 75 72 6e 3b 20 2f 2f 20 4e 6f 20 63 68 61 6e 67 65 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 | return;.//.No.change............ |
| 3b60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 20 | .............if.(m_DevicesArray. |
| 3b80 | 21 3d 20 6e 75 6c 6c 20 26 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3e 20 30 29 0d 0a 20 | !=.null.&.m_DevicesCount.>.0)... |
| 3ba0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 2e 43 6c 65 | .......................Array.Cle |
| 3bc0 | 61 72 28 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 2c 20 30 2c 20 6d 5f 44 65 76 69 63 65 73 43 | ar(m_DevicesArray,.0,.m_DevicesC |
| 3be0 | 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 | ount);......................m_De |
| 3c00 | 76 69 63 65 73 43 6f 75 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | vicesCount.=.-1;................ |
| 3c20 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 | ..}..................else....... |
| 3c40 | 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...........{.................... |
| 3c60 | 20 20 2f 2f 20 53 65 65 20 69 66 20 74 68 65 20 61 72 72 61 79 20 61 63 74 75 61 6c 6c 79 20 63 | ..//.See.if.the.array.actually.c |
| 3c80 | 68 61 6e 67 65 73 20 63 6f 6e 74 65 6e 74 2e 20 41 76 6f 69 64 73 20 72 65 2d 72 65 73 6f 6c 76 | hanges.content..Avoids.re-resolv |
| 3ca0 | 69 6e 67 20 77 68 65 6e 20 74 68 65 72 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ing.when.there.................. |
| 3cc0 | 20 20 20 20 2f 2f 20 69 73 20 6e 6f 20 6e 65 65 64 20 74 6f 2e 0d 0a 20 20 20 20 20 20 20 20 20 | ....//.is.no.need.to............ |
| 3ce0 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3d 3d | ...........if.(m_DevicesCount.== |
| 3d00 | 20 76 61 6c 75 65 2e 56 61 6c 75 65 2e 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .value.Value.Count)............. |
| 3d20 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 3d40 | 20 20 20 20 76 61 72 20 6e 6f 43 68 61 6e 67 65 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 | ....var.noChange.=.true;........ |
| 3d60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 | ..................for.(var.i.=.0 |
| 3d80 | 3b 20 69 20 3c 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 | ;.i.<.m_DevicesCount;.++i)...... |
| 3da0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | ....................{........... |
| 3dc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 52 65 66 65 72 65 6e 63 | ...................if.(!Referenc |
| 3de0 | 65 45 71 75 61 6c 73 28 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 5b 69 5d 2c 20 76 61 6c 75 65 | eEquals(m_DevicesArray[i],.value |
| 3e00 | 2e 56 61 6c 75 65 5b 69 5d 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Value[i]))..................... |
| 3e20 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 3e40 | 20 20 20 20 20 20 20 20 20 20 20 20 6e 6f 43 68 61 6e 67 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 | ............noChange.=.false;... |
| 3e60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 | ...............................b |
| 3e80 | 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | reak;........................... |
| 3ea0 | 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | ...}..........................}. |
| 3ec0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 6f 43 | .........................if.(noC |
| 3ee0 | 68 61 6e 67 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | hange).......................... |
| 3f00 | 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....return;..................... |
| 3f20 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f | .}........................if.(m_ |
| 3f40 | 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | DevicesCount.>.0)............... |
| 3f60 | 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 2e 43 6c 65 61 72 28 | ...........m_DevicesArray.Clear( |
| 3f80 | 72 65 66 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ref.m_DevicesCount);............ |
| 3fa0 | 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 20 | ..........m_DevicesCount.=.0;... |
| 3fc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e | ...................ArrayHelpers. |
| 3fe0 | 41 70 70 65 6e 64 4c 69 73 74 57 69 74 68 43 61 70 61 63 69 74 79 28 72 65 66 20 6d 5f 44 65 76 | AppendListWithCapacity(ref.m_Dev |
| 4000 | 69 63 65 73 41 72 72 61 79 2c 20 72 65 66 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 2c 20 76 | icesArray,.ref.m_DevicesCount,.v |
| 4020 | 61 6c 75 65 2e 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | alue.Value);..................}. |
| 4040 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 52 65 73 6f 6c 76 65 49 66 4e 65 | ...................ReResolveIfNe |
| 4060 | 63 65 73 73 61 72 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 | cessary();..............}....... |
| 4080 | 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 | ...}............///.<summary>... |
| 40a0 | 20 20 20 20 20 20 20 2f 2f 2f 20 4c 6f 6f 6b 20 75 70 20 61 6e 20 61 63 74 69 6f 6e 20 62 79 20 | .......///.Look.up.an.action.by. |
| 40c0 | 6e 61 6d 65 20 6f 72 20 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 | name.or.ID...........///.</summa |
| 40e0 | 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 61 63 | ry>..........///.<param.name="ac |
| 4100 | 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 22 3e 4e 61 6d 65 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e | tionNameOrId">Name.of.the.action |
| 4120 | 20 61 73 20 65 69 74 68 65 72 20 61 20 22 6d 61 70 2f 61 63 74 69 6f 6e 22 20 63 6f 6d 62 69 6e | .as.either.a."map/action".combin |
| 4140 | 61 74 69 6f 6e 20 28 65 2e 67 2e 20 22 67 61 6d 65 70 6c 61 79 2f 66 69 72 65 22 29 20 6f 72 0d | ation.(e.g.."gameplay/fire").or. |
| 4160 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 20 73 69 6d 70 6c 65 20 6e 61 6d 65 2e 20 49 6e 20 74 | .........///.a.simple.name..In.t |
| 4180 | 68 65 20 66 6f 72 6d 65 72 20 63 61 73 65 2c 20 74 68 65 20 6e 61 6d 65 20 69 73 20 73 70 6c 69 | he.former.case,.the.name.is.spli |
| 41a0 | 74 20 61 74 20 74 68 65 20 27 2f 27 20 73 6c 61 73 68 20 61 6e 64 20 74 68 65 20 66 69 72 73 74 | t.at.the.'/'.slash.and.the.first |
| 41c0 | 20 70 61 72 74 20 69 73 20 75 73 65 64 20 74 6f 20 66 69 6e 64 0d 0a 20 20 20 20 20 20 20 20 2f | .part.is.used.to.find........../ |
| 41e0 | 2f 2f 20 61 20 6d 61 70 20 77 69 74 68 20 74 68 61 74 20 6e 61 6d 65 20 61 6e 64 20 74 68 65 20 | //.a.map.with.that.name.and.the. |
| 4200 | 73 65 63 6f 6e 64 20 70 61 72 74 20 69 73 20 75 73 65 64 20 74 6f 20 66 69 6e 64 20 61 6e 20 61 | second.part.is.used.to.find.an.a |
| 4220 | 63 74 69 6f 6e 20 77 69 74 68 20 74 68 61 74 20 6e 61 6d 65 20 69 6e 73 69 64 65 20 74 68 65 20 | ction.with.that.name.inside.the. |
| 4240 | 6d 61 70 2e 20 49 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6c 61 74 74 65 72 20 | map..In.the..........///.latter. |
| 4260 | 63 61 73 65 2c 20 61 6c 6c 20 6d 61 70 73 20 61 72 65 20 73 65 61 72 63 68 65 64 20 69 6e 20 6f | case,.all.maps.are.searched.in.o |
| 4280 | 72 64 65 72 20 61 6e 64 20 74 68 65 20 66 69 72 73 74 20 61 63 74 69 6f 6e 20 74 68 61 74 20 68 | rder.and.the.first.action.that.h |
| 42a0 | 61 73 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 69 6e 20 61 6e 79 20 6f 66 20 74 68 65 20 | as.the.given.name.in.any.of.the. |
| 42c0 | 6d 61 70 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 4e | maps..........///.is.returned..N |
| 42e0 | 6f 74 65 20 74 68 61 74 20 6e 61 6d 65 20 63 6f 6d 70 61 72 69 73 6f 6e 73 20 61 72 65 20 63 61 | ote.that.name.comparisons.are.ca |
| 4300 | 73 65 2d 69 6e 73 65 6e 73 69 74 69 76 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 | se-insensitive...........///.... |
| 4320 | 20 20 20 20 20 20 2f 2f 2f 20 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 2c 20 74 68 65 20 67 69 76 | ......///.Alternatively,.the.giv |
| 4340 | 65 6e 20 73 74 72 69 6e 67 20 63 61 6e 20 62 65 20 61 20 47 55 49 44 20 61 73 20 67 69 76 65 6e | en.string.can.be.a.GUID.as.given |
| 4360 | 20 62 79 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 2e 69 64 22 2f 3e | .by.<see.cref="InputAction.id"/> |
| 4380 | 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e | .</param>..........///.<returns> |
| 43a0 | 54 68 65 20 61 63 74 69 6f 6e 20 77 69 74 68 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e | The.action.with.the.correspondin |
| 43c0 | 67 20 6e 61 6d 65 20 6f 72 20 6e 75 6c 6c 20 69 66 20 6e 6f 20 6d 61 74 63 68 69 6e 67 20 61 63 | g.name.or.null.if.no.matching.ac |
| 43e0 | 74 69 6f 6e 20 63 6f 75 6c 64 20 62 65 20 66 6f 75 6e 64 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a | tion.could.be.found.</returns>.. |
| 4400 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<remarks>........../ |
| 4420 | 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 | //.This.method.is.equivalent.to. |
| 4440 | 3c 73 65 65 20 63 72 65 66 3d 22 46 69 6e 64 41 63 74 69 6f 6e 28 73 74 72 69 6e 67 29 22 2f 3e | <see.cref="FindAction(string)"/> |
| 4460 | 20 65 78 63 65 70 74 20 74 68 61 74 20 69 74 20 74 68 72 6f 77 73 0d 0a 20 20 20 20 20 20 20 20 | .except.that.it.throws.......... |
| 4480 | 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 4b 65 79 4e 6f 74 46 6f 75 6e 64 45 78 63 65 70 74 | ///.<see.cref="KeyNotFoundExcept |
| 44a0 | 69 6f 6e 22 2f 3e 20 69 66 20 6e 6f 20 61 63 74 69 6f 6e 20 77 69 74 68 20 74 68 65 20 67 69 76 | ion"/>.if.no.action.with.the.giv |
| 44c0 | 65 6e 20 6e 61 6d 65 20 6f 72 20 49 44 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 6f 75 6c 64 | en.name.or.ID..........///.could |
| 44e0 | 20 62 65 20 66 6f 75 6e 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b | .be.found...........///.</remark |
| 4500 | 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d | s>..........///.<exception.cref= |
| 4520 | 22 4b 65 79 4e 6f 74 46 6f 75 6e 64 45 78 63 65 70 74 69 6f 6e 22 3e 4e 6f 20 61 63 74 69 6f 6e | "KeyNotFoundException">No.action |
| 4540 | 20 77 61 73 20 66 6f 75 6e 64 20 6d 61 74 63 68 69 6e 67 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 | .was.found.matching.<paramref.na |
| 4560 | 6d 65 3d 22 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 22 2f 3e 2e 3c 2f 65 78 63 65 70 74 69 6f | me="actionNameOrId"/>.</exceptio |
| 4580 | 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d | n>..........///.<exception.cref= |
| 45a0 | 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 | "ArgumentNullException"><paramre |
| 45c0 | 66 20 6e 61 6d 65 3d 22 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 22 2f 3e 20 69 73 20 3c 63 3e | f.name="actionNameOrId"/>.is.<c> |
| 45e0 | 6e 75 6c 6c 3c 2f 63 3e 20 6f 72 20 65 6d 70 74 79 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a | null</c>.or.empty.</exception>.. |
| 4600 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 46 69 6e 64 41 | ........///.<seealso.cref="FindA |
| 4620 | 63 74 69 6f 6e 28 73 74 72 69 6e 67 29 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 | ction(string)"/>..........public |
| 4640 | 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 74 68 69 73 5b 73 74 72 69 6e 67 20 61 63 74 69 6f 6e 4e | .InputAction.this[string.actionN |
| 4660 | 61 6d 65 4f 72 49 64 5d 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ameOrId]..........{............. |
| 4680 | 20 67 65 74 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 | .get..............{............. |
| 46a0 | 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 46 69 6e 64 41 63 74 69 6f 6e 28 61 63 74 | .....var.action.=.FindAction(act |
| 46c0 | 69 6f 6e 4e 61 6d 65 4f 72 49 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | ionNameOrId);..................i |
| 46e0 | 66 20 28 61 63 74 69 6f 6e 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | f.(action.==.null).............. |
| 4700 | 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 4b 65 79 4e 6f 74 46 6f 75 6e 64 45 78 63 | ........throw.new.KeyNotFoundExc |
| 4720 | 65 70 74 69 6f 6e 28 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 61 63 74 69 6f 6e 20 27 7b 61 63 | eption($"Cannot.find.action.'{ac |
| 4740 | 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 7d 27 20 69 6e 20 27 7b 74 68 69 73 7d 27 22 29 3b 0d 0a 20 | tionNameOrId}'.in.'{this}'");... |
| 4760 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 63 74 69 6f 6e 3b 0d 0a 20 | ...............return.action;... |
| 4780 | 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 0d 0a 20 20 20 20 20 | ...........}..........}......... |
| 47a0 | 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 20 52 65 | ...///.<summary>..........///.Re |
| 47c0 | 74 75 72 6e 20 61 20 4a 53 4f 4e 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 | turn.a.JSON.representation.of.th |
| 47e0 | 65 20 61 73 73 65 74 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 | e.asset...........///.</summary> |
| 4800 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 73 74 72 69 6e 67 20 | ..........///.<returns>A.string. |
| 4820 | 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 20 74 68 61 74 20 72 65 70 72 65 73 65 6e 74 73 20 74 | in.JSON.format.that.represents.t |
| 4840 | 68 65 20 73 74 61 74 69 63 2f 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 64 61 74 61 20 70 72 65 | he.static/configuration.data.pre |
| 4860 | 73 65 6e 74 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 3c | sent..........///.in.the.asset.< |
| 4880 | 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e | /returns>..........///.<remarks> |
| 48a0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 77 69 6c 6c 20 6e 6f 74 20 73 61 76 65 | ..........///.This.will.not.save |
| 48c0 | 20 64 79 6e 61 6d 69 63 20 65 78 65 63 75 74 69 6f 6e 20 73 74 61 74 65 20 73 75 63 68 20 61 73 | .dynamic.execution.state.such.as |
| 48e0 | 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e 73 74 61 6c 6c 65 64 20 6f 6e 0d 0a 20 20 20 20 20 20 20 | .callbacks.installed.on......... |
| 4900 | 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 22 3e 61 63 74 | .///.<see.cref="InputAction">act |
| 4920 | 69 6f 6e 73 3c 2f 73 65 65 3e 20 6f 72 20 65 6e 61 62 6c 65 64 2f 64 69 73 61 62 6c 65 64 20 73 | ions</see>.or.enabled/disabled.s |
| 4940 | 74 61 74 65 73 20 6f 66 20 69 6e 64 69 76 69 64 75 61 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | tates.of.individual........../// |
| 4960 | 20 6d 61 70 73 20 61 6e 64 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | .maps.and.actions...........///. |
| 4980 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 4c 6f 61 64 | .........///.Use.<see.cref="Load |
| 49a0 | 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 20 74 6f 20 64 65 73 65 72 69 61 6c 69 7a 65 20 74 68 65 20 4a | FromJson"/>.to.deserialize.the.J |
| 49c0 | 53 4f 4e 20 64 61 74 61 20 62 61 63 6b 20 69 6e 74 6f 20 61 6e 20 49 6e 70 75 74 41 63 74 69 6f | SON.data.back.into.an.InputActio |
| 49e0 | 6e 41 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f | nAsset...........///..........// |
| 4a00 | 2f 20 42 65 20 61 77 61 72 65 20 74 68 61 74 20 74 68 65 20 66 6f 72 6d 61 74 20 75 73 65 64 20 | /.Be.aware.that.the.format.used. |
| 4a20 | 62 79 20 74 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 3c 65 6d 3e 64 69 66 66 65 72 65 6e 74 3c | by.this.method.is.<em>different< |
| 4a40 | 2f 65 6d 3e 20 74 68 61 6e 20 77 68 61 74 20 79 6f 75 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | /em>.than.what.you..........///. |
| 4a60 | 67 65 74 20 69 66 20 79 6f 75 20 63 61 6c 6c 20 3c 63 3e 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 54 | get.if.you.call.<c>JsonUtility.T |
| 4a80 | 6f 4a 73 6f 6e 3c 2f 63 3e 20 6f 6e 20 61 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 | oJson</c>.on.an.InputActionAsset |
| 4aa0 | 20 69 6e 73 74 61 6e 63 65 2e 20 49 6e 20 6f 74 68 65 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .instance..In.other........../// |
| 4ac0 | 20 77 6f 72 64 73 2c 20 74 68 65 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 20 69 73 20 6e 6f 74 20 69 | .words,.the.JSON.format.is.not.i |
| 4ae0 | 64 65 6e 74 69 63 61 6c 20 74 6f 20 74 68 65 20 55 6e 69 74 79 20 73 65 72 69 61 6c 69 7a 65 64 | dentical.to.the.Unity.serialized |
| 4b00 | 20 6f 62 6a 65 63 74 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 | .object.representation.......... |
| 4b20 | 2f 2f 2f 20 6f 66 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ///.of.the.asset...........///.< |
| 4b40 | 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 | /remarks>..........///.<seealso. |
| 4b60 | 63 72 65 66 3d 22 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 | cref="FromJson"/>..........publi |
| 4b80 | 63 20 73 74 72 69 6e 67 20 54 6f 4a 73 6f 6e 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | c.string.ToJson()..........{.... |
| 4ba0 | 20 20 20 20 20 20 20 20 20 20 76 61 72 20 66 69 6c 65 4a 73 6f 6e 20 3d 20 6e 65 77 20 57 72 69 | ..........var.fileJson.=.new.Wri |
| 4bc0 | 74 65 46 69 6c 65 4a 73 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | teFileJson..............{....... |
| 4be0 | 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 20 3d 20 6e 61 6d 65 2c 0d 0a 20 20 20 20 20 20 20 | ...........name.=.name,......... |
| 4c00 | 20 20 20 20 20 20 20 20 20 6d 61 70 73 20 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 57 | .........maps.=.InputActionMap.W |
| 4c20 | 72 69 74 65 46 69 6c 65 4a 73 6f 6e 2e 46 72 6f 6d 4d 61 70 73 28 6d 5f 41 63 74 69 6f 6e 4d 61 | riteFileJson.FromMaps(m_ActionMa |
| 4c40 | 70 73 29 2e 6d 61 70 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 72 | ps).maps,..................contr |
| 4c60 | 6f 6c 53 63 68 65 6d 65 73 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 53 | olSchemes.=.InputControlScheme.S |
| 4c80 | 63 68 65 6d 65 4a 73 6f 6e 2e 54 6f 4a 73 6f 6e 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 | chemeJson.ToJson(m_ControlScheme |
| 4ca0 | 73 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | s),..............};............. |
| 4cc0 | 20 20 20 72 65 74 75 72 6e 20 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 54 6f 4a 73 6f 6e 28 66 69 6c | ...return.JsonUtility.ToJson(fil |
| 4ce0 | 65 4a 73 6f 6e 2c 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 | eJson,.true);..........}........ |
| 4d00 | 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 20 52 | ....///.<summary>..........///.R |
| 4d20 | 65 70 6c 61 63 65 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 61 73 73 65 74 | eplace.the.contents.of.the.asset |
| 4d40 | 20 77 69 74 68 20 74 68 65 20 64 61 74 61 20 69 6e 20 74 68 65 20 67 69 76 65 6e 20 4a 53 4f 4e | .with.the.data.in.the.given.JSON |
| 4d60 | 20 73 74 72 69 6e 67 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 | .string...........///.</summary> |
| 4d80 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6a 73 6f 6e 22 | ..........///.<param.name="json" |
| 4da0 | 3e 4a 53 4f 4e 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 6e 20 3c 63 3e 2e 69 6e 70 75 74 61 63 | >JSON.contents.of.an.<c>.inputac |
| 4dc0 | 74 69 6f 6e 73 3c 2f 63 3e 20 61 73 73 65 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 | tions</c>.asset.</param>........ |
| 4de0 | 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 3e | ..///.<remarks>..........///.<c> |
| 4e00 | 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 3c 2f 63 3e 20 61 73 73 65 74 73 20 61 72 65 20 73 74 6f | .inputactions</c>.assets.are.sto |
| 4e20 | 72 65 64 20 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 2e 20 54 68 69 73 20 6d 65 74 68 6f 64 20 | red.in.JSON.format..This.method. |
| 4e40 | 61 6c 6c 6f 77 73 20 72 65 61 64 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 | allows.reading..........///.the. |
| 4e60 | 4a 53 4f 4e 20 73 6f 75 72 63 65 20 74 65 78 74 20 6f 66 20 73 75 63 68 20 61 6e 20 61 73 73 65 | JSON.source.text.of.such.an.asse |
| 4e80 | 74 20 69 6e 74 6f 20 61 6e 20 65 78 69 73 74 69 6e 67 20 3c 63 3e 49 6e 70 75 74 41 63 74 69 6f | t.into.an.existing.<c>InputActio |
| 4ea0 | 6e 4d 61 70 3c 2f 63 3e 20 69 6e 73 74 61 6e 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | nMap</c>.instance...........///. |
| 4ec0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 | .........///.<example>.......... |
| 4ee0 | 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 73 73 65 | ///.<code>..........///.var.asse |
| 4f00 | 74 20 3d 20 53 63 72 69 70 74 61 62 6c 65 4f 62 6a 65 63 74 2e 43 72 65 61 74 65 49 6e 73 74 61 | t.=.ScriptableObject.CreateInsta |
| 4f20 | 6e 63 65 26 6c 74 3b 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 26 67 74 3b 28 29 3b 0d 0a | nce<InputActionAsset>();.. |
| 4f40 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 4c 6f 61 64 46 72 6f 6d 4a 73 6f 6e 28 40 | ........///.asset.LoadFromJson(@ |
| 4f60 | 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 | "..........///.{..........///... |
| 4f80 | 20 20 22 22 6d 61 70 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 | ..""maps"".:.[..........///..... |
| 4fa0 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 | ....{..........///............." |
| 4fc0 | 22 6e 61 6d 65 22 22 20 3a 20 22 22 67 61 6d 65 70 6c 61 79 22 22 2c 0d 0a 20 20 20 20 20 20 20 | "name"".:.""gameplay"",......... |
| 4fe0 | 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 61 63 74 69 6f 6e 73 22 22 20 3a 20 5b | .///.............""actions"".:.[ |
| 5000 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 | ..........///.................{. |
| 5020 | 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 66 69 72 65 22 22 2c 20 22 22 74 79 70 65 22 22 20 3a 20 | ""name"".:.""fire"",.""type"".:. |
| 5040 | 22 22 62 75 74 74 6f 6e 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 | ""button"".},..........///...... |
| 5060 | 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 6c 6f 6f 6b 22 22 | ...........{.""name"".:.""look"" |
| 5080 | 2c 20 22 22 74 79 70 65 22 22 20 3a 20 22 22 76 61 6c 75 65 22 22 20 7d 2c 0d 0a 20 20 20 20 20 | ,.""type"".:.""value"".},....... |
| 50a0 | 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 6e 61 6d 65 22 | ...///.................{.""name" |
| 50c0 | 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 74 79 70 65 22 22 20 3a 20 22 22 76 61 6c 75 65 | ".:.""move"",.""type"".:.""value |
| 50e0 | 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 2c | "".}..........///.............], |
| 5100 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 62 69 6e 64 | ..........///.............""bind |
| 5120 | 69 6e 67 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 | ings"".:.[..........///......... |
| 5140 | 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 | ........{.""path"".:.""<Gamep |
| 5160 | 61 64 26 67 74 3b 2f 62 75 74 74 6f 6e 53 6f 75 74 68 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 | ad>/buttonSouth"",.""action"" |
| 5180 | 20 3a 20 22 22 66 69 72 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 | .:.""fire"",.""groups"".:.""Game |
| 51a0 | 70 61 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 | pad"".},..........///........... |
| 51c0 | 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 | ......{.""path"".:.""<Gamepad |
| 51e0 | 26 67 74 3b 2f 6c 65 66 74 54 72 69 67 67 65 72 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a | >/leftTrigger"",.""action"".: |
| 5200 | 20 22 22 66 69 72 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 | .""fire"",.""groups"".:.""Gamepa |
| 5220 | 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 | d"".},..........///............. |
| 5240 | 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 | ....{.""path"".:.""<Gamepad&g |
| 5260 | 74 3b 2f 6c 65 66 74 53 74 69 63 6b 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d | t;/leftStick"",.""action"".:.""m |
| 5280 | 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 | ove"",.""groups"".:.""Gamepad"". |
| 52a0 | 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | },..........///................. |
| 52c0 | 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 72 | {.""path"".:.""<Gamepad>/r |
| 52e0 | 69 67 68 74 53 74 69 63 6b 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6c 6f 6f 6b | ightStick"",.""action"".:.""look |
| 5300 | 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 2c 0d | "",.""groups"".:.""Gamepad"".},. |
| 5320 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 | .........///.................{." |
| 5340 | 22 70 61 74 68 22 22 20 3a 20 22 22 64 70 61 64 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a | "path"".:.""dpad"",.""action"".: |
| 5360 | 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 | .""move"",.""groups"".:.""Gamepa |
| 5380 | 64 22 22 2c 20 22 22 69 73 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a | d"",.""isComposite"".:.true.},.. |
| 53a0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 | ........///.................{."" |
| 53c0 | 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 61 22 22 2c | path"".:.""<Keyboard>/a"", |
| 53e0 | 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 6c 65 66 74 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 | .""name"".:.""left"",.""action"" |
| 5400 | 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 | .:.""move"",.""groups"".:.""Keyb |
| 5420 | 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f 66 43 6f 6d 70 | oard&Mouse"",.""isPartOfComp |
| 5440 | 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 | osite"".:.true.},..........///.. |
| 5460 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c | ...............{.""path"".:.""&l |
| 5480 | 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 64 22 22 2c 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 | t;Keyboard>/d"",.""name"".:." |
| 54a0 | 22 72 69 67 68 74 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c | "right"",.""action"".:.""move"", |
| 54c0 | 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 | .""groups"".:.""Keyboard&Mou |
| 54e0 | 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 | se"",.""isPartOfComposite"".:.tr |
| 5500 | 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ue.},..........///.............. |
| 5520 | 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 | ...{.""path"".:.""<Keyboard&g |
| 5540 | 74 3b 2f 77 22 22 2c 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 75 70 22 22 2c 20 22 22 61 63 74 | t;/w"",.""name"".:.""up"",.""act |
| 5560 | 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 | ion"".:.""move"",.""groups"".:." |
| 5580 | 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f | "Keyboard&Mouse"",.""isPartO |
| 55a0 | 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 | fComposite"".:.true.},.......... |
| 55c0 | 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a | ///.................{.""path"".: |
| 55e0 | 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 73 22 22 2c 20 22 22 6e 61 6d 65 22 | .""<Keyboard>/s"",.""name" |
| 5600 | 22 20 3a 20 22 22 64 6f 77 6e 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 | ".:.""down"",.""action"".:.""mov |
| 5620 | 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 | e"",.""groups"".:.""Keyboard& |
| 5640 | 3b 4d 6f 75 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 | ;Mouse"",.""isPartOfComposite"". |
| 5660 | 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 | :.true.},..........///.......... |
| 5680 | 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4d 6f 75 73 65 26 | .......{.""path"".:.""<Mouse& |
| 56a0 | 67 74 3b 2f 64 65 6c 74 61 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6c 6f 6f 6b | gt;/delta"",.""action"".:.""look |
| 56c0 | 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b | "",.""groups"".:.""Keyboard& |
| 56e0 | 4d 6f 75 73 65 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 | Mouse"".},..........///......... |
| 5700 | 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4d 6f 75 73 65 | ........{.""path"".:.""<Mouse |
| 5720 | 26 67 74 3b 2f 6c 65 66 74 42 75 74 74 6f 6e 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 | >/leftButton"",.""action"".:. |
| 5740 | 22 22 66 69 72 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 | ""fire"",.""groups"".:.""Keyboar |
| 5760 | 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | d&Mouse"".}..........///.... |
| 5780 | 20 20 20 20 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 | .........]..........///......... |
| 57a0 | 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | },..........///.........{....... |
| 57c0 | 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 | ...///.............""name"".:."" |
| 57e0 | 75 69 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 | ui"",..........///............." |
| 5800 | 22 61 63 74 69 6f 6e 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 | "actions"".:.[..........///..... |
| 5820 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 6e 61 76 69 67 | ............{.""name"".:.""navig |
| 5840 | 61 74 65 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 | ate"".}..........///............ |
| 5860 | 20 5d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 62 | .],..........///.............""b |
| 5880 | 69 6e 64 69 6e 67 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 | indings"".:.[..........///...... |
| 58a0 | 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 | ...........{.""path"".:.""<Ga |
| 58c0 | 6d 65 70 61 64 26 67 74 3b 2f 64 70 61 64 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 | mepad>/dpad"",.""action"".:." |
| 58e0 | 22 6e 61 76 69 67 61 74 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 | "navigate"",.""groups"".:.""Game |
| 5900 | 70 61 64 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 | pad"".}..........///............ |
| 5920 | 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 | .]..........///.........}....... |
| 5940 | 20 20 20 2f 2f 2f 20 20 20 20 20 5d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 22 | ...///.....],..........///....." |
| 5960 | 22 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f | "controlSchemes"".:.[........../ |
| 5980 | 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 | //.........{..........///....... |
| 59a0 | 20 20 20 20 20 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 2c 0d 0a 20 | ......""name"".:.""Gamepad"",... |
| 59c0 | 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 | .......///.............""binding |
| 59e0 | 47 72 6f 75 70 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 | Group"".:.""Gamepad"",.......... |
| 5a00 | 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 64 65 76 69 63 65 73 22 22 20 3a 20 5b 0d | ///.............""devices"".:.[. |
| 5a20 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 | .........///.................{." |
| 5a40 | 22 64 65 76 69 63 65 50 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 | "devicePath"".:.""<Gamepad> |
| 5a60 | 3b 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d | ;"".}..........///.............] |
| 5a80 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 2c 0d 0a 20 20 20 20 20 20 | ..........///.........},........ |
| 5aa0 | 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | ..///.........{..........///.... |
| 5ac0 | 20 20 20 20 20 20 20 20 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 | .........""name"".:.""Keyboard&a |
| 5ae0 | 6d 70 3b 4d 6f 75 73 65 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 | mp;Mouse"",..........///........ |
| 5b00 | 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 47 72 6f 75 70 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 | .....""bindingGroup"".:.""Keyboa |
| 5b20 | 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | rd&Mouse"",..........///.... |
| 5b40 | 20 20 20 20 20 20 20 20 20 22 22 64 65 76 69 63 65 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 | .........""devices"".:.[........ |
| 5b60 | 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 64 65 76 69 63 65 | ..///.................{.""device |
| 5b80 | 50 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 22 22 20 7d 2c | Path"".:.""<Keyboard>"".}, |
| 5ba0 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 | ..........///.................{. |
| 5bc0 | 22 22 64 65 76 69 63 65 50 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4d 6f 75 73 65 26 67 74 3b | ""devicePath"".:.""<Mouse> |
| 5be0 | 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 0d | "".}..........///.............]. |
| 5c00 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | .........///.........}.......... |
| 5c20 | 2f 2f 2f 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7d 22 29 3b 0d 0a 20 20 20 | ///.....]..........///.}");..... |
| 5c40 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | .....///.</code>..........///.</ |
| 5c60 | 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e | example>..........///.</remarks> |
| 5c80 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 | ..........///.<exception.cref="A |
| 5ca0 | 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 | rgumentNullException"><paramref. |
| 5cc0 | 6e 61 6d 65 3d 22 6a 73 6f 6e 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 6f 72 20 | name="json"/>.is.<c>null</c>.or. |
| 5ce0 | 65 6d 70 74 79 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | empty.</exception>..........///. |
| 5d00 | 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 0d 0a 20 20 20 20 | <seealso.cref="FromJson"/>...... |
| 5d20 | 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 54 6f 4a 73 6f 6e 22 2f 3e | ....///.<seealso.cref="ToJson"/> |
| 5d40 | 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4c 6f 61 64 46 72 6f 6d 4a 73 | ..........public.void.LoadFromJs |
| 5d60 | 6f 6e 28 73 74 72 69 6e 67 20 6a 73 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | on(string.json)..........{...... |
| 5d80 | 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 70 74 79 | ........if.(string.IsNullOrEmpty |
| 5da0 | 28 6a 73 6f 6e 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 | (json))..................throw.n |
| 5dc0 | 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 | ew.ArgumentNullException(nameof( |
| 5de0 | 6a 73 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 73 65 | json));................var.parse |
| 5e00 | 64 4a 73 6f 6e 20 3d 20 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 46 72 6f 6d 4a 73 6f 6e 3c 52 65 61 | dJson.=.JsonUtility.FromJson<Rea |
| 5e20 | 64 46 69 6c 65 4a 73 6f 6e 3e 28 6a 73 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 | dFileJson>(json);..............p |
| 5e40 | 61 72 73 65 64 4a 73 6f 6e 2e 54 6f 41 73 73 65 74 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 | arsedJson.ToAsset(this);........ |
| 5e60 | 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 | ..}............///.<summary>.... |
| 5e80 | 20 20 20 20 20 20 2f 2f 2f 20 52 65 70 6c 61 63 65 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f | ......///.Replace.the.contents.o |
| 5ea0 | 66 20 74 68 65 20 61 73 73 65 74 20 77 69 74 68 20 74 68 65 20 64 61 74 61 20 69 6e 20 74 68 65 | f.the.asset.with.the.data.in.the |
| 5ec0 | 20 67 69 76 65 6e 20 4a 53 4f 4e 20 73 74 72 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .given.JSON.string.........../// |
| 5ee0 | 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 | .</summary>..........///.<param. |
| 5f00 | 6e 61 6d 65 3d 22 6a 73 6f 6e 22 3e 4a 53 4f 4e 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 6e 20 | name="json">JSON.contents.of.an. |
| 5f20 | 3c 63 3e 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 3c 2f 63 3e 20 61 73 73 65 74 2e 3c 2f 70 61 72 | <c>.inputactions</c>.asset.</par |
| 5f40 | 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 49 6e | am>..........///.<returns>The.In |
| 5f60 | 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 69 6e 73 74 61 6e 63 65 20 63 72 65 61 74 65 64 20 | putActionAsset.instance.created. |
| 5f80 | 66 72 6f 6d 20 74 68 65 20 67 69 76 65 6e 20 4a 53 4f 4e 20 73 74 72 69 6e 67 2e 3c 2f 72 65 74 | from.the.given.JSON.string.</ret |
| 5fa0 | 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 | urns>..........///.<remarks>.... |
| 5fc0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 63 3e 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 3c 2f 63 3e 20 61 | ......///.<c>.inputactions</c>.a |
| 5fe0 | 73 73 65 74 73 20 61 72 65 20 73 74 6f 72 65 64 20 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 2e | ssets.are.stored.in.JSON.format. |
| 6000 | 20 54 68 69 73 20 6d 65 74 68 6f 64 20 61 6c 6c 6f 77 73 20 74 75 72 6e 69 6e 67 0d 0a 20 20 20 | .This.method.allows.turning..... |
| 6020 | 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 4a 53 4f 4e 20 73 6f 75 72 63 65 20 74 65 78 74 20 6f 66 | .....///.the.JSON.source.text.of |
| 6040 | 20 73 75 63 68 20 61 6e 20 61 73 73 65 74 20 69 6e 74 6f 20 61 20 6e 65 77 20 3c 63 3e 49 6e 70 | .such.an.asset.into.a.new.<c>Inp |
| 6060 | 75 74 41 63 74 69 6f 6e 4d 61 70 3c 2f 63 3e 20 69 6e 73 74 61 6e 63 65 2e 0d 0a 20 20 20 20 20 | utActionMap</c>.instance........ |
| 6080 | 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 42 65 20 61 77 61 72 65 20 74 68 61 | ...///..........///.Be.aware.tha |
| 60a0 | 74 20 74 68 65 20 66 6f 72 6d 61 74 20 75 73 65 64 20 62 79 20 74 68 69 73 20 6d 65 74 68 6f 64 | t.the.format.used.by.this.method |
| 60c0 | 20 69 73 20 3c 65 6d 3e 64 69 66 66 65 72 65 6e 74 3c 2f 65 6d 3e 20 74 68 61 6e 20 77 68 61 74 | .is.<em>different</em>.than.what |
| 60e0 | 20 79 6f 75 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 65 74 20 69 66 20 79 6f 75 20 63 61 6c | .you..........///.get.if.you.cal |
| 6100 | 6c 20 3c 63 3e 4a 73 6f 6e 55 74 69 6c 69 74 79 2e 54 6f 4a 73 6f 6e 3c 2f 63 3e 20 6f 6e 20 61 | l.<c>JsonUtility.ToJson</c>.on.a |
| 6120 | 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 69 6e 73 74 61 6e 63 65 2e 20 49 6e 20 | n.InputActionAsset.instance..In. |
| 6140 | 6f 74 68 65 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 6f 72 64 73 2c 20 74 68 65 20 4a 53 | other..........///.words,.the.JS |
| 6160 | 4f 4e 20 66 6f 72 6d 61 74 20 69 73 20 6e 6f 74 20 69 64 65 6e 74 69 63 61 6c 20 74 6f 20 74 68 | ON.format.is.not.identical.to.th |
| 6180 | 65 20 55 6e 69 74 79 20 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 20 72 65 70 72 65 73 | e.Unity.serialized.object.repres |
| 61a0 | 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 66 20 74 68 65 20 61 73 73 | entation..........///.of.the.ass |
| 61c0 | 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 | et...........///..........///.<e |
| 61e0 | 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 | xample>..........///.<code>..... |
| 6200 | 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 73 73 65 74 20 3d 20 49 6e 70 75 74 41 63 74 69 6f 6e | .....///.var.asset.=.InputAction |
| 6220 | 41 73 73 65 74 2e 46 72 6f 6d 4a 73 6f 6e 28 40 22 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7b | Asset.FromJson(@"..........///.{ |
| 6240 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 22 22 6d 61 70 73 22 22 20 3a 20 5b 0d 0a | ..........///.....""maps"".:.[.. |
| 6260 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.........{........../ |
| 6280 | 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 67 61 6d 65 | //.............""name"".:.""game |
| 62a0 | 70 6c 61 79 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 | play"",..........///............ |
| 62c0 | 20 22 22 61 63 74 69 6f 6e 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 | .""actions"".:.[..........///... |
| 62e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 66 69 72 | ..............{.""name"".:.""fir |
| 6300 | 65 22 22 2c 20 22 22 74 79 70 65 22 22 20 3a 20 22 22 62 75 74 74 6f 6e 22 22 20 7d 2c 0d 0a 20 | e"",.""type"".:.""button"".},... |
| 6320 | 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 6e | .......///.................{.""n |
| 6340 | 61 6d 65 22 22 20 3a 20 22 22 6c 6f 6f 6b 22 22 2c 20 22 22 74 79 70 65 22 22 20 3a 20 22 22 76 | ame"".:.""look"",.""type"".:.""v |
| 6360 | 61 6c 75 65 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 | alue"".},..........///.......... |
| 6380 | 20 20 20 20 20 20 20 7b 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 | .......{.""name"".:.""move"",."" |
| 63a0 | 74 79 70 65 22 22 20 3a 20 22 22 76 61 6c 75 65 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f | type"".:.""value"".}..........// |
| 63c0 | 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 | /.............],..........///... |
| 63e0 | 20 20 20 20 20 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 | ..........""bindings"".:.[...... |
| 6400 | 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 | ....///.................{.""path |
| 6420 | 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 62 75 74 74 6f 6e 53 6f 75 | "".:.""<Gamepad>/buttonSou |
| 6440 | 74 68 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 66 69 72 65 22 22 2c 20 22 22 67 | th"",.""action"".:.""fire"",.""g |
| 6460 | 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 | roups"".:.""Gamepad"".},........ |
| 6480 | 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 | ..///.................{.""path"" |
| 64a0 | 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 6c 65 66 74 54 72 69 67 67 65 72 | .:.""<Gamepad>/leftTrigger |
| 64c0 | 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 66 69 72 65 22 22 2c 20 22 22 67 72 6f | "",.""action"".:.""fire"",.""gro |
| 64e0 | 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 | ups"".:.""Gamepad"".},.......... |
| 6500 | 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a | ///.................{.""path"".: |
| 6520 | 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 6c 65 66 74 53 74 69 63 6b 22 22 2c 20 | .""<Gamepad>/leftStick"",. |
| 6540 | 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 | ""action"".:.""move"",.""groups" |
| 6560 | 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ".:.""Gamepad"".},..........///. |
| 6580 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 | ................{.""path"".:.""& |
| 65a0 | 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 72 69 67 68 74 53 74 69 63 6b 22 22 2c 20 22 22 61 | lt;Gamepad>/rightStick"",.""a |
| 65c0 | 63 74 69 6f 6e 22 22 20 3a 20 22 22 6c 6f 6f 6b 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a | ction"".:.""look"",.""groups"".: |
| 65e0 | 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | .""Gamepad"".},..........///.... |
| 6600 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 64 70 61 64 | .............{.""path"".:.""dpad |
| 6620 | 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f | "",.""action"".:.""move"",.""gro |
| 6640 | 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 2c 20 22 22 69 73 43 6f 6d 70 6f 73 69 | ups"".:.""Gamepad"",.""isComposi |
| 6660 | 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 | te"".:.true.},..........///..... |
| 6680 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b | ............{.""path"".:.""<K |
| 66a0 | 65 79 62 6f 61 72 64 26 67 74 3b 2f 61 22 22 2c 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 6c 65 | eyboard>/a"",.""name"".:.""le |
| 66c0 | 66 74 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 | ft"",.""action"".:.""move"",.""g |
| 66e0 | 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 | roups"".:.""Keyboard&Mouse"" |
| 6700 | 2c 20 22 22 69 73 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d | ,.""isPartOfComposite"".:.true.} |
| 6720 | 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b | ,..........///.................{ |
| 6740 | 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 64 | .""path"".:.""<Keyboard>/d |
| 6760 | 22 22 2c 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 72 69 67 68 74 22 22 2c 20 22 22 61 63 74 69 | "",.""name"".:.""right"",.""acti |
| 6780 | 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 | on"".:.""move"",.""groups"".:."" |
| 67a0 | 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f 66 | Keyboard&Mouse"",.""isPartOf |
| 67c0 | 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f | Composite"".:.true.},........../ |
| 67e0 | 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 | //.................{.""path"".:. |
| 6800 | 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 67 74 3b 2f 77 22 22 2c 20 22 22 6e 61 6d 65 22 22 | ""<Keyboard>/w"",.""name"" |
| 6820 | 20 3a 20 22 22 75 70 22 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 | .:.""up"",.""action"".:.""move"" |
| 6840 | 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f | ,.""groups"".:.""Keyboard&Mo |
| 6860 | 75 73 65 22 22 2c 20 22 22 69 73 50 61 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 | use"",.""isPartOfComposite"".:.t |
| 6880 | 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 | rue.},..........///............. |
| 68a0 | 20 20 20 20 7b 20 22 22 70 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b 65 79 62 6f 61 72 64 26 | ....{.""path"".:.""<Keyboard& |
| 68c0 | 67 74 3b 2f 73 22 22 2c 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 64 6f 77 6e 22 22 2c 20 22 22 | gt;/s"",.""name"".:.""down"",."" |
| 68e0 | 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6d 6f 76 65 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 | action"".:.""move"",.""groups"". |
| 6900 | 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 20 22 22 69 73 50 61 | :.""Keyboard&Mouse"",.""isPa |
| 6920 | 72 74 4f 66 43 6f 6d 70 6f 73 69 74 65 22 22 20 3a 20 74 72 75 65 20 7d 2c 0d 0a 20 20 20 20 20 | rtOfComposite"".:.true.},....... |
| 6940 | 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 22 | ...///.................{.""path" |
| 6960 | 22 20 3a 20 22 22 26 6c 74 3b 4d 6f 75 73 65 26 67 74 3b 2f 64 65 6c 74 61 22 22 2c 20 22 22 61 | ".:.""<Mouse>/delta"",.""a |
| 6980 | 63 74 69 6f 6e 22 22 20 3a 20 22 22 6c 6f 6f 6b 22 22 2c 20 22 22 67 72 6f 75 70 73 22 22 20 3a | ction"".:.""look"",.""groups"".: |
| 69a0 | 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 20 7d 2c 0d 0a 20 20 20 20 | .""Keyboard&Mouse"".},...... |
| 69c0 | 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 61 74 68 | ....///.................{.""path |
| 69e0 | 22 22 20 3a 20 22 22 26 6c 74 3b 4d 6f 75 73 65 26 67 74 3b 2f 6c 65 66 74 42 75 74 74 6f 6e 22 | "".:.""<Mouse>/leftButton" |
| 6a00 | 22 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 66 69 72 65 22 22 2c 20 22 22 67 72 6f 75 | ",.""action"".:.""fire"",.""grou |
| 6a20 | 70 73 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 20 7d 0d | ps"".:.""Keyboard&Mouse"".}. |
| 6a40 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 0d 0a 20 20 20 20 | .........///.............]...... |
| 6a60 | 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ....///.........},..........///. |
| 6a80 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 | ........{..........///.......... |
| 6aa0 | 20 20 20 22 22 6e 61 6d 65 22 22 20 3a 20 22 22 75 69 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f | ...""name"".:.""ui"",........../ |
| 6ac0 | 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 61 63 74 69 6f 6e 73 22 22 20 3a 20 5b 0d 0a | //.............""actions"".:.[.. |
| 6ae0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 | ........///.................{."" |
| 6b00 | 6e 61 6d 65 22 22 20 3a 20 22 22 6e 61 76 69 67 61 74 65 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 | name"".:.""navigate"".}......... |
| 6b20 | 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .///.............],........../// |
| 6b40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 73 22 22 20 3a 20 5b 0d 0a 20 | .............""bindings"".:.[... |
| 6b60 | 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 70 | .......///.................{.""p |
| 6b80 | 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 2f 64 70 61 64 22 22 | ath"".:.""<Gamepad>/dpad"" |
| 6ba0 | 2c 20 22 22 61 63 74 69 6f 6e 22 22 20 3a 20 22 22 6e 61 76 69 67 61 74 65 22 22 2c 20 22 22 67 | ,.""action"".:.""navigate"",.""g |
| 6bc0 | 72 6f 75 70 73 22 22 20 3a 20 22 22 47 61 6d 65 70 61 64 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 | roups"".:.""Gamepad"".}......... |
| 6be0 | 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | .///.............]..........///. |
| 6c00 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 5d 2c 0d 0a 20 | ........}..........///.....],... |
| 6c20 | 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 22 22 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 22 | .......///.....""controlSchemes" |
| 6c40 | 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ".:.[..........///.........{.... |
| 6c60 | 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 6e 61 6d 65 22 22 20 3a | ......///.............""name"".: |
| 6c80 | 20 22 22 47 61 6d 65 70 61 64 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 | .""Gamepad"",..........///...... |
| 6ca0 | 20 20 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 47 72 6f 75 70 22 22 20 3a 20 22 22 47 61 6d 65 | .......""bindingGroup"".:.""Game |
| 6cc0 | 70 61 64 22 22 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 | pad"",..........///............. |
| 6ce0 | 22 22 64 65 76 69 63 65 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | ""devices"".:.[..........///.... |
| 6d00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 64 65 76 69 63 65 50 61 74 68 22 22 20 3a 20 | .............{.""devicePath"".:. |
| 6d20 | 22 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f | ""<Gamepad>"".}........../ |
| 6d40 | 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 | //.............]..........///... |
| 6d60 | 20 20 20 20 20 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 7b 0d | ......},..........///.........{. |
| 6d80 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 6e 61 6d 65 22 | .........///.............""name" |
| 6da0 | 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 0d 0a 20 20 20 | ".:.""Keyboard&Mouse"",..... |
| 6dc0 | 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 62 69 6e 64 69 6e 67 47 72 | .....///.............""bindingGr |
| 6de0 | 6f 75 70 22 22 20 3a 20 22 22 4b 65 79 62 6f 61 72 64 26 61 6d 70 3b 4d 6f 75 73 65 22 22 2c 0d | oup"".:.""Keyboard&Mouse"",. |
| 6e00 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 22 22 64 65 76 69 63 | .........///.............""devic |
| 6e20 | 65 73 22 22 20 3a 20 5b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 20 20 20 20 20 20 | es"".:.[..........///........... |
| 6e40 | 20 20 20 20 20 20 7b 20 22 22 64 65 76 69 63 65 50 61 74 68 22 22 20 3a 20 22 22 26 6c 74 3b 4b | ......{.""devicePath"".:.""<K |
| 6e60 | 65 79 62 6f 61 72 64 26 67 74 3b 22 22 20 7d 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 | eyboard>"".},..........///... |
| 6e80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 20 22 22 64 65 76 69 63 65 50 61 74 68 22 22 20 3a | ..............{.""devicePath"".: |
| 6ea0 | 20 22 22 26 6c 74 3b 4d 6f 75 73 65 26 67 74 3b 22 22 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .""<Mouse>"".}..........// |
| 6ec0 | 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 | /.............]..........///.... |
| 6ee0 | 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 5d 0d 0a 20 20 20 20 20 | .....}..........///.....]....... |
| 6f00 | 20 20 20 2f 2f 2f 20 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e | ...///.}");..........///.</code> |
| 6f20 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 | ..........///.</example>........ |
| 6f40 | 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 | ..///.</remarks>..........///.<e |
| 6f60 | 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 | xception.cref="ArgumentNullExcep |
| 6f80 | 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6a 73 6f 6e 22 2f 3e 20 69 73 | tion"><paramref.name="json"/>.is |
| 6fa0 | 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 6f 72 20 65 6d 70 74 79 2e 3c 2f 65 78 63 65 70 74 69 6f | .<c>null</c>.or.empty.</exceptio |
| 6fc0 | 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 4c | n>..........///.<seealso.cref="L |
| 6fe0 | 6f 61 64 46 72 6f 6d 4a 73 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 | oadFromJson"/>..........///.<see |
| 7000 | 61 6c 73 6f 20 63 72 65 66 3d 22 54 6f 4a 73 6f 6e 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 | also.cref="ToJson"/>..........pu |
| 7020 | 62 6c 69 63 20 73 74 61 74 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 46 72 6f | blic.static.InputActionAsset.Fro |
| 7040 | 6d 4a 73 6f 6e 28 73 74 72 69 6e 67 20 6a 73 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 | mJson(string.json)..........{... |
| 7060 | 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 |
| 7080 | 70 74 79 28 6a 73 6f 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f | pty(json))..................thro |
| 70a0 | 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 | w.new.ArgumentNullException(name |
| 70c0 | 6f 66 28 6a 73 6f 6e 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 | of(json));................var.as |
| 70e0 | 73 65 74 20 3d 20 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 49 6e 70 75 74 41 63 74 69 6f 6e | set.=.CreateInstance<InputAction |
| 7100 | 41 73 73 65 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 2e 4c 6f 61 | Asset>();..............asset.Loa |
| 7120 | 64 46 72 6f 6d 4a 73 6f 6e 28 6a 73 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 | dFromJson(json);..............re |
| 7140 | 74 75 72 6e 20 61 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 | turn.asset;..........}.......... |
| 7160 | 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 20 46 69 6e | ..///.<summary>..........///.Fin |
| 7180 | 64 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 22 2f 3e 20 62 | d.an.<see.cref="InputAction"/>.b |
| 71a0 | 79 20 69 74 73 20 6e 61 6d 65 20 69 6e 20 6f 6e 65 20 6f 66 20 74 68 65 20 3c 73 65 65 20 63 72 | y.its.name.in.one.of.the.<see.cr |
| 71c0 | 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 73 0d 0a 20 20 20 20 20 20 20 20 | ef="InputActionMap"/>s.......... |
| 71e0 | 2f 2f 2f 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ///.in.the.asset...........///.< |
| 7200 | 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 | /summary>..........///.<param.na |
| 7220 | 6d 65 3d 22 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 22 3e 4e 61 6d 65 20 6f 66 20 74 68 65 20 | me="actionNameOrId">Name.of.the. |
| 7240 | 61 63 74 69 6f 6e 20 61 73 20 65 69 74 68 65 72 20 61 20 22 6d 61 70 2f 61 63 74 69 6f 6e 22 20 | action.as.either.a."map/action". |
| 7260 | 63 6f 6d 62 69 6e 61 74 69 6f 6e 20 28 65 2e 67 2e 20 22 67 61 6d 65 70 6c 61 79 2f 66 69 72 65 | combination.(e.g.."gameplay/fire |
| 7280 | 22 29 20 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 20 73 69 6d 70 6c 65 20 6e 61 6d 65 | ").or..........///.a.simple.name |
| 72a0 | 2e 20 49 6e 20 74 68 65 20 66 6f 72 6d 65 72 20 63 61 73 65 2c 20 74 68 65 20 6e 61 6d 65 20 69 | ..In.the.former.case,.the.name.i |
| 72c0 | 73 20 73 70 6c 69 74 20 61 74 20 74 68 65 20 27 2f 27 20 73 6c 61 73 68 20 61 6e 64 20 74 68 65 | s.split.at.the.'/'.slash.and.the |
| 72e0 | 20 66 69 72 73 74 20 70 61 72 74 20 69 73 20 75 73 65 64 20 74 6f 20 66 69 6e 64 0d 0a 20 20 20 | .first.part.is.used.to.find..... |
| 7300 | 20 20 20 20 20 2f 2f 2f 20 61 20 6d 61 70 20 77 69 74 68 20 74 68 61 74 20 6e 61 6d 65 20 61 6e | .....///.a.map.with.that.name.an |
| 7320 | 64 20 74 68 65 20 73 65 63 6f 6e 64 20 70 61 72 74 20 69 73 20 75 73 65 64 20 74 6f 20 66 69 6e | d.the.second.part.is.used.to.fin |
| 7340 | 64 20 61 6e 20 61 63 74 69 6f 6e 20 77 69 74 68 20 74 68 61 74 20 6e 61 6d 65 20 69 6e 73 69 64 | d.an.action.with.that.name.insid |
| 7360 | 65 20 74 68 65 20 6d 61 70 2e 20 49 6e 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6c | e.the.map..In.the..........///.l |
| 7380 | 61 74 74 65 72 20 63 61 73 65 2c 20 61 6c 6c 20 6d 61 70 73 20 61 72 65 20 73 65 61 72 63 68 65 | atter.case,.all.maps.are.searche |
| 73a0 | 64 20 69 6e 20 6f 72 64 65 72 20 61 6e 64 20 74 68 65 20 66 69 72 73 74 20 61 63 74 69 6f 6e 20 | d.in.order.and.the.first.action. |
| 73c0 | 74 68 61 74 20 68 61 73 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 69 6e 20 61 6e 79 20 6f | that.has.the.given.name.in.any.o |
| 73e0 | 66 20 74 68 65 20 6d 61 70 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 73 20 72 65 74 75 72 | f.the.maps..........///.is.retur |
| 7400 | 6e 65 64 2e 20 4e 6f 74 65 20 74 68 61 74 20 6e 61 6d 65 20 63 6f 6d 70 61 72 69 73 6f 6e 73 20 | ned..Note.that.name.comparisons. |
| 7420 | 61 72 65 20 63 61 73 65 2d 69 6e 73 65 6e 73 69 74 69 76 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f | are.case-insensitive.........../ |
| 7440 | 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 2c 20 74 | //..........///.Alternatively,.t |
| 7460 | 68 65 20 67 69 76 65 6e 20 73 74 72 69 6e 67 20 63 61 6e 20 62 65 20 61 20 47 55 49 44 20 61 73 | he.given.string.can.be.a.GUID.as |
| 7480 | 20 67 69 76 65 6e 20 62 79 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | .given.by.<see.cref="InputAction |
| 74a0 | 2e 69 64 22 2f 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 | .id"/>.</param>..........///.<pa |
| 74c0 | 72 61 6d 20 6e 61 6d 65 3d 22 74 68 72 6f 77 49 66 4e 6f 74 46 6f 75 6e 64 22 3e 49 66 20 3c 63 | ram.name="throwIfNotFound">If.<c |
| 74e0 | 3e 74 72 75 65 3c 2f 63 3e 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 72 65 74 75 72 6e 69 6e 67 20 | >true</c>,.instead.of.returning. |
| 7500 | 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 77 68 65 6e 20 74 68 65 20 61 63 74 69 6f 6e 0d 0a 20 20 20 | <c>null</c>.when.the.action..... |
| 7520 | 20 20 20 20 20 2f 2f 2f 20 63 61 6e 6e 6f 74 20 62 65 20 66 6f 75 6e 64 2c 20 74 68 72 6f 77 20 | .....///.cannot.be.found,.throw. |
| 7540 | 3c 63 3e 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 3c 2f 63 3e 2e 3c 2f 70 61 72 61 6d | <c>ArgumentException</c>.</param |
| 7560 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 61 63 74 69 | >..........///.<returns>The.acti |
| 7580 | 6f 6e 20 77 69 74 68 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 6e 61 6d 65 20 6f | on.with.the.corresponding.name.o |
| 75a0 | 72 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 69 66 20 6e 6f 20 6d 61 74 63 68 69 6e 67 20 61 63 74 | r.<c>null</c>.if.no.matching.act |
| 75c0 | 69 6f 6e 20 63 6f 75 6c 64 20 62 65 20 66 6f 75 6e 64 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 | ion.could.be.found.</returns>... |
| 75e0 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .......///.<remarks>..........// |
| 7600 | 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d | /.<example>..........///.<code>. |
| 7620 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 73 73 65 74 20 3d 20 53 63 72 69 70 74 61 | .........///.var.asset.=.Scripta |
| 7640 | 62 6c 65 4f 62 6a 65 63 74 2e 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 26 6c 74 3b 49 6e 70 75 | bleObject.CreateInstance<Inpu |
| 7660 | 74 41 63 74 69 6f 6e 41 73 73 65 74 26 67 74 3b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | tActionAsset>();........../// |
| 7680 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 6d 61 70 31 20 3d 20 6e 65 77 20 49 6e 70 | ..........///.var.map1.=.new.Inp |
| 76a0 | 75 74 41 63 74 69 6f 6e 4d 61 70 28 22 6d 61 70 31 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f | utActionMap("map1");..........// |
| 76c0 | 2f 20 76 61 72 20 6d 61 70 32 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 28 | /.var.map2.=.new.InputActionMap( |
| 76e0 | 22 6d 61 70 32 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f | "map2");..........///........../ |
| 7700 | 2f 2f 20 61 73 73 65 74 2e 41 64 64 41 63 74 69 6f 6e 4d 61 70 28 6d 61 70 31 29 3b 0d 0a 20 20 | //.asset.AddActionMap(map1);.... |
| 7720 | 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 41 64 64 41 63 74 69 6f 6e 4d 61 70 28 6d 61 70 | ......///.asset.AddActionMap(map |
| 7740 | 32 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 | 2);..........///..........///.va |
| 7760 | 72 20 61 63 74 69 6f 6e 31 20 3d 20 6d 61 70 31 2e 41 64 64 41 63 74 69 6f 6e 28 22 61 63 74 69 | r.action1.=.map1.AddAction("acti |
| 7780 | 6f 6e 31 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 32 20 | on1");..........///.var.action2. |
| 77a0 | 3d 20 6d 61 70 31 2e 41 64 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 32 22 29 3b 0d 0a 20 20 | =.map1.AddAction("action2");.... |
| 77c0 | 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 61 63 74 69 6f 6e 33 20 3d 20 6d 61 70 32 2e 41 64 64 | ......///.var.action3.=.map2.Add |
| 77e0 | 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 33 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d | Action("action3");..........///. |
| 7800 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 65 61 72 63 68 20 61 6c 6c 20 6d 61 70 73 20 | .........///.//.Search.all.maps. |
| 7820 | 69 6e 20 74 68 65 20 61 73 73 65 74 20 66 6f 72 20 61 6e 79 20 61 63 74 69 6f 6e 20 74 68 61 74 | in.the.asset.for.any.action.that |
| 7840 | 20 68 61 73 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f | .has.the.given.name...........// |
| 7860 | 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 31 22 29 20 2f 2f | /.asset.FindAction("action1").// |
| 7880 | 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 31 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 | .Returns.action1...........///.a |
| 78a0 | 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 32 22 29 20 2f 2f 20 52 65 | sset.FindAction("action2").//.Re |
| 78c0 | 74 75 72 6e 73 20 61 63 74 69 6f 6e 32 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 | turns.action2..........///.asset |
| 78e0 | 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 61 63 74 69 6f 6e 33 22 29 20 2f 2f 20 52 65 74 75 72 6e | .FindAction("action3").//.Return |
| 7900 | 73 20 61 63 74 69 6f 6e 33 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 | s.action3...........///......... |
| 7920 | 20 2f 2f 2f 20 2f 2f 20 53 65 61 72 63 68 20 66 6f 72 20 61 20 73 70 65 63 69 66 69 63 20 61 63 | .///.//.Search.for.a.specific.ac |
| 7940 | 74 69 6f 6e 20 69 6e 20 61 20 73 70 65 63 69 66 69 63 20 6d 61 70 2e 0d 0a 20 20 20 20 20 20 20 | tion.in.a.specific.map.......... |
| 7960 | 20 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 6d 61 70 31 2f 61 63 74 69 | .///.asset.FindAction("map1/acti |
| 7980 | 6f 6e 31 22 29 20 2f 2f 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 31 2e 0d 0a 20 20 20 20 20 | on1").//.Returns.action1........ |
| 79a0 | 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 6d 61 70 32 2f 61 63 | ...///.asset.FindAction("map2/ac |
| 79c0 | 74 69 6f 6e 32 22 29 20 2f 2f 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 32 2e 0d 0a 20 20 20 | tion2").//.Returns.action2...... |
| 79e0 | 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 22 6d 61 70 33 2f | .....///.asset.FindAction("map3/ |
| 7a00 | 61 63 74 69 6f 6e 33 22 29 20 2f 2f 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 33 2e 0d 0a 20 | action3").//.Returns.action3.... |
| 7a20 | 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 53 65 61 72 63 | .......///..........///.//.Searc |
| 7a40 | 68 20 62 79 20 75 6e 69 71 75 65 20 61 63 74 69 6f 6e 20 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 | h.by.unique.action.ID........... |
| 7a60 | 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 61 63 74 69 6f 6e 31 2e 69 64 2e | ///.asset.FindAction(action1.id. |
| 7a80 | 54 6f 53 74 72 69 6e 67 28 29 29 20 2f 2f 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 31 2e 0d | ToString()).//.Returns.action1.. |
| 7aa0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f 6e 28 61 63 | .........///.asset.FindAction(ac |
| 7ac0 | 74 69 6f 6e 32 2e 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 29 20 2f 2f 20 52 65 74 75 72 6e 73 20 | tion2.id.ToString()).//.Returns. |
| 7ae0 | 61 63 74 69 6f 6e 32 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 73 65 74 2e 46 69 6e 64 | action2...........///.asset.Find |
| 7b00 | 41 63 74 69 6f 6e 28 61 63 74 69 6f 6e 33 2e 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 29 20 2f 2f | Action(action3.id.ToString()).// |
| 7b20 | 20 52 65 74 75 72 6e 73 20 61 63 74 69 6f 6e 33 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | .Returns.action3...........///.< |
| 7b40 | 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a | /code>..........///.</example>.. |
| 7b60 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</remarks>.......... |
| 7b80 | 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c | ///.<exception.cref="ArgumentNul |
| 7ba0 | 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 61 63 74 69 | lException"><paramref.name="acti |
| 7bc0 | 6f 6e 4e 61 6d 65 4f 72 49 64 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 | onNameOrId"/>.is.<c>null</c>.</e |
| 7be0 | 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f | xception>..........///.<exceptio |
| 7c00 | 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 22 3e 54 68 72 6f 77 | n.cref="ArgumentException">Throw |
| 7c20 | 6e 20 69 66 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 74 68 72 6f 77 49 66 4e 6f 74 46 | n.if.<paramref.name="throwIfNotF |
| 7c40 | 6f 75 6e 64 22 2f 3e 20 69 73 20 74 72 75 65 20 61 6e 64 20 74 68 65 0d 0a 20 20 20 20 20 20 20 | ound"/>.is.true.and.the......... |
| 7c60 | 20 2f 2f 2f 20 61 63 74 69 6f 6e 20 63 6f 75 6c 64 20 6e 6f 74 20 62 65 20 66 6f 75 6e 64 2e 20 | .///.action.could.not.be.found.. |
| 7c80 | 2d 4f 72 2d 20 49 66 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 61 63 74 69 6f 6e 4e 61 | -Or-.If.<paramref.name="actionNa |
| 7ca0 | 6d 65 4f 72 49 64 22 2f 3e 20 63 6f 6e 74 61 69 6e 73 20 61 20 73 6c 61 73 68 20 62 75 74 20 69 | meOrId"/>.contains.a.slash.but.i |
| 7cc0 | 73 20 6d 69 73 73 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 69 74 68 65 72 20 74 68 | s.missing..........///.either.th |
| 7ce0 | 65 20 61 63 74 69 6f 6e 20 6f 72 20 74 68 65 20 6d 61 70 20 6e 61 6d 65 2e 3c 2f 65 78 63 65 70 | e.action.or.the.map.name.</excep |
| 7d00 | 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f | tion>..........public.InputActio |
| 7d20 | 6e 20 46 69 6e 64 41 63 74 69 6f 6e 28 73 74 72 69 6e 67 20 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 | n.FindAction(string.actionNameOr |
| 7d40 | 49 64 2c 20 62 6f 6f 6c 20 74 68 72 6f 77 49 66 4e 6f 74 46 6f 75 6e 64 20 3d 20 66 61 6c 73 65 | Id,.bool.throwIfNotFound.=.false |
| 7d60 | 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 | )..........{..............if.(ac |
| 7d80 | 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 | tionNameOrId.==.null)........... |
| 7da0 | 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 | .......throw.new.ArgumentNullExc |
| 7dc0 | 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 29 29 3b 0d | eption(nameof(actionNameOrId));. |
| 7de0 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 | ...............if.(m_ActionMaps. |
| 7e00 | 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | !=.null)..............{......... |
| 7e20 | 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 69 66 20 77 65 20 68 61 76 65 20 61 20 22 | .........//.Check.if.we.have.a." |
| 7e40 | 6d 61 70 2f 61 63 74 69 6f 6e 22 20 70 61 74 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | map/action".path................ |
| 7e60 | 20 20 20 76 61 72 20 69 6e 64 65 78 4f 66 53 6c 61 73 68 20 3d 20 61 63 74 69 6f 6e 4e 61 6d 65 | ...var.indexOfSlash.=.actionName |
| 7e80 | 4f 72 49 64 2e 49 6e 64 65 78 4f 66 28 27 2f 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | OrId.IndexOf('/');.............. |
| 7ea0 | 20 20 20 20 69 66 20 28 69 6e 64 65 78 4f 66 53 6c 61 73 68 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 | ....if.(indexOfSlash.==.-1)..... |
| 7ec0 | 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 | .............{.................. |
| 7ee0 | 20 20 20 20 2f 2f 20 4e 6f 20 73 6c 61 73 68 20 73 6f 20 69 74 27 73 20 6a 75 73 74 20 61 20 73 | ....//.No.slash.so.it's.just.a.s |
| 7f00 | 69 6d 70 6c 65 20 61 63 74 69 6f 6e 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | imple.action.name............... |
| 7f20 | 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 41 63 | ........for.(var.i.=.0;.i.<.m_Ac |
| 7f40 | 74 69 6f 6e 4d 61 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 | tionMaps.Length;.++i)........... |
| 7f60 | 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...........{.................... |
| 7f80 | 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 5b | ......var.action.=.m_ActionMaps[ |
| 7fa0 | 69 5d 2e 46 69 6e 64 41 63 74 69 6f 6e 28 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 29 3b 0d 0a | i].FindAction(actionNameOrId);.. |
| 7fc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 63 74 69 | ........................if.(acti |
| 7fe0 | 6f 6e 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | on.!=.null)..................... |
| 8000 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 | .........return.action;......... |
| 8020 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............}.................. |
| 8040 | 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 | }..................else......... |
| 8060 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 8080 | 2f 2f 20 48 61 76 65 20 61 20 70 61 74 68 2e 20 46 69 72 73 74 20 73 65 61 72 63 68 20 66 6f 72 | //.Have.a.path..First.search.for |
| 80a0 | 20 74 68 65 20 6d 61 70 2c 20 74 68 65 6e 20 66 6f 72 20 74 68 65 20 61 63 74 69 6f 6e 2e 0d 0a | .the.map,.then.for.the.action... |
| 80c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 4e 61 6d 65 20 | ....................var.mapName. |
| 80e0 | 3d 20 6e 65 77 20 53 75 62 73 74 72 69 6e 67 28 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 2c 20 | =.new.Substring(actionNameOrId,. |
| 8100 | 30 2c 20 69 6e 64 65 78 4f 66 53 6c 61 73 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | 0,.indexOfSlash);............... |
| 8120 | 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 6e 65 77 20 53 75 62 73 | .......var.actionName.=.new.Subs |
| 8140 | 74 72 69 6e 67 28 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 2c 20 69 6e 64 65 78 4f 66 53 6c 61 | tring(actionNameOrId,.indexOfSla |
| 8160 | 73 68 20 2b 20 31 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | sh.+.1);........................ |
| 8180 | 69 66 20 28 6d 61 70 4e 61 6d 65 2e 69 73 45 6d 70 74 79 20 7c 7c 20 61 63 74 69 6f 6e 4e 61 6d | if.(mapName.isEmpty.||.actionNam |
| 81a0 | 65 2e 69 73 45 6d 70 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | e.isEmpty)...................... |
| 81c0 | 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 | ....throw.new.ArgumentException( |
| 81e0 | 22 4d 61 6c 66 6f 72 6d 65 64 20 61 63 74 69 6f 6e 20 70 61 74 68 3a 20 22 20 2b 20 61 63 74 69 | "Malformed.action.path:.".+.acti |
| 8200 | 6f 6e 4e 61 6d 65 4f 72 49 64 2c 20 6e 61 6d 65 6f 66 28 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 | onNameOrId,.nameof(actionNameOrI |
| 8220 | 64 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 | d));........................for. |
| 8240 | 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 2e 4c 65 6e | (var.i.=.0;.i.<.m_ActionMaps.Len |
| 8260 | 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b | gth;.++i)......................{ |
| 8280 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 | ..........................var.ma |
| 82a0 | 70 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | p.=.m_ActionMaps[i];............ |
| 82c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 53 75 62 73 74 72 69 6e 67 2e 43 6f 6d 70 | ..............if.(Substring.Comp |
| 82e0 | 61 72 65 28 6d 61 70 2e 6e 61 6d 65 2c 20 6d 61 70 4e 61 6d 65 2c 20 53 74 72 69 6e 67 43 6f 6d | are(map.name,.mapName,.StringCom |
| 8300 | 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 | parison.InvariantCultureIgnoreCa |
| 8320 | 73 65 29 20 21 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | se).!=.0)....................... |
| 8340 | 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .......continue;................ |
| 8360 | 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 73 20 3d 20 6d 61 70 2e 6d 5f | ............var.actions.=.map.m_ |
| 8380 | 41 63 74 69 6f 6e 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Actions;........................ |
| 83a0 | 20 20 66 6f 72 20 28 76 61 72 20 6e 20 3d 20 30 3b 20 6e 20 3c 20 61 63 74 69 6f 6e 73 2e 4c 65 | ..for.(var.n.=.0;.n.<.actions.Le |
| 83c0 | 6e 67 74 68 3b 20 2b 2b 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ngth;.++n)...................... |
| 83e0 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....{........................... |
| 8400 | 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 61 63 74 69 6f 6e 73 5b 6e 5d 3b 0d 0a 20 20 20 | ...var.action.=.actions[n];..... |
| 8420 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 53 75 62 | .........................if.(Sub |
| 8440 | 73 74 72 69 6e 67 2e 43 6f 6d 70 61 72 65 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 2c 20 61 63 74 69 | string.Compare(action.name,.acti |
| 8460 | 6f 6e 4e 61 6d 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | onName,......................... |
| 8480 | 20 20 20 20 20 20 20 20 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 | .........StringComparison.Invari |
| 84a0 | 61 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 20 3d 3d 20 30 29 0d 0a 20 20 20 | antCultureIgnoreCase).==.0)..... |
| 84c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 | .............................ret |
| 84e0 | 75 72 6e 20 61 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | urn.action;..................... |
| 8500 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....}.......................... |
| 8520 | 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | ..break;......................}. |
| 8540 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .................}.............. |
| 8560 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 68 72 6f 77 49 66 4e 6f 74 46 | }................if.(throwIfNotF |
| 8580 | 6f 75 6e 64 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 | ound)..................throw.new |
| 85a0 | 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 24 22 4e 6f 20 61 63 74 69 6f 6e 20 27 | .ArgumentException($"No.action.' |
| 85c0 | 7b 61 63 74 69 6f 6e 4e 61 6d 65 4f 72 49 64 7d 27 20 69 6e 20 27 7b 74 68 69 73 7d 27 22 29 3b | {actionNameOrId}'.in.'{this}'"); |
| 85e0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 | ................return.null;.... |
| 8600 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e | ......}............///.<summary> |
| 8620 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 69 6e 64 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d | ..........///.Find.an.<see.cref= |
| 8640 | 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 | "InputActionMap"/>.in.the.asset. |
| 8660 | 62 79 20 69 74 73 20 6e 61 6d 65 20 6f 72 20 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | by.its.name.or.ID...........///. |
| 8680 | 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e | </summary>..........///.<param.n |
| 86a0 | 61 6d 65 3d 22 6e 61 6d 65 4f 72 49 64 22 3e 4e 61 6d 65 20 6f 72 20 49 44 20 28 73 65 65 20 3c | ame="nameOrId">Name.or.ID.(see.< |
| 86c0 | 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 69 64 22 2f 3e 29 20 | see.cref="InputActionMap.id"/>). |
| 86e0 | 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 | of.the.action.map..........///.t |
| 8700 | 6f 20 6c 6f 6f 6b 20 66 6f 72 2e 20 4d 61 74 63 68 69 6e 67 20 69 73 20 63 61 73 65 2d 69 6e 73 | o.look.for..Matching.is.case-ins |
| 8720 | 65 6e 73 69 74 69 76 65 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | ensitive.</param>..........///.< |
| 8740 | 70 61 72 61 6d 20 6e 61 6d 65 3d 22 74 68 72 6f 77 49 66 4e 6f 74 46 6f 75 6e 64 22 3e 49 66 20 | param.name="throwIfNotFound">If. |
| 8760 | 74 72 75 65 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 72 65 74 75 72 6e 69 6e 67 20 3c 63 3e 6e 75 | true,.instead.of.returning.<c>nu |
| 8780 | 6c 6c 3c 2f 63 3e 2c 20 74 68 72 6f 77 20 3c 63 3e 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 | ll</c>,.throw.<c>ArgumentExcepti |
| 87a0 | 6f 6e 3c 2f 63 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 | on</c>.</param>..........///.<re |
| 87c0 | 74 75 72 6e 73 3e 54 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e | turns>The.<see.cref="InputAction |
| 87e0 | 4d 61 70 22 2f 3e 20 77 69 74 68 20 61 20 6e 61 6d 65 20 6f 72 20 49 44 20 6d 61 74 63 68 69 6e | Map"/>.with.a.name.or.ID.matchin |
| 8800 | 67 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6e 61 6d 65 4f 72 49 64 22 2f 3e 20 6f 72 | g.<paramref.name="nameOrId"/>.or |
| 8820 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 20 69 66 20 6e 6f 20 | ..........///.<c>null</c>.if.no. |
| 8840 | 6d 61 74 63 68 69 6e 67 20 6d 61 70 20 63 6f 75 6c 64 20 62 65 20 66 6f 75 6e 64 2e 3c 2f 72 65 | matching.map.could.be.found.</re |
| 8860 | 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 | turns>..........///.<exception.c |
| 8880 | 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 | ref="ArgumentNullException"><par |
| 88a0 | 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6e 61 6d 65 4f 72 49 64 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 | amref.name="nameOrId"/>.is.<c>nu |
| 88c0 | 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ll</c>.</exception>........../// |
| 88e0 | 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 | .<exception.cref="ArgumentExcept |
| 8900 | 69 6f 6e 22 3e 49 66 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 74 68 72 6f 77 49 66 4e | ion">If.<paramref.name="throwIfN |
| 8920 | 6f 74 46 6f 75 6e 64 22 2f 3e 20 69 73 20 3c 63 3e 74 72 75 65 3c 2f 63 3e 2c 20 74 68 72 6f 77 | otFound"/>.is.<c>true</c>,.throw |
| 8940 | 6e 20 69 66 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 20 6d 61 70 | n.if..........///.the.action.map |
| 8960 | 20 63 61 6e 6e 6f 74 20 62 65 20 66 6f 75 6e 64 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 | .cannot.be.found.</exception>... |
| 8980 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 61 63 74 69 6f 6e | .......///.<seealso.cref="action |
| 89a0 | 4d 61 70 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 | Maps"/>..........///.<seealso.cr |
| 89c0 | 65 66 3d 22 46 69 6e 64 41 63 74 69 6f 6e 4d 61 70 28 53 79 73 74 65 6d 2e 47 75 69 64 29 22 2f | ef="FindActionMap(System.Guid)"/ |
| 89e0 | 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 | >..........public.InputActionMap |
| 8a00 | 20 46 69 6e 64 41 63 74 69 6f 6e 4d 61 70 28 73 74 72 69 6e 67 20 6e 61 6d 65 4f 72 49 64 2c 20 | .FindActionMap(string.nameOrId,. |
| 8a20 | 62 6f 6f 6c 20 74 68 72 6f 77 49 66 4e 6f 74 46 6f 75 6e 64 20 3d 20 66 61 6c 73 65 29 0d 0a 20 | bool.throwIfNotFound.=.false)... |
| 8a40 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 61 6d 65 4f 72 | .......{..............if.(nameOr |
| 8a60 | 49 64 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 | Id.==.null)..................thr |
| 8a80 | 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d | ow.new.ArgumentNullException(nam |
| 8aa0 | 65 6f 66 28 6e 61 6d 65 4f 72 49 64 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 | eof(nameOrId));................i |
| 8ac0 | 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 | f.(m_ActionMaps.==.null)........ |
| 8ae0 | 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 | ..........return.null;.......... |
| 8b00 | 20 20 20 20 20 20 2f 2f 20 49 66 20 74 68 65 20 6e 61 6d 65 20 63 6f 6e 74 61 69 6e 73 20 61 20 | ......//.If.the.name.contains.a. |
| 8b20 | 68 79 70 68 65 6e 2c 20 69 74 20 6d 61 79 20 62 65 20 61 20 47 55 49 44 2e 0d 0a 20 20 20 20 20 | hyphen,.it.may.be.a.GUID........ |
| 8b40 | 20 20 20 20 20 20 20 69 66 20 28 6e 61 6d 65 4f 72 49 64 2e 43 6f 6e 74 61 69 6e 73 28 27 2d 27 | .......if.(nameOrId.Contains('-' |
| 8b60 | 29 20 26 26 20 47 75 69 64 2e 54 72 79 50 61 72 73 65 28 6e 61 6d 65 4f 72 49 64 2c 20 6f 75 74 | ).&&.Guid.TryParse(nameOrId,.out |
| 8b80 | 20 76 61 72 20 69 64 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | .var.id))..............{........ |
| 8ba0 | 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f | ..........for.(var.i.=.0;.i.<.m_ |
| 8bc0 | 41 63 74 69 6f 6e 4d 61 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 | ActionMaps.Length;.++i)......... |
| 8be0 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 8c00 | 76 61 72 20 6d 61 70 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 5b 69 5d 3b 0d 0a 20 20 20 20 | var.map.=.m_ActionMaps[i];...... |
| 8c20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 70 2e 69 64 44 6f 6e 74 47 65 | ................if.(map.idDontGe |
| 8c40 | 6e 65 72 61 74 65 20 3d 3d 20 69 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nerate.==.id)................... |
| 8c60 | 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .......return.map;.............. |
| 8c80 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ....}..............}............ |
| 8ca0 | 20 20 20 20 2f 2f 20 44 65 66 61 75 6c 74 20 6c 6f 6f 6b 75 70 20 69 73 20 62 79 20 6e 61 6d 65 | ....//.Default.lookup.is.by.name |
| 8cc0 | 20 28 63 61 73 65 2d 69 6e 73 65 6e 73 69 74 69 76 65 29 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | .(case-insensitive)............. |
| 8ce0 | 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 41 63 74 69 6f 6e 4d 61 | ..for.(var.i.=.0;.i.<.m_ActionMa |
| 8d00 | 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | ps.Length;.++i)..............{.. |
| 8d20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 20 3d 20 6d 5f 41 63 74 69 | ................var.map.=.m_Acti |
| 8d40 | 6f 6e 4d 61 70 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | onMaps[i];..................if.( |
| 8d60 | 73 74 72 69 6e 67 2e 43 6f 6d 70 61 72 65 28 6e 61 6d 65 4f 72 49 64 2c 20 6d 61 70 2e 6e 61 6d | string.Compare(nameOrId,.map.nam |
| 8d80 | 65 2c 20 53 74 72 69 6e 67 43 6f 6d 70 61 72 69 73 6f 6e 2e 49 6e 76 61 72 69 61 6e 74 43 75 6c | e,.StringComparison.InvariantCul |
| 8da0 | 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 | tureIgnoreCase).==.0)........... |
| 8dc0 | 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 70 3b 0d 0a 20 20 20 20 20 20 20 20 | ...........return.map;.......... |
| 8de0 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 68 72 6f 77 49 66 | ....}................if.(throwIf |
| 8e00 | 4e 6f 74 46 6f 75 6e 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 | NotFound)..................throw |
| 8e20 | 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 24 22 43 61 6e 6e 6f 74 20 | .new.ArgumentException($"Cannot. |
| 8e40 | 66 69 6e 64 20 61 63 74 69 6f 6e 20 6d 61 70 20 27 7b 6e 61 6d 65 4f 72 49 64 7d 27 20 69 6e 20 | find.action.map.'{nameOrId}'.in. |
| 8e60 | 27 7b 74 68 69 73 7d 27 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 | '{this}'");................retur |
| 8e80 | 6e 20 6e 75 6c 6c 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.null;..........}............// |
| 8ea0 | 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 46 69 6e 64 20 61 6e | /.<summary>..........///.Find.an |
| 8ec0 | 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 69 6e | .<see.cref="InputActionMap"/>.in |
| 8ee0 | 20 74 68 65 20 61 73 73 65 74 20 62 79 20 69 74 73 20 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 2f | .the.asset.by.its.ID.........../ |
| 8f00 | 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 | //.</summary>..........///.<para |
| 8f20 | 6d 20 6e 61 6d 65 3d 22 69 64 22 3e 49 44 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 | m.name="id">ID.(see.<see.cref="I |
| 8f40 | 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 69 64 22 2f 3e 29 20 6f 66 20 74 68 65 20 61 63 74 69 | nputActionMap.id"/>).of.the.acti |
| 8f60 | 6f 6e 20 6d 61 70 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 74 6f 20 6c 6f 6f 6b 20 66 6f 72 2e | on.map..........///.to.look.for. |
| 8f80 | 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 | </param>..........///.<returns>T |
| 8fa0 | 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 20 | he.<see.cref="InputActionMap"/>. |
| 8fc0 | 77 69 74 68 20 49 44 20 6d 61 74 63 68 69 6e 67 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d | with.ID.matching.<paramref.name= |
| 8fe0 | 22 69 64 22 2f 3e 20 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 3e 6e 75 6c 6c 3c 2f | "id"/>.or..........///.<c>null</ |
| 9000 | 63 3e 20 69 66 20 6e 6f 20 6d 61 70 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 68 61 73 20 74 68 | c>.if.no.map.in.the.asset.has.th |
| 9020 | 65 20 67 69 76 65 6e 20 49 44 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | e.given.ID.</returns>........../ |
| 9040 | 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 73 22 2f 3e 0d | //.<seealso.cref="actionMaps"/>. |
| 9060 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 46 69 6e 64 | .........///.<seealso.cref="Find |
| 9080 | 41 63 74 69 6f 6e 4d 61 70 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 | ActionMap"/>..........public.Inp |
| 90a0 | 75 74 41 63 74 69 6f 6e 4d 61 70 20 46 69 6e 64 41 63 74 69 6f 6e 4d 61 70 28 47 75 69 64 20 69 | utActionMap.FindActionMap(Guid.i |
| 90c0 | 64 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d | d)..........{..............if.(m |
| 90e0 | 5f 41 63 74 69 6f 6e 4d 61 70 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | _ActionMaps.==.null)............ |
| 9100 | 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | ......return.null;.............. |
| 9120 | 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 41 63 74 69 6f 6e 4d 61 | ..for.(var.i.=.0;.i.<.m_ActionMa |
| 9140 | 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | ps.Length;.++i)..............{.. |
| 9160 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 20 3d 20 6d 5f 41 63 74 69 | ................var.map.=.m_Acti |
| 9180 | 6f 6e 4d 61 70 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | onMaps[i];..................if.( |
| 91a0 | 6d 61 70 2e 69 64 44 6f 6e 74 47 65 6e 65 72 61 74 65 20 3d 3d 20 69 64 29 0d 0a 20 20 20 20 20 | map.idDontGenerate.==.id)....... |
| 91c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 70 3b 0d 0a 20 20 20 20 | ...............return.map;...... |
| 91e0 | 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 72 6e 20 | ........}................return. |
| 9200 | 6e 75 6c 6c 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 | null;..........}............///. |
| 9220 | 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 69 6e 64 20 61 6e 20 61 | <summary>..........///.Find.an.a |
| 9240 | 63 74 69 6f 6e 20 62 79 20 69 74 73 20 49 44 20 28 73 65 65 20 3c 73 65 65 20 63 72 65 66 3d 22 | ction.by.its.ID.(see.<see.cref=" |
| 9260 | 49 6e 70 75 74 41 63 74 69 6f 6e 2e 69 64 22 2f 3e 29 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | InputAction.id"/>).........../// |
| 9280 | 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 | .</summary>..........///.<param. |
| 92a0 | 6e 61 6d 65 3d 22 67 75 69 64 22 3e 49 44 20 6f 66 20 74 68 65 20 61 63 74 69 6f 6e 20 74 6f 20 | name="guid">ID.of.the.action.to. |
| 92c0 | 6c 6f 6f 6b 20 66 6f 72 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | look.for.</param>..........///.< |
| 92e0 | 72 65 74 75 72 6e 73 3e 54 68 65 20 61 63 74 69 6f 6e 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 | returns>The.action.in.the.asset. |
| 9300 | 77 69 74 68 20 74 68 65 20 67 69 76 65 6e 20 49 44 20 6f 72 20 6e 75 6c 6c 20 69 66 20 6e 6f 20 | with.the.given.ID.or.null.if.no. |
| 9320 | 61 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e 20 74 68 65 20 61 73 73 65 74 | action..........///.in.the.asset |
| 9340 | 20 68 61 73 20 74 68 65 20 67 69 76 65 6e 20 49 44 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 | .has.the.given.ID.</returns>.... |
| 9360 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 46 69 6e 64 41 63 74 | ......public.InputAction.FindAct |
| 9380 | 69 6f 6e 28 47 75 69 64 20 67 75 69 64 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | ion(Guid.guid)..........{....... |
| 93a0 | 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 3d 3d 20 6e 75 6c 6c 29 | .......if.(m_ActionMaps.==.null) |
| 93c0 | 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 75 6c 6c 3b 0d 0a | ..................return.null;.. |
| 93e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 | ..............for.(var.i.=.0;.i. |
| 9400 | 3c 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 | <.m_ActionMaps.Length;.++i)..... |
| 9420 | 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. |
| 9440 | 6d 61 70 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 5b 69 5d 3b 0d 0a 20 20 20 20 20 20 20 20 | map.=.m_ActionMaps[i];.......... |
| 9460 | 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 20 3d 20 6d 61 70 2e 46 69 6e 64 41 63 74 | ........var.action.=.map.FindAct |
| 9480 | 69 6f 6e 28 67 75 69 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | ion(guid);..................if.( |
| 94a0 | 61 63 74 69 6f 6e 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | action.!=.null)................. |
| 94c0 | 20 20 20 20 20 72 65 74 75 72 6e 20 61 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .....return.action;............. |
| 94e0 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a | .}................return.null;.. |
| 9500 | 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 73 75 6d 6d 61 72 | ........}............///.<summar |
| 9520 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 69 6e 64 20 74 68 65 20 63 6f 6e 74 72 6f 6c | y>..........///.Find.the.control |
| 9540 | 20 73 63 68 65 6d 65 20 77 69 74 68 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 61 6e 64 20 | .scheme.with.the.given.name.and. |
| 9560 | 72 65 74 75 72 6e 20 69 74 73 20 69 6e 64 65 78 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 69 6e | return.its.index..........///.in |
| 9580 | 20 3c 73 65 65 20 63 72 65 66 3d 22 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 22 2f 3e 2e 0d 0a | .<see.cref="controlSchemes"/>... |
| 95a0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | ........///.</summary>.......... |
| 95c0 | 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 61 6d 65 22 3e 4e 61 6d 65 20 6f 66 20 74 | ///.<param.name="name">Name.of.t |
| 95e0 | 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 20 4d 61 74 63 68 69 6e 67 20 69 73 20 63 | he.control.scheme..Matching.is.c |
| 9600 | 61 73 65 2d 69 6e 73 65 6e 73 69 74 69 76 65 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 | ase-insensitive.</param>........ |
| 9620 | 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 69 6e 64 65 78 20 6f 66 20 74 68 65 20 | ..///.<returns>The.index.of.the. |
| 9640 | 67 69 76 65 6e 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 6f 72 20 2d 31 20 69 66 20 6e 6f | given.control.scheme.or.-1.if.no |
| 9660 | 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 74 | .control.scheme..........///.wit |
| 9680 | 68 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 63 6f 75 6c 64 20 62 65 20 66 6f 75 6e 64 2e | h.the.given.name.could.be.found. |
| 96a0 | 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 | </returns>..........///.<excepti |
| 96c0 | 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e | on.cref="ArgumentNullException"> |
| 96e0 | 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6e 61 6d 65 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 | <paramref.name="name"/>.is.<c>nu |
| 9700 | 6c 6c 3c 2f 63 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 65 6d 70 74 79 2e 3c 2f 65 | ll</c>..........///.or.empty.</e |
| 9720 | 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 46 69 | xception>..........public.int.Fi |
| 9740 | 6e 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 28 73 74 72 69 6e 67 20 6e 61 6d 65 | ndControlSchemeIndex(string.name |
| 9760 | 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 | )..........{..............if.(st |
| 9780 | 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6e 61 6d 65 29 29 0d 0a 20 20 20 20 20 | ring.IsNullOrEmpty(name))....... |
| 97a0 | 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c | ...........throw.new.ArgumentNul |
| 97c0 | 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 6e 61 6d 65 29 29 3b 0d 0a 0d 0a 20 20 20 | lException(nameof(name));....... |
| 97e0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 20 3d 3d | .........if.(m_ControlSchemes.== |
| 9800 | 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 2d | .null)..................return.- |
| 9820 | 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 | 1;................for.(var.i.=.0 |
| 9840 | 3b 20 69 20 3c 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 2e 4c 65 6e 67 74 68 3b 20 2b | ;.i.<.m_ControlSchemes.Length;.+ |
| 9860 | 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e | +i)..................if.(string. |
| 9880 | 43 6f 6d 70 61 72 65 28 6e 61 6d 65 2c 20 6d 5f 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 69 | Compare(name,.m_ControlSchemes[i |
| 98a0 | 5d 2e 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 76 61 72 69 61 | ].name,.StringComparison.Invaria |
| 98c0 | 6e 74 43 75 6c 74 75 72 65 49 67 6e 6f 72 65 43 61 73 65 29 20 3d 3d 20 30 29 0d 0a 20 20 20 20 | ntCultureIgnoreCase).==.0)...... |
| 98e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 3b 0d 0a 0d 0a 20 20 20 | ................return.i;....... |
| 9900 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a | .........return.-1;..........}.. |
| 9920 | 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 | ..........///.<summary>......... |
| 9940 | 20 2f 2f 2f 20 46 69 6e 64 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 20 77 69 74 | .///.Find.the.control.scheme.wit |
| 9960 | 68 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 61 6e 64 20 72 65 74 75 72 6e 20 69 74 2e 0d | h.the.given.name.and.return.it.. |
| 9980 | 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 20 | .........///.</summary>......... |
| 99a0 | 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6e 61 6d 65 22 3e 4e 61 6d 65 20 6f 66 20 | .///.<param.name="name">Name.of. |
| 99c0 | 74 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 6d 65 2e 20 4d 61 74 63 68 69 6e 67 20 69 73 20 | the.control.scheme..Matching.is. |
| 99e0 | 63 61 73 65 2d 69 6e 73 65 6e 73 69 74 69 76 65 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 | case-insensitive.</param>....... |
| 9a00 | 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 68 65 20 63 6f 6e 74 72 6f 6c 20 73 63 68 65 | ...///.<returns>The.control.sche |
| 9a20 | 6d 65 20 77 69 74 68 20 74 68 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 6f 72 20 6e 75 6c 6c 20 69 | me.with.the.given.name.or.null.i |
| 9a40 | 66 20 6e 6f 20 73 63 68 65 6d 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 77 69 74 68 20 74 68 | f.no.scheme..........///.with.th |
| 9a60 | 65 20 67 69 76 65 6e 20 6e 61 6d 65 20 63 6f 75 6c 64 20 62 65 20 66 6f 75 6e 64 20 69 6e 20 74 | e.given.name.could.be.found.in.t |
| 9a80 | 68 65 20 61 73 73 65 74 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | he.asset.</returns>........../// |
| 9aa0 | 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 | .<exception.cref="ArgumentNullEx |
| 9ac0 | 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6e 61 6d 65 22 2f 3e | ception"><paramref.name="name"/> |
| 9ae0 | 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 | .is.<c>null</c>..........///.or. |
| 9b00 | 65 6d 70 74 79 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c | empty.</exception>..........publ |
| 9b20 | 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3f 20 46 69 6e 64 43 6f 6e 74 72 | ic.InputControlScheme?.FindContr |
| 9b40 | 6f 6c 53 63 68 65 6d 65 28 73 74 72 69 6e 67 20 6e 61 6d 65 29 0d 0a 20 20 20 20 20 20 20 20 7b | olScheme(string.name)..........{ |
| 9b60 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f | ..............if.(string.IsNullO |
| 9b80 | 72 45 6d 70 74 79 28 6e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 | rEmpty(name))..................t |
| 9ba0 | 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e | hrow.new.ArgumentNullException(n |
| 9bc0 | 61 6d 65 6f 66 28 6e 61 6d 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 | ameof(name));................var |
| 9be0 | 20 69 6e 64 65 78 20 3d 20 46 69 6e 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 78 28 | .index.=.FindControlSchemeIndex( |
| 9c00 | 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3d 3d | name);..............if.(index.== |
| 9c20 | 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c | .-1)..................return.nul |
| 9c40 | 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 43 6f 6e 74 72 | l;................return.m_Contr |
| 9c60 | 6f 6c 53 63 68 65 6d 65 73 5b 69 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | olSchemes[index];..........}.... |
| 9c80 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<summary>........../ |
| 9ca0 | 2f 2f 20 45 6e 61 62 6c 65 20 61 6c 6c 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 69 6e 20 74 68 65 | //.Enable.all.action.maps.in.the |
| 9cc0 | 20 61 73 73 65 74 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 | .asset...........///.</summary>. |
| 9ce0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 | .........///.<remarks>.......... |
| 9d00 | 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f | ///.This.method.is.equivalent.to |
| 9d20 | 20 63 61 6c 6c 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d | .calling.<see.cref="InputActionM |
| 9d40 | 61 70 2e 45 6e 61 62 6c 65 22 2f 3e 20 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6c 6c | ap.Enable"/>.on..........///.all |
| 9d60 | 20 6d 61 70 73 20 69 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 73 22 2f | .maps.in.<see.cref="actionMaps"/ |
| 9d80 | 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | >...........///.</remarks>...... |
| 9da0 | 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 45 6e 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 | ....public.void.Enable()........ |
| 9dc0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 6d 61 | ..{..............foreach.(var.ma |
| 9de0 | 70 20 69 6e 20 61 63 74 69 6f 6e 4d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | p.in.actionMaps)................ |
| 9e00 | 20 20 6d 61 70 2e 45 6e 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 | ..map.Enable();..........}...... |
| 9e20 | 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>........../// |
| 9e40 | 20 44 69 73 61 62 6c 65 20 61 6c 6c 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 69 6e 20 74 68 65 20 | .Disable.all.action.maps.in.the. |
| 9e60 | 61 73 73 65 74 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 | asset...........///.</summary>.. |
| 9e80 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<remarks>........../ |
| 9ea0 | 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 | //.This.method.is.equivalent.to. |
| 9ec0 | 63 61 6c 6c 69 6e 67 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 | calling.<see.cref="InputActionMa |
| 9ee0 | 70 2e 44 69 73 61 62 6c 65 22 2f 3e 20 6f 6e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6c 6c | p.Disable"/>.on..........///.all |
| 9f00 | 20 6d 61 70 73 20 69 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d 61 70 73 22 2f | .maps.in.<see.cref="actionMaps"/ |
| 9f20 | 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 | >...........///.</remarks>...... |
| 9f40 | 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 | ....public.void.Disable()....... |
| 9f60 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 6d | ...{..............foreach.(var.m |
| 9f80 | 61 70 20 69 6e 20 61 63 74 69 6f 6e 4d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ap.in.actionMaps)............... |
| 9fa0 | 20 20 20 6d 61 70 2e 44 69 73 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ...map.Disable();..........}.... |
| 9fc0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f | ........///.<summary>........../ |
| 9fe0 | 2f 2f 20 52 65 74 75 72 6e 20 3c 63 3e 74 72 75 65 3c 2f 63 3e 20 69 66 20 74 68 65 20 67 69 76 | //.Return.<c>true</c>.if.the.giv |
| a000 | 65 6e 20 61 63 74 69 6f 6e 20 69 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 61 73 73 65 74 2e 0d | en.action.is.part.of.the.asset.. |
| a020 | 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 20 | .........///.</summary>......... |
| a040 | 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 61 63 74 69 6f 6e 22 3e 41 6e 20 61 63 74 | .///.<param.name="action">An.act |
| a060 | 69 6f 6e 2e 20 43 61 6e 20 62 65 20 6e 75 6c 6c 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 | ion..Can.be.null.</param>....... |
| a080 | 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 67 69 76 65 | ...///.<returns>True.if.the.give |
| a0a0 | 6e 20 61 63 74 69 6f 6e 20 69 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 61 73 73 65 74 2c 20 66 | n.action.is.part.of.the.asset,.f |
| a0c0 | 61 6c 73 65 20 6f 74 68 65 72 77 69 73 65 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 | alse.otherwise.</returns>....... |
| a0e0 | 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 43 6f 6e 74 61 69 6e 73 28 49 6e 70 75 74 41 63 74 | ...public.bool.Contains(InputAct |
| a100 | 69 6f 6e 20 61 63 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | ion.action)..........{.......... |
| a120 | 20 20 20 20 76 61 72 20 6d 61 70 20 3d 20 61 63 74 69 6f 6e 3f 2e 61 63 74 69 6f 6e 4d 61 70 3b | ....var.map.=.action?.actionMap; |
| a140 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 70 20 3d 3d 20 6e 75 6c 6c 29 0d 0a | ..............if.(map.==.null).. |
| a160 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d | ................return.false;... |
| a180 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 61 70 2e 61 73 73 65 74 20 3d 3d | .............return.map.asset.== |
| a1a0 | 20 74 68 69 73 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 | .this;..........}............/// |
| a1c0 | 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 45 6e 75 6d 65 72 61 74 | .<summary>..........///.Enumerat |
| a1e0 | 65 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 | e.all.actions.in.the.asset...... |
| a200 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | .....///.</summary>........../// |
| a220 | 20 3c 72 65 74 75 72 6e 73 3e 45 6e 75 6d 65 72 61 74 65 20 6f 76 65 72 20 61 6c 6c 20 61 63 74 | .<returns>Enumerate.over.all.act |
| a240 | 69 6f 6e 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 | ions.in.the.asset.</returns>.... |
| a260 | 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f | ......///.<remarks>........../// |
| a280 | 20 41 63 74 69 6f 6e 73 20 77 69 6c 6c 20 62 65 20 65 6e 75 6d 65 72 61 74 65 64 20 6f 6e 65 20 | .Actions.will.be.enumerated.one. |
| a2a0 | 61 63 74 69 6f 6e 20 6d 61 70 20 69 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 61 63 74 69 6f 6e 4d | action.map.in.<see.cref="actionM |
| a2c0 | 61 70 73 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 66 74 65 72 20 74 68 65 20 6f 74 | aps"/>..........///.after.the.ot |
| a2e0 | 68 65 72 2e 20 54 68 65 20 61 63 74 69 6f 6e 73 20 66 72 6f 6d 20 65 61 63 68 20 6d 61 70 20 77 | her..The.actions.from.each.map.w |
| a300 | 69 6c 6c 20 62 65 20 79 69 65 6c 64 65 64 20 69 6e 20 74 75 72 6e 2e 0d 0a 20 20 20 20 20 20 20 | ill.be.yielded.in.turn.......... |
| a320 | 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 77 69 | .///..........///.This.method.wi |
| a340 | 6c 6c 20 61 6c 6c 6f 63 61 74 65 20 47 43 20 68 65 61 70 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 | ll.allocate.GC.heap.memory...... |
| a360 | 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 | .....///.</remarks>..........pub |
| a380 | 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 3c 49 6e 70 75 74 41 63 74 69 6f 6e 3e 20 47 65 74 | lic.IEnumerator<InputAction>.Get |
| a3a0 | 45 6e 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | Enumerator()..........{......... |
| a3c0 | 20 20 20 20 20 69 66 20 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a | .....if.(m_ActionMaps.==.null).. |
| a3e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 62 72 65 61 6b 3b 0d 0a 0d 0a | ................yield.break;.... |
| a400 | 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 | ............for.(var.i.=.0;.i.<. |
| a420 | 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 2e 4c 65 6e 67 74 68 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 | m_ActionMaps.Length;.++i)....... |
| a440 | 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 61 63 | .......{..................var.ac |
| a460 | 74 69 6f 6e 73 20 3d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 5b 69 5d 2e 61 63 74 69 6f 6e 73 3b | tions.=.m_ActionMaps[i].actions; |
| a480 | 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 43 6f 75 6e | ..................var.actionCoun |
| a4a0 | 74 20 3d 20 61 63 74 69 6f 6e 73 2e 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | t.=.actions.Count;.............. |
| a4c0 | 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 6e 20 3d 20 30 3b 20 6e 20 3c 20 61 63 74 69 6f 6e | ......for.(var.n.=.0;.n.<.action |
| a4e0 | 43 6f 75 6e 74 3b 20 2b 2b 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Count;.++n)..................... |
| a500 | 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 61 63 74 69 6f 6e 73 5b 6e 5d 3b 0d 0a 20 20 20 20 20 | .yield.return.actions[n];....... |
| a520 | 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 49 | .......}..........}............I |
| a540 | 45 6e 75 6d 65 72 61 74 6f 72 20 49 45 6e 75 6d 65 72 61 62 6c 65 2e 47 65 74 45 6e 75 6d 65 72 | Enumerator.IEnumerable.GetEnumer |
| a560 | 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 | ator()..........{..............r |
| a580 | 65 74 75 72 6e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | eturn.GetEnumerator();.......... |
| a5a0 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 52 65 52 65 73 6f | }............private.void.ReReso |
| a5c0 | 6c 76 65 49 66 4e 65 63 65 73 73 61 72 79 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | lveIfNecessary()..........{..... |
| a5e0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 68 61 72 65 64 53 74 61 74 65 46 6f 72 41 6c 6c | .........if.(m_SharedStateForAll |
| a600 | 4d 61 70 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 | Maps.==.null)..................r |
| a620 | 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 | eturn;................Debug.Asse |
| a640 | 72 74 28 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 41 63 74 | rt(m_ActionMaps.!=.null.&&.m_Act |
| a660 | 69 6f 6e 4d 61 70 73 2e 4c 65 6e 67 74 68 20 3e 20 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ionMaps.Length.>.0);............ |
| a680 | 20 20 2f 2f 20 53 74 61 74 65 20 69 73 20 73 68 61 72 65 20 62 65 74 77 65 65 6e 20 61 6c 6c 20 | ..//.State.is.share.between.all. |
| a6a0 | 61 63 74 69 6f 6e 20 6d 61 70 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 20 52 65 73 6f 6c 76 | action.maps.in.the.asset..Resolv |
| a6c0 | 69 6e 67 20 62 69 6e 64 69 6e 67 73 20 66 6f 72 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 | ing.bindings.for.the............ |
| a6e0 | 20 20 2f 2f 20 66 69 72 73 74 20 6d 61 70 20 77 69 6c 6c 20 72 65 73 6f 6c 76 65 20 74 68 65 6d | ..//.first.map.will.resolve.them |
| a700 | 20 66 6f 72 20 61 6c 6c 20 6d 61 70 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 63 | .for.all.maps...............m_Ac |
| a720 | 74 69 6f 6e 4d 61 70 73 5b 30 5d 2e 4c 61 7a 79 52 65 73 6f 6c 76 65 42 69 6e 64 69 6e 67 73 28 | tionMaps[0].LazyResolveBindings( |
| a740 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 | );..........}............private |
| a760 | 20 76 6f 69 64 20 4f 6e 44 65 73 74 72 6f 79 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | .void.OnDestroy()..........{.... |
| a780 | 20 20 20 20 20 20 20 20 20 20 44 69 73 61 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ..........Disable();............ |
| a7a0 | 20 20 69 66 20 28 6d 5f 53 68 61 72 65 64 53 74 61 74 65 46 6f 72 41 6c 6c 4d 61 70 73 20 21 3d | ..if.(m_SharedStateForAllMaps.!= |
| a7c0 | 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | .null)..............{........... |
| a7e0 | 20 20 20 20 20 20 20 6d 5f 53 68 61 72 65 64 53 74 61 74 65 46 6f 72 41 6c 6c 4d 61 70 73 2e 44 | .......m_SharedStateForAllMaps.D |
| a800 | 69 73 70 6f 73 65 28 29 3b 20 2f 2f 20 57 69 6c 6c 20 63 6c 65 61 6e 20 75 70 20 49 6e 70 75 74 | ispose();.//.Will.clean.up.Input |
| a820 | 41 63 74 69 6f 6e 4d 61 70 20 73 74 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ActionMap.state................. |
| a840 | 20 20 6d 5f 53 68 61 72 65 64 53 74 61 74 65 46 6f 72 41 6c 6c 4d 61 70 73 20 3d 20 6e 75 6c 6c | ..m_SharedStateForAllMaps.=.null |
| a860 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | ;..............}..........}..... |
| a880 | 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 41 70 70 6c 79 42 69 6e 64 69 6e 67 4f 76 65 | .......////TODO:.ApplyBindingOve |
| a8a0 | 72 72 69 64 65 73 2c 20 52 65 6d 6f 76 65 42 69 6e 64 69 6e 67 4f 76 65 72 72 69 64 65 73 2c 20 | rrides,.RemoveBindingOverrides,. |
| a8c0 | 52 65 6d 6f 76 65 41 6c 6c 42 69 6e 64 69 6e 67 4f 76 65 72 72 69 64 65 73 0d 0a 0d 0a 20 20 20 | RemoveAllBindingOverrides....... |
| a8e0 | 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 | .....[SerializeField].internal.I |
| a900 | 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 5b 5d 20 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 3b 0d 0a 20 | nputActionMap[].m_ActionMaps;... |
| a920 | 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 69 6e 74 65 72 6e 61 6c | .......[SerializeField].internal |
| a940 | 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 5b 5d 20 6d 5f 43 6f 6e 74 72 6f 6c 53 | .InputControlScheme[].m_ControlS |
| a960 | 63 68 65 6d 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 6d 61 6b | chemes;............////TODO:.mak |
| a980 | 65 20 74 68 69 73 20 70 65 72 73 69 73 74 65 6e 74 20 61 63 72 6f 73 73 20 64 6f 6d 61 69 6e 20 | e.this.persistent.across.domain. |
| a9a0 | 72 65 6c 6f 61 64 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a | reloads..........///.<summary>.. |
| a9c0 | 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 68 61 72 65 64 20 73 74 61 74 65 20 66 6f 72 20 61 6c 6c | ........///.Shared.state.for.all |
| a9e0 | 20 61 63 74 69 6f 6e 20 6d 61 70 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 | .action.maps.in.the.asset....... |
| aa00 | 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e | ....///.</summary>..........[Non |
| aa20 | 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c 20 49 6e 70 75 74 41 63 74 69 6f 6e | Serialized].internal.InputAction |
| aa40 | 53 74 61 74 65 20 6d 5f 53 68 61 72 65 64 53 74 61 74 65 46 6f 72 41 6c 6c 4d 61 70 73 3b 0d 0a | State.m_SharedStateForAllMaps;.. |
| aa60 | 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 69 6e 74 65 72 6e 61 6c | ........[NonSerialized].internal |
| aa80 | 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 3f 20 6d 5f 42 69 6e 64 69 6e 67 4d 61 73 6b 3b 0d 0a 0d | .InputBinding?.m_BindingMask;... |
| aaa0 | 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 | .........[NonSerialized].private |
| aac0 | 20 69 6e 74 20 6d 5f 44 65 76 69 63 65 73 43 6f 75 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 | .int.m_DevicesCount.=.-1;....... |
| aae0 | 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 | ...[NonSerialized].private.Input |
| ab00 | 44 65 76 69 63 65 5b 5d 20 6d 5f 44 65 76 69 63 65 73 41 72 72 61 79 3b 0d 0a 0d 0a 20 20 20 20 | Device[].m_DevicesArray;........ |
| ab20 | 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 61 62 6c 65 5d 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 | ....[Serializable]..........inte |
| ab40 | 72 6e 61 6c 20 73 74 72 75 63 74 20 57 72 69 74 65 46 69 6c 65 4a 73 6f 6e 0d 0a 20 20 20 20 20 | rnal.struct.WriteFileJson....... |
| ab60 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 | ...{..............public.string. |
| ab80 | 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 | name;..............public.InputA |
| aba0 | 63 74 69 6f 6e 4d 61 70 2e 57 72 69 74 65 4d 61 70 4a 73 6f 6e 5b 5d 20 6d 61 70 73 3b 0d 0a 20 | ctionMap.WriteMapJson[].maps;... |
| abc0 | 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 | ...........public.InputControlSc |
| abe0 | 68 65 6d 65 2e 53 63 68 65 6d 65 4a 73 6f 6e 5b 5d 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 | heme.SchemeJson[].controlSchemes |
| ac00 | 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 | ;..........}............[Seriali |
| ac20 | 7a 61 62 6c 65 5d 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 72 75 63 74 20 | zable]..........internal.struct. |
| ac40 | 52 65 61 64 46 69 6c 65 4a 73 6f 6e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ReadFileJson..........{......... |
| ac60 | 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 | .....public.string.name;........ |
| ac80 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 52 65 61 64 | ......public.InputActionMap.Read |
| aca0 | 4d 61 70 4a 73 6f 6e 5b 5d 20 6d 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 | MapJson[].maps;..............pub |
| acc0 | 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 53 63 68 65 6d 65 4a 73 6f | lic.InputControlScheme.SchemeJso |
| ace0 | 6e 5b 5d 20 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | n[].controlSchemes;............. |
| ad00 | 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 54 6f 41 73 73 65 74 28 49 6e 70 75 74 41 63 74 69 | ...public.void.ToAsset(InputActi |
| ad20 | 6f 6e 41 73 73 65 74 20 61 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | onAsset.asset)..............{... |
| ad40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 2e 6e 61 6d 65 20 3d 20 6e 61 6d 65 | ...............asset.name.=.name |
| ad60 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 2e 6d 5f 41 63 74 69 6f | ;..................asset.m_Actio |
| ad80 | 6e 4d 61 70 73 20 3d 20 6e 65 77 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 2e 52 65 61 64 46 | nMaps.=.new.InputActionMap.ReadF |
| ada0 | 69 6c 65 4a 73 6f 6e 20 7b 6d 61 70 73 20 3d 20 6d 61 70 73 7d 2e 54 6f 4d 61 70 73 28 29 3b 0d | ileJson.{maps.=.maps}.ToMaps();. |
| adc0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 2e 6d 5f 43 6f 6e 74 72 6f 6c | .................asset.m_Control |
| ade0 | 53 63 68 65 6d 65 73 20 3d 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 2e 53 63 68 | Schemes.=.InputControlScheme.Sch |
| ae00 | 65 6d 65 4a 73 6f 6e 2e 54 6f 53 63 68 65 6d 65 73 28 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 | emeJson.ToSchemes(controlSchemes |
| ae20 | 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 69 6e 6b 20 6d 61 | );....................//.Link.ma |
| ae40 | 70 73 20 74 6f 20 74 68 65 69 72 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ps.to.their.asset............... |
| ae60 | 20 20 20 20 69 66 20 28 61 73 73 65 74 2e 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 20 21 3d 20 6e 75 | ....if.(asset.m_ActionMaps.!=.nu |
| ae80 | 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 | ll)......................foreach |
| aea0 | 20 28 76 61 72 20 6d 61 70 20 69 6e 20 61 73 73 65 74 2e 6d 5f 41 63 74 69 6f 6e 4d 61 70 73 29 | .(var.map.in.asset.m_ActionMaps) |
| aec0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 70 2e 6d 5f | ..........................map.m_ |
| aee0 | 41 73 73 65 74 20 3d 20 61 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | Asset.=.asset;..............}... |
| af00 | 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 | .......}......}..}.............. |
| af20 | 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 17 00 00 00 | ............InputActionAsset.... |
| af40 | 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 00 | UnityEngine.InputSystem. |