| ofs | hex dump | ascii |
|---|
| 0000 | 00 00 0f 81 00 00 38 c4 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe | ......8.............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 | 64 28 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 | d(.............................. |
| 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 13 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 49 6d 70 6f 72 74 65 72 00 | ............InputActionImporter. |
| 10a0 | cf 27 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 69 6e 67 20 53 79 73 74 | .'..#if.UNITY_EDITOR..using.Syst |
| 10c0 | 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0d 0a 75 73 69 6e 67 20 53 79 73 | em;..using.System.IO;..using.Sys |
| 10e0 | 74 65 6d 2e 4c 69 6e 71 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 | tem.Linq;..using.UnityEditor;..u |
| 1100 | 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 45 78 70 65 72 69 6d 65 6e 74 61 6c 2e 41 73 | sing.UnityEditor.Experimental.As |
| 1120 | 73 65 74 49 6d 70 6f 72 74 65 72 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 | setImporters;..using.UnityEngine |
| 1140 | 2e 49 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 46 | .InputSystem.Utilities;....////F |
| 1160 | 49 58 4d 45 3a 20 54 68 65 20 69 6d 70 6f 72 74 65 72 20 61 63 63 65 73 73 65 73 20 69 63 6f 6e | IXME:.The.importer.accesses.icon |
| 1180 | 73 20 74 68 72 6f 75 67 68 20 74 68 65 20 61 73 73 65 74 20 64 62 20 28 77 68 69 63 68 20 45 64 | s.through.the.asset.db.(which.Ed |
| 11a0 | 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 4c 6f 61 64 49 63 6f 6e 20 66 61 6c 6c 73 20 62 61 | itorGUIUtility.LoadIcon.falls.ba |
| 11c0 | 63 6b 20 6f 6e 29 20 77 68 69 63 68 20 77 69 6c 6c 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 6e 6f | ck.on).which.will..////.......no |
| 11e0 | 74 20 79 65 74 20 68 61 76 65 20 62 65 65 6e 20 69 6d 70 6f 72 74 65 64 20 77 68 65 6e 20 74 68 | t.yet.have.been.imported.when.th |
| 1200 | 65 20 70 72 6f 6a 65 63 74 20 69 73 20 69 6d 70 6f 72 74 65 64 20 66 72 6f 6d 20 73 63 72 61 74 | e.project.is.imported.from.scrat |
| 1220 | 63 68 3b 20 74 68 69 73 20 72 65 73 75 6c 74 73 20 69 6e 20 65 72 72 6f 72 73 20 69 6e 20 74 68 | ch;.this.results.in.errors.in.th |
| 1240 | 65 20 6c 6f 67 20 61 6e 64 20 69 6e 20 67 65 6e 65 72 69 63 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 | e.log.and.in.generic..////...... |
| 1260 | 20 69 63 6f 6e 73 20 73 68 6f 77 69 6e 67 20 75 70 20 66 6f 72 20 74 68 65 20 61 73 73 65 74 73 | .icons.showing.up.for.the.assets |
| 1280 | 0d 0a 0d 0a 23 70 72 61 67 6d 61 20 77 61 72 6e 69 6e 67 20 64 69 73 61 62 6c 65 20 30 36 34 39 | ....#pragma.warning.disable.0649 |
| 12a0 | 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 | ..namespace.UnityEngine.InputSys |
| 12c0 | 74 65 6d 2e 45 64 69 74 6f 72 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e | tem.Editor..{......///.<summary> |
| 12e0 | 0d 0a 20 20 20 20 2f 2f 2f 20 49 6d 70 6f 72 74 73 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 | ......///.Imports.an.<see.cref=" |
| 1300 | 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 22 2f 3e 20 66 72 6f 6d 20 4a 53 4f 4e 2e 0d 0a | InputActionAsset"/>.from.JSON... |
| 1320 | 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d | ....///.</summary>......///.<rem |
| 1340 | 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 43 61 6e 20 67 65 6e 65 72 61 74 65 20 63 6f 64 65 | arks>......///.Can.generate.code |
| 1360 | 20 77 72 61 70 70 65 72 73 20 66 6f 72 20 74 68 65 20 63 6f 6e 74 61 69 6e 65 64 20 61 63 74 69 | .wrappers.for.the.contained.acti |
| 1380 | 6f 6e 20 73 65 74 73 20 61 73 20 61 20 63 6f 6e 76 65 6e 69 65 6e 63 65 2e 0d 0a 20 20 20 20 2f | on.sets.as.a.convenience......./ |
| 13a0 | 2f 2f 20 57 69 6c 6c 20 6e 6f 74 20 6f 76 65 72 77 72 69 74 65 20 65 78 69 73 74 69 6e 67 20 77 | //.Will.not.overwrite.existing.w |
| 13c0 | 72 61 70 70 65 72 73 20 65 78 63 65 70 74 20 69 66 20 74 68 65 20 67 65 6e 65 72 61 74 65 64 20 | rappers.except.if.the.generated. |
| 13e0 | 63 6f 64 65 20 61 63 74 75 61 6c 6c 79 20 64 69 66 66 65 72 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 | code.actually.differs.......///. |
| 1400 | 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 5b 53 63 72 69 70 74 65 64 49 6d 70 6f 72 74 65 | </remarks>......[ScriptedImporte |
| 1420 | 72 28 6b 56 65 72 73 69 6f 6e 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 45 78 74 | r(kVersion,.InputActionAsset.Ext |
| 1440 | 65 6e 73 69 6f 6e 29 5d 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 63 6c 61 73 73 20 49 6e 70 | ension)]......internal.class.Inp |
| 1460 | 75 74 41 63 74 69 6f 6e 49 6d 70 6f 72 74 65 72 20 3a 20 53 63 72 69 70 74 65 64 49 6d 70 6f 72 | utActionImporter.:.ScriptedImpor |
| 1480 | 74 65 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 | ter......{..........private.cons |
| 14a0 | 74 20 69 6e 74 20 6b 56 65 72 73 69 6f 6e 20 3d 20 31 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | t.int.kVersion.=.11;............ |
| 14c0 | 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 41 63 74 69 6f 6e 49 63 6f 6e | private.const.string.kActionIcon |
| 14e0 | 20 3d 20 22 50 61 63 6b 61 67 65 73 2f 63 6f 6d 2e 75 6e 69 74 79 2e 69 6e 70 75 74 73 79 73 74 | .=."Packages/com.unity.inputsyst |
| 1500 | 65 6d 2f 49 6e 70 75 74 53 79 73 74 65 6d 2f 45 64 69 74 6f 72 2f 49 63 6f 6e 73 2f 49 6e 70 75 | em/InputSystem/Editor/Icons/Inpu |
| 1520 | 74 41 63 74 69 6f 6e 2e 70 6e 67 22 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 | tAction.png";..........private.c |
| 1540 | 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 41 73 73 65 74 49 63 6f 6e 20 3d 20 22 50 61 63 6b 61 67 | onst.string.kAssetIcon.=."Packag |
| 1560 | 65 73 2f 63 6f 6d 2e 75 6e 69 74 79 2e 69 6e 70 75 74 73 79 73 74 65 6d 2f 49 6e 70 75 74 53 79 | es/com.unity.inputsystem/InputSy |
| 1580 | 73 74 65 6d 2f 45 64 69 74 6f 72 2f 49 63 6f 6e 73 2f 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 | stem/Editor/Icons/InputActionAss |
| 15a0 | 65 74 2e 70 6e 67 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 | et.png";............[SerializeFi |
| 15c0 | 65 6c 64 5d 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 47 65 6e 65 72 61 74 65 57 72 61 70 | eld].private.bool.m_GenerateWrap |
| 15e0 | 70 65 72 43 6f 64 65 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c | perCode;..........[SerializeFiel |
| 1600 | 64 5d 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 57 72 61 70 70 65 72 43 6f 64 65 50 | d].private.string.m_WrapperCodeP |
| 1620 | 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 | ath;..........[SerializeField].p |
| 1640 | 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 57 72 61 70 70 65 72 43 6c 61 73 73 4e 61 6d 65 | rivate.string.m_WrapperClassName |
| 1660 | 3b 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 69 76 | ;..........[SerializeField].priv |
| 1680 | 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 57 72 61 70 70 65 72 43 6f 64 65 4e 61 6d 65 73 70 61 63 | ate.string.m_WrapperCodeNamespac |
| 16a0 | 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 49 6e 6c | e;............private.static.Inl |
| 16c0 | 69 6e 65 64 41 72 72 61 79 3c 41 63 74 69 6f 6e 3e 20 73 5f 4f 6e 49 6d 70 6f 72 74 43 61 6c 6c | inedArray<Action>.s_OnImportCall |
| 16e0 | 62 61 63 6b 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 | backs;............public.static. |
| 1700 | 65 76 65 6e 74 20 41 63 74 69 6f 6e 20 6f 6e 49 6d 70 6f 72 74 0d 0a 20 20 20 20 20 20 20 20 7b | event.Action.onImport..........{ |
| 1720 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 20 3d 3e 20 73 5f 4f 6e 49 6d 70 6f 72 74 43 | ..............add.=>.s_OnImportC |
| 1740 | 61 6c 6c 62 61 63 6b 73 2e 41 70 70 65 6e 64 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 | allbacks.Append(value);......... |
| 1760 | 20 20 20 20 20 72 65 6d 6f 76 65 20 3d 3e 20 73 5f 4f 6e 49 6d 70 6f 72 74 43 61 6c 6c 62 61 63 | .....remove.=>.s_OnImportCallbac |
| 1780 | 6b 73 2e 52 65 6d 6f 76 65 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ks.Remove(value);..........}.... |
| 17a0 | 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 49 | ........public.override.void.OnI |
| 17c0 | 6d 70 6f 72 74 41 73 73 65 74 28 41 73 73 65 74 49 6d 70 6f 72 74 43 6f 6e 74 65 78 74 20 63 74 | mportAsset(AssetImportContext.ct |
| 17e0 | 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 | x)..........{..............if.(c |
| 1800 | 74 78 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 | tx.==.null)..................thr |
| 1820 | 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 |
| 1840 | 65 6f 66 28 63 74 78 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 | eof(ctx));................foreac |
| 1860 | 68 20 28 76 61 72 20 63 61 6c 6c 62 61 63 6b 20 69 6e 20 73 5f 4f 6e 49 6d 70 6f 72 74 43 61 6c | h.(var.callback.in.s_OnImportCal |
| 1880 | 6c 62 61 63 6b 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6c 6c 62 61 63 | lbacks)..................callbac |
| 18a0 | 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 | k();................////REVIEW:. |
| 18c0 | 6e 65 65 64 20 74 6f 20 63 68 65 63 6b 20 77 69 74 68 20 76 65 72 73 69 6f 6e 20 63 6f 6e 74 72 | need.to.check.with.version.contr |
| 18e0 | 6f 6c 20 68 65 72 65 3f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 61 64 20 66 69 | ol.here?..............//.Read.fi |
| 1900 | 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 74 65 78 74 3b 0d 0a 20 | le...............string.text;... |
| 1920 | 20 20 20 20 20 20 20 20 20 20 20 74 72 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ...........try..............{... |
| 1940 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 65 78 74 20 3d 20 46 69 6c 65 2e 52 65 61 64 41 | ...............text.=.File.ReadA |
| 1960 | 6c 6c 54 65 78 74 28 63 74 78 2e 61 73 73 65 74 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 | llText(ctx.assetPath);.......... |
| 1980 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28 45 78 63 65 70 74 | ....}..............catch.(Except |
| 19a0 | 69 6f 6e 20 65 78 63 65 70 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ion.exception)..............{... |
| 19c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 74 78 2e 4c 6f 67 49 6d 70 6f 72 74 45 72 72 6f | ...............ctx.LogImportErro |
| 19e0 | 72 28 24 22 43 6f 75 6c 64 20 6e 6f 74 20 72 65 61 64 20 66 69 6c 65 20 27 7b 63 74 78 2e 61 73 | r($"Could.not.read.file.'{ctx.as |
| 1a00 | 73 65 74 50 61 74 68 7d 27 20 28 7b 65 78 63 65 70 74 69 6f 6e 7d 29 22 29 3b 0d 0a 20 20 20 20 | setPath}'.({exception})");...... |
| 1a20 | 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ............return;............. |
| 1a40 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 61 73 73 65 | .}................//.Create.asse |
| 1a60 | 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 53 63 72 69 | t...............var.asset.=.Scri |
| 1a80 | 70 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 3c 49 6e 70 75 | ptableObject.CreateInstance<Inpu |
| 1aa0 | 74 41 63 74 69 6f 6e 41 73 73 65 74 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tActionAsset>();................ |
| 1ac0 | 2f 2f 20 50 61 72 73 65 20 4a 53 4f 4e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 72 79 0d | //.Parse.JSON...............try. |
| 1ae0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............{.................. |
| 1b00 | 2f 2f 2f 2f 54 4f 44 4f 3a 20 6d 61 6b 65 20 73 75 72 65 20 61 63 74 69 6f 6e 20 6e 61 6d 65 73 | ////TODO:.make.sure.action.names |
| 1b20 | 20 61 72 65 20 75 6e 69 71 75 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 | .are.unique..................ass |
| 1b40 | 65 74 2e 4c 6f 61 64 46 72 6f 6d 4a 73 6f 6e 28 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 | et.LoadFromJson(text);.......... |
| 1b60 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28 45 78 63 65 70 74 | ....}..............catch.(Except |
| 1b80 | 69 6f 6e 20 65 78 63 65 70 74 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ion.exception)..............{... |
| 1ba0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 74 78 2e 4c 6f 67 49 6d 70 6f 72 74 45 72 72 6f | ...............ctx.LogImportErro |
| 1bc0 | 72 28 24 22 43 6f 75 6c 64 20 6e 6f 74 20 70 61 72 73 65 20 69 6e 70 75 74 20 61 63 74 69 6f 6e | r($"Could.not.parse.input.action |
| 1be0 | 73 20 69 6e 20 4a 53 4f 4e 20 66 6f 72 6d 61 74 20 66 72 6f 6d 20 27 7b 63 74 78 2e 61 73 73 65 | s.in.JSON.format.from.'{ctx.asse |
| 1c00 | 74 50 61 74 68 7d 27 20 28 7b 65 78 63 65 70 74 69 6f 6e 7d 29 22 29 3b 0d 0a 20 20 20 20 20 20 | tPath}'.({exception})");........ |
| 1c20 | 20 20 20 20 20 20 20 20 20 20 44 65 73 74 72 6f 79 49 6d 6d 65 64 69 61 74 65 28 61 73 73 65 74 | ..........DestroyImmediate(asset |
| 1c40 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 | );..................return;..... |
| 1c60 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 | .........}................//.For |
| 1c80 | 63 65 20 6e 61 6d 65 20 6f 66 20 61 73 73 65 74 20 74 6f 20 62 65 20 74 68 61 74 20 6f 6e 20 74 | ce.name.of.asset.to.be.that.on.t |
| 1ca0 | 68 65 20 66 69 6c 65 20 6f 6e 20 64 69 73 6b 20 69 6e 73 74 65 61 64 20 6f 66 20 77 68 61 74 20 | he.file.on.disk.instead.of.what. |
| 1cc0 | 6d 61 79 20 62 65 20 73 65 72 69 61 6c 69 7a 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | may.be.serialized............../ |
| 1ce0 | 2f 20 61 73 20 74 68 65 20 27 6e 61 6d 65 27 20 70 72 6f 70 65 72 74 79 20 69 6e 20 4a 53 4f 4e | /.as.the.'name'.property.in.JSON |
| 1d00 | 2e 0d 0a 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 50 61 74 68 | ...............asset.name.=.Path |
| 1d20 | 2e 47 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 78 74 65 6e 73 69 6f 6e 28 61 73 73 | .GetFileNameWithoutExtension(ass |
| 1d40 | 65 74 50 61 74 68 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 6f 61 64 20 | etPath);................//.Load. |
| 1d60 | 69 63 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 | icons...............////REVIEW:. |
| 1d80 | 74 68 65 20 69 63 6f 6e 73 20 77 6f 6e 27 74 20 63 68 61 6e 67 65 20 69 66 20 74 68 65 20 75 73 | the.icons.won't.change.if.the.us |
| 1da0 | 65 72 20 63 68 61 6e 67 65 73 20 73 6b 69 6e 3b 20 6e 6f 74 20 73 75 72 65 20 69 74 20 6d 61 6b | er.changes.skin;.not.sure.it.mak |
| 1dc0 | 65 73 20 73 65 6e 73 65 20 74 6f 20 64 69 66 66 65 72 65 6e 74 69 61 74 65 20 68 65 72 65 0d 0a | es.sense.to.differentiate.here.. |
| 1de0 | 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 49 63 6f 6e 20 3d 20 28 54 65 78 | ............var.assetIcon.=.(Tex |
| 1e00 | 74 75 72 65 32 44 29 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 4c 6f 61 64 28 6b 41 73 | ture2D)EditorGUIUtility.Load(kAs |
| 1e20 | 73 65 74 49 63 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f | setIcon);..............var.actio |
| 1e40 | 6e 49 63 6f 6e 20 3d 20 28 54 65 78 74 75 72 65 32 44 29 45 64 69 74 6f 72 47 55 49 55 74 69 6c | nIcon.=.(Texture2D)EditorGUIUtil |
| 1e60 | 69 74 79 2e 4c 6f 61 64 28 6b 41 63 74 69 6f 6e 49 63 6f 6e 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 | ity.Load(kActionIcon);.......... |
| 1e80 | 20 20 20 20 20 20 2f 2f 20 41 64 64 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ......//.Add.asset.............. |
| 1ea0 | 20 63 74 78 2e 41 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 28 22 3c 72 6f 6f 74 3e 22 2c 20 | .ctx.AddObjectToAsset("<root>",. |
| 1ec0 | 61 73 73 65 74 2c 20 61 73 73 65 74 49 63 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | asset,.assetIcon);.............. |
| 1ee0 | 63 74 78 2e 53 65 74 4d 61 69 6e 4f 62 6a 65 63 74 28 61 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 | ctx.SetMainObject(asset);....... |
| 1f00 | 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 61 6c 6c 20 74 68 65 20 65 6c | .........//.Make.sure.all.the.el |
| 1f20 | 65 6d 65 6e 74 73 20 69 6e 20 74 68 65 20 61 73 73 65 74 20 68 61 76 65 20 47 55 49 44 73 20 61 | ements.in.the.asset.have.GUIDs.a |
| 1f40 | 6e 64 20 74 68 61 74 20 74 68 65 79 20 61 72 65 20 69 6e 64 65 65 64 20 75 6e 69 71 75 65 2e 0d | nd.that.they.are.indeed.unique.. |
| 1f60 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 73 20 3d 20 61 73 73 65 74 2e 61 63 | .............var.maps.=.asset.ac |
| 1f80 | 74 69 6f 6e 4d 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 | tionMaps;..............foreach.( |
| 1fa0 | 76 61 72 20 6d 61 70 20 69 6e 20 6d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d | var.map.in.maps)..............{. |
| 1fc0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 61 63 | .................//.Make.sure.ac |
| 1fe0 | 74 69 6f 6e 20 6d 61 70 20 68 61 73 20 47 55 49 44 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tion.map.has.GUID............... |
| 2000 | 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 28 6d 61 70 | ....if.(string.IsNullOrEmpty(map |
| 2020 | 2e 6d 5f 49 64 29 20 7c 7c 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 2e 43 6f 75 6e 74 | .m_Id).||.asset.actionMaps.Count |
| 2040 | 28 78 20 3d 3e 20 78 2e 6d 5f 49 64 20 3d 3d 20 6d 61 70 2e 6d 5f 49 64 29 20 3e 20 31 29 0d 0a | (x.=>.x.m_Id.==.map.m_Id).>.1).. |
| 2060 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 70 2e 47 65 6e 65 72 61 74 65 | ....................map.Generate |
| 2080 | 49 64 28 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 4d 61 6b 65 | Id();....................//.Make |
| 20a0 | 20 73 75 72 65 20 61 6c 6c 20 61 63 74 69 6f 6e 73 20 68 61 76 65 20 47 55 49 44 73 2e 0d 0a 20 | .sure.all.actions.have.GUIDs.... |
| 20c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 | ...............foreach.(var.acti |
| 20e0 | 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | on.in.map.actions).............. |
| 2100 | 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 76 61 72 20 61 | ....{......................var.a |
| 2120 | 63 74 69 6f 6e 49 64 20 3d 20 61 63 74 69 6f 6e 2e 6d 5f 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 | ctionId.=.action.m_Id;.......... |
| 2140 | 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 72 45 | ............if.(string.IsNullOrE |
| 2160 | 6d 70 74 79 28 61 63 74 69 6f 6e 49 64 29 20 7c 7c 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 | mpty(actionId).||.asset.actionMa |
| 2180 | 70 73 2e 53 75 6d 28 6d 20 3d 3e 20 6d 2e 61 63 74 69 6f 6e 73 2e 43 6f 75 6e 74 28 61 20 3d 3e | ps.Sum(m.=>.m.actions.Count(a.=> |
| 21a0 | 20 61 2e 6d 5f 49 64 20 3d 3d 20 61 63 74 69 6f 6e 49 64 29 29 20 3e 20 31 29 0d 0a 20 20 20 20 | .a.m_Id.==.actionId)).>.1)...... |
| 21c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 2e 47 65 6e 65 72 | ....................action.Gener |
| 21e0 | 61 74 65 49 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | ateId();..................}..... |
| 2200 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 61 6c 6c 20 | ...............//.Make.sure.all. |
| 2220 | 62 69 6e 64 69 6e 67 73 20 68 61 76 65 20 47 55 49 44 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | bindings.have.GUIDs............. |
| 2240 | 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 61 70 2e 6d 5f | ......for.(var.i.=.0;.i.<.map.m_ |
| 2260 | 42 69 6e 64 69 6e 67 73 2e 4c 65 6e 67 74 68 53 61 66 65 28 29 3b 20 2b 2b 69 29 0d 0a 20 20 20 | Bindings.LengthSafe();.++i)..... |
| 2280 | 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 | .............{.................. |
| 22a0 | 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 49 64 20 3d 20 6d 61 70 2e 6d 5f 42 69 6e 64 69 6e | ....var.bindingId.=.map.m_Bindin |
| 22c0 | 67 73 5b 69 5d 2e 6d 5f 49 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | gs[i].m_Id;..................... |
| 22e0 | 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 28 62 69 6e 64 69 6e | .if.(string.IsNullOrEmpty(bindin |
| 2300 | 67 49 64 29 20 7c 7c 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 2e 53 75 6d 28 6d 20 3d | gId).||.asset.actionMaps.Sum(m.= |
| 2320 | 3e 20 6d 2e 62 69 6e 64 69 6e 67 73 2e 43 6f 75 6e 74 28 62 20 3d 3e 20 62 2e 6d 5f 49 64 20 3d | >.m.bindings.Count(b.=>.b.m_Id.= |
| 2340 | 3d 20 62 69 6e 64 69 6e 67 49 64 29 29 20 3e 20 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | =.bindingId)).>.1).............. |
| 2360 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 70 2e 6d 5f 42 69 6e 64 69 6e 67 73 5b 69 5d 2e 47 65 | ............map.m_Bindings[i].Ge |
| 2380 | 6e 65 72 61 74 65 49 64 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a | nerateId();..................}.. |
| 23a0 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 | ............}................//. |
| 23c0 | 43 72 65 61 74 65 20 73 75 62 61 73 73 65 74 20 66 6f 72 20 65 61 63 68 20 61 63 74 69 6f 6e 2e | Create.subasset.for.each.action. |
| 23e0 | 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 70 20 69 | ..............foreach.(var.map.i |
| 2400 | 6e 20 6d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | n.maps)..............{.......... |
| 2420 | 20 20 20 20 20 20 20 20 76 61 72 20 68 61 76 65 53 65 74 4e 61 6d 65 20 3d 20 21 73 74 72 69 6e | ........var.haveSetName.=.!strin |
| 2440 | 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 61 70 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 | g.IsNullOrEmpty(map.name);...... |
| 2460 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 6f | ..............foreach.(var.actio |
| 2480 | 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | n.in.map.actions)............... |
| 24a0 | 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 76 61 72 20 61 63 | ...{......................var.ac |
| 24c0 | 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 20 3d 20 53 63 72 69 70 74 61 62 6c 65 4f 62 6a 65 63 74 | tionReference.=.ScriptableObject |
| 24e0 | 2e 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 52 65 66 65 72 | .CreateInstance<InputActionRefer |
| 2500 | 65 6e 63 65 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 | ence>();......................ac |
| 2520 | 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 2e 53 65 74 28 61 63 74 69 6f 6e 29 3b 0d 0a 0d 0a 20 20 | tionReference.Set(action);...... |
| 2540 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 62 6a 65 63 74 4e 61 6d 65 | ..................var.objectName |
| 2560 | 20 3d 20 61 63 74 69 6f 6e 2e 6e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.action.name;................. |
| 2580 | 20 20 20 20 20 69 66 20 28 68 61 76 65 53 65 74 4e 61 6d 65 29 0d 0a 20 20 20 20 20 20 20 20 20 | .....if.(haveSetName)........... |
| 25a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 62 6a 65 63 74 4e 61 6d 65 20 3d 20 24 22 7b 6d | ...............objectName.=.$"{m |
| 25c0 | 61 70 2e 6e 61 6d 65 7d 2f 7b 61 63 74 69 6f 6e 2e 6e 61 6d 65 7d 22 3b 0d 0a 0d 0a 20 20 20 20 | ap.name}/{action.name}";........ |
| 25e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 2e | ................actionReference. |
| 2600 | 6e 61 6d 65 20 3d 20 6f 62 6a 65 63 74 4e 61 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | name.=.objectName;.............. |
| 2620 | 20 20 20 20 20 20 20 20 63 74 78 2e 41 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 28 61 63 74 | ........ctx.AddObjectToAsset(act |
| 2640 | 69 6f 6e 2e 6d 5f 49 64 2c 20 61 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 2c 20 61 63 74 69 6f | ion.m_Id,.actionReference,.actio |
| 2660 | 6e 49 63 6f 6e 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 2f | nIcon);......................../ |
| 2680 | 2f 20 42 61 63 6b 77 61 72 64 73 2d 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 20 28 61 64 64 65 64 | /.Backwards-compatibility.(added |
| 26a0 | 20 66 6f 72 20 31 2e 30 2e 30 2d 70 72 65 76 69 65 77 2e 37 29 2e 0d 0a 20 20 20 20 20 20 20 20 | .for.1.0.0-preview.7)........... |
| 26c0 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 75 73 65 64 20 74 6f 20 63 61 6c 6c 20 41 | ............//.We.used.to.call.A |
| 26e0 | 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 20 75 73 69 6e 67 20 6f 62 6a 65 63 74 4e 61 6d 65 | ddObjectToAsset.using.objectName |
| 2700 | 20 69 6e 73 74 65 61 64 20 6f 66 20 61 63 74 69 6f 6e 2e 6d 5f 49 64 20 61 73 20 74 68 65 20 6f | .instead.of.action.m_Id.as.the.o |
| 2720 | 62 6a 65 63 74 20 6e 61 6d 65 2e 20 54 68 69 73 20 66 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 | bject.name..This.fed............ |
| 2740 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 61 63 74 69 6f 6e 20 6e 61 6d 65 20 28 2a 61 | ..........//.the.action.name.(*a |
| 2760 | 6e 64 2a 20 6d 61 70 20 6e 61 6d 65 29 20 69 6e 74 6f 20 74 68 65 20 68 61 73 68 20 67 65 6e 65 | nd*.map.name).into.the.hash.gene |
| 2780 | 72 61 74 69 6f 6e 20 74 68 61 74 20 77 61 73 20 75 73 65 64 20 61 73 20 74 68 65 20 62 61 73 69 | ration.that.was.used.as.the.basi |
| 27a0 | 73 20 66 6f 72 20 74 68 65 20 66 69 6c 65 20 49 44 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | s.for.the.file.ID............... |
| 27c0 | 20 20 20 20 20 20 20 2f 2f 20 6f 62 6a 65 63 74 20 74 68 65 20 49 6e 70 75 74 41 63 74 69 6f 6e | .......//.object.the.InputAction |
| 27e0 | 52 65 66 65 72 65 6e 63 65 20 6f 62 6a 65 63 74 2e 20 54 68 75 73 2c 20 69 66 20 74 68 65 20 6d | Reference.object..Thus,.if.the.m |
| 2800 | 61 70 20 61 6e 64 2f 6f 72 20 61 63 74 69 6f 6e 20 6e 61 6d 65 20 63 68 61 6e 67 65 64 2c 20 74 | ap.and/or.action.name.changed,.t |
| 2820 | 68 65 20 66 69 6c 65 20 49 44 20 77 6f 75 6c 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | he.file.ID.would................ |
| 2840 | 20 20 20 20 20 20 2f 2f 20 63 68 61 6e 67 65 20 61 6e 64 20 65 78 69 73 74 69 6e 67 20 72 65 66 | ......//.change.and.existing.ref |
| 2860 | 65 72 65 6e 63 65 73 20 74 6f 20 74 68 65 20 49 6e 70 75 74 41 63 74 69 6f 6e 52 65 66 65 72 65 | erences.to.the.InputActionRefere |
| 2880 | 6e 63 65 20 6f 62 6a 65 63 74 20 77 6f 75 6c 64 20 62 65 63 6f 6d 65 20 69 6e 76 61 6c 69 64 2e | nce.object.would.become.invalid. |
| 28a0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 0d 0a 20 20 20 20 20 20 | ......................//........ |
| 28c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 68 61 74 20 77 65 20 64 6f 20 68 65 72 65 | ..............//.What.we.do.here |
| 28e0 | 20 69 73 20 61 64 64 20 61 6e 6f 74 68 65 72 20 2a 68 69 64 64 65 6e 2a 20 49 6e 70 75 74 41 63 | .is.add.another.*hidden*.InputAc |
| 2900 | 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 20 6f 62 6a 65 63 74 20 77 69 74 68 20 74 68 65 20 73 61 | tionReference.object.with.the.sa |
| 2920 | 6d 65 20 63 6f 6e 74 65 6e 74 20 74 6f 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | me.content.to.the............... |
| 2940 | 20 20 20 20 20 20 20 2f 2f 20 61 73 73 65 74 2e 20 54 68 69 73 20 6f 6e 65 20 77 69 6c 6c 20 75 | .......//.asset..This.one.will.u |
| 2960 | 73 65 20 74 68 65 20 6f 6c 64 20 66 69 6c 65 20 49 44 20 61 6e 64 20 74 68 75 73 20 70 72 65 73 | se.the.old.file.ID.and.thus.pres |
| 2980 | 65 72 76 65 20 62 61 63 6b 77 61 72 64 73 2d 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 2e 20 57 65 | erve.backwards-compatibility..We |
| 29a0 | 20 73 68 6f 75 6c 64 20 62 65 20 61 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .should.be.able................. |
| 29c0 | 20 20 20 20 20 2f 2f 20 74 6f 20 72 65 6d 6f 76 65 20 74 68 69 73 20 66 6f 72 20 32 2e 30 2e 0d | .....//.to.remove.this.for.2.0.. |
| 29e0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 0d 0a 20 20 20 20 20 20 20 | .....................//......... |
| 2a00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 61 73 65 3a 20 68 74 74 70 73 3a 2f 2f 66 6f | .............//.Case:.https://fo |
| 2a20 | 67 62 75 67 7a 2e 75 6e 69 74 79 33 64 2e 63 6f 6d 2f 66 2f 63 61 73 65 73 2f 31 32 32 39 31 34 | gbugz.unity3d.com/f/cases/122914 |
| 2a40 | 35 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 61 63 6b | 5/......................var.back |
| 2a60 | 63 6f 6d 70 61 74 41 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 20 3d 20 49 6e 73 74 61 6e 74 69 | compatActionReference.=.Instanti |
| 2a80 | 61 74 65 28 61 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | ate(actionReference);........... |
| 2aa0 | 20 20 20 20 20 20 20 20 20 20 20 62 61 63 6b 63 6f 6d 70 61 74 41 63 74 69 6f 6e 52 65 66 65 72 | ...........backcompatActionRefer |
| 2ac0 | 65 6e 63 65 2e 6e 61 6d 65 20 3d 20 6f 62 6a 65 63 74 4e 61 6d 65 3b 20 2f 2f 20 47 65 74 20 72 | ence.name.=.objectName;.//.Get.r |
| 2ae0 | 69 64 20 6f 66 20 74 68 65 20 28 43 6c 6f 6e 65 29 20 73 75 66 66 69 78 2e 0d 0a 20 20 20 20 20 | id.of.the.(Clone).suffix........ |
| 2b00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 61 63 6b 63 6f 6d 70 61 74 41 63 74 69 6f 6e 52 | ...............backcompatActionR |
| 2b20 | 65 66 65 72 65 6e 63 65 2e 68 69 64 65 46 6c 61 67 73 20 3d 20 48 69 64 65 46 6c 61 67 73 2e 48 | eference.hideFlags.=.HideFlags.H |
| 2b40 | 69 64 65 49 6e 48 69 65 72 61 72 63 68 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ideInHierarchy;................. |
| 2b60 | 20 20 20 20 20 63 74 78 2e 41 64 64 4f 62 6a 65 63 74 54 6f 41 73 73 65 74 28 6f 62 6a 65 63 74 | .....ctx.AddObjectToAsset(object |
| 2b80 | 4e 61 6d 65 2c 20 62 61 63 6b 63 6f 6d 70 61 74 41 63 74 69 6f 6e 52 65 66 65 72 65 6e 63 65 2c | Name,.backcompatActionReference, |
| 2ba0 | 20 61 63 74 69 6f 6e 49 63 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d | .actionIcon);..................} |
| 2bc0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f | ..............}................/ |
| 2be0 | 2f 20 47 65 6e 65 72 61 74 65 20 77 72 61 70 70 65 72 20 63 6f 64 65 2c 20 69 66 20 65 6e 61 62 | /.Generate.wrapper.code,.if.enab |
| 2c00 | 6c 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 47 65 6e 65 72 61 74 65 | led...............if.(m_Generate |
| 2c20 | 57 72 61 70 70 65 72 43 6f 64 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | WrapperCode)..............{..... |
| 2c40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 | .............var.wrapperFilePath |
| 2c60 | 20 3d 20 6d 5f 57 72 61 70 70 65 72 43 6f 64 65 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 | .=.m_WrapperCodePath;........... |
| 2c80 | 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 28 | .......if.(string.IsNullOrEmpty( |
| 2ca0 | 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | wrapperFilePath))............... |
| 2cc0 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 6c 61 | ...{......................//.Pla |
| 2ce0 | 63 65 64 20 6e 65 78 74 20 74 6f 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 66 69 6c 65 2e 0d | ced.next.to..inputactions.file.. |
| 2d00 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 50 61 | .....................var.assetPa |
| 2d20 | 74 68 20 3d 20 63 74 78 2e 61 73 73 65 74 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | th.=.ctx.assetPath;............. |
| 2d40 | 20 20 20 20 20 20 20 20 20 76 61 72 20 64 69 72 65 63 74 6f 72 79 20 3d 20 50 61 74 68 2e 47 65 | .........var.directory.=.Path.Ge |
| 2d60 | 74 44 69 72 65 63 74 6f 72 79 4e 61 6d 65 28 61 73 73 65 74 50 61 74 68 29 3b 0d 0a 20 20 20 20 | tDirectoryName(assetPath);...... |
| 2d80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 66 69 6c 65 4e 61 6d 65 20 3d 20 50 | ................var.fileName.=.P |
| 2da0 | 61 74 68 2e 47 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 78 74 65 6e 73 69 6f 6e 28 | ath.GetFileNameWithoutExtension( |
| 2dc0 | 61 73 73 65 74 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | assetPath);..................... |
| 2de0 | 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 20 3d 20 50 61 74 68 2e 43 6f 6d 62 69 6e 65 28 | .wrapperFilePath.=.Path.Combine( |
| 2e00 | 64 69 72 65 63 74 6f 72 79 2c 20 66 69 6c 65 4e 61 6d 65 29 20 2b 20 22 2e 63 73 22 3b 0d 0a 20 | directory,.fileName).+.".cs";... |
| 2e20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| 2e40 | 20 20 65 6c 73 65 20 69 66 20 28 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 2e 53 74 61 72 74 | ..else.if.(wrapperFilePath.Start |
| 2e60 | 73 57 69 74 68 28 22 2e 2f 22 29 20 7c 7c 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 2e 53 | sWith("./").||.wrapperFilePath.S |
| 2e80 | 74 61 72 74 73 57 69 74 68 28 22 2e 5c 5c 22 29 20 7c 7c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | tartsWith(".\\").||............. |
| 2ea0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 2e 53 74 | ..............wrapperFilePath.St |
| 2ec0 | 61 72 74 73 57 69 74 68 28 22 2e 2e 2f 22 29 20 7c 7c 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 | artsWith("../").||.wrapperFilePa |
| 2ee0 | 74 68 2e 53 74 61 72 74 73 57 69 74 68 28 22 2e 2e 5c 5c 22 29 29 0d 0a 20 20 20 20 20 20 20 20 | th.StartsWith("..\\")).......... |
| 2f00 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f | ........{....................../ |
| 2f20 | 2f 20 55 73 65 72 2d 73 70 65 63 69 66 69 65 64 20 66 69 6c 65 20 72 65 6c 61 74 69 76 65 20 74 | /.User-specified.file.relative.t |
| 2f40 | 6f 20 6c 6f 63 61 74 69 6f 6e 20 6f 66 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 66 69 6c 65 | o.location.of..inputactions.file |
| 2f60 | 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 73 73 65 74 | .......................var.asset |
| 2f80 | 50 61 74 68 20 3d 20 63 74 78 2e 61 73 73 65 74 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 | Path.=.ctx.assetPath;........... |
| 2fa0 | 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 69 72 65 63 74 6f 72 79 20 3d 20 50 61 74 68 2e | ...........var.directory.=.Path. |
| 2fc0 | 47 65 74 44 69 72 65 63 74 6f 72 79 4e 61 6d 65 28 61 73 73 65 74 50 61 74 68 29 3b 0d 0a 20 20 | GetDirectoryName(assetPath);.... |
| 2fe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 | ..................wrapperFilePat |
| 3000 | 68 20 3d 20 50 61 74 68 2e 43 6f 6d 62 69 6e 65 28 64 69 72 65 63 74 6f 72 79 2c 20 77 72 61 70 | h.=.Path.Combine(directory,.wrap |
| 3020 | 70 65 72 46 69 6c 65 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d | perFilePath);..................} |
| 3040 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 21 77 72 61 70 | ..................else.if.(!wrap |
| 3060 | 70 65 72 46 69 6c 65 50 61 74 68 2e 54 6f 4c 6f 77 65 72 28 29 2e 53 74 61 72 74 73 57 69 74 68 | perFilePath.ToLower().StartsWith |
| 3080 | 28 22 61 73 73 65 74 73 2f 22 29 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ("assets/").&&.................. |
| 30a0 | 20 20 20 20 20 20 20 20 20 21 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 2e 54 6f 4c 6f 77 65 | .........!wrapperFilePath.ToLowe |
| 30c0 | 72 28 29 2e 53 74 61 72 74 73 57 69 74 68 28 22 61 73 73 65 74 73 5c 5c 22 29 29 0d 0a 20 20 20 | r().StartsWith("assets\\"))..... |
| 30e0 | 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 | .............{.................. |
| 3100 | 20 20 20 20 2f 2f 20 55 73 65 72 2d 73 70 65 63 69 66 69 65 64 20 66 69 6c 65 20 69 6e 20 41 73 | ....//.User-specified.file.in.As |
| 3120 | 73 65 74 73 2f 20 66 6f 6c 64 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | sets/.folder.................... |
| 3140 | 20 20 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 20 3d 20 50 61 74 68 2e 43 6f 6d 62 69 6e | ...wrapperFilePath.=.Path.Combin |
| 3160 | 65 28 22 41 73 73 65 74 73 22 2c 20 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 29 3b 0d 0a 20 | e("Assets",.wrapperFilePath);... |
| 3180 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| 31a0 | 20 20 20 20 76 61 72 20 64 69 72 20 3d 20 50 61 74 68 2e 47 65 74 44 69 72 65 63 74 6f 72 79 4e | ....var.dir.=.Path.GetDirectoryN |
| 31c0 | 61 6d 65 28 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | ame(wrapperFilePath);........... |
| 31e0 | 20 20 20 20 20 20 20 69 66 20 28 21 44 69 72 65 63 74 6f 72 79 2e 45 78 69 73 74 73 28 64 69 72 | .......if.(!Directory.Exists(dir |
| 3200 | 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 72 65 63 74 6f 72 | ))......................Director |
| 3220 | 79 2e 43 72 65 61 74 65 44 69 72 65 63 74 6f 72 79 28 64 69 72 29 3b 0d 0a 0d 0a 20 20 20 20 20 | y.CreateDirectory(dir);......... |
| 3240 | 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 70 74 69 6f 6e 73 20 3d 20 6e 65 77 20 49 6e 70 | ...........var.options.=.new.Inp |
| 3260 | 75 74 41 63 74 69 6f 6e 43 6f 64 65 47 65 6e 65 72 61 74 6f 72 2e 4f 70 74 69 6f 6e 73 0d 0a 20 | utActionCodeGenerator.Options... |
| 3280 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............{................ |
| 32a0 | 20 20 20 20 20 20 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 20 3d 20 63 74 78 2e 61 73 73 65 | ......sourceAssetPath.=.ctx.asse |
| 32c0 | 74 50 61 74 68 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 | tPath,......................name |
| 32e0 | 73 70 61 63 65 4e 61 6d 65 20 3d 20 6d 5f 57 72 61 70 70 65 72 43 6f 64 65 4e 61 6d 65 73 70 61 | spaceName.=.m_WrapperCodeNamespa |
| 3300 | 63 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 61 73 73 4e 61 | ce,......................classNa |
| 3320 | 6d 65 20 3d 20 6d 5f 57 72 61 70 70 65 72 43 6c 61 73 73 4e 61 6d 65 2c 0d 0a 20 20 20 20 20 20 | me.=.m_WrapperClassName,........ |
| 3340 | 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 20 20 20 20 20 20 20 | ..........};.................... |
| 3360 | 69 66 20 28 49 6e 70 75 74 41 63 74 69 6f 6e 43 6f 64 65 47 65 6e 65 72 61 74 6f 72 2e 47 65 6e | if.(InputActionCodeGenerator.Gen |
| 3380 | 65 72 61 74 65 57 72 61 70 70 65 72 43 6f 64 65 28 77 72 61 70 70 65 72 46 69 6c 65 50 61 74 68 | erateWrapperCode(wrapperFilePath |
| 33a0 | 2c 20 61 73 73 65 74 2c 20 6f 70 74 69 6f 6e 73 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ,.asset,.options)).............. |
| 33c0 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 68 | ....{......................//.Wh |
| 33e0 | 65 6e 20 77 65 20 67 65 6e 65 72 61 74 65 20 74 68 65 20 77 72 61 70 70 65 72 20 63 6f 64 65 20 | en.we.generate.the.wrapper.code. |
| 3400 | 63 73 20 66 69 6c 65 20 64 75 72 69 6e 67 20 61 73 73 65 74 20 69 6d 70 6f 72 74 2c 20 77 65 20 | cs.file.during.asset.import,.we. |
| 3420 | 63 61 6e 6e 6f 74 20 63 61 6c 6c 20 49 6d 70 6f 72 74 41 73 73 65 74 20 6f 6e 20 74 68 61 74 20 | cannot.call.ImportAsset.on.that. |
| 3440 | 64 69 72 65 63 74 6c 79 20 62 65 63 61 75 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | directly.because................ |
| 3460 | 20 20 20 20 20 20 2f 2f 20 73 63 72 69 70 74 20 61 73 73 65 74 73 20 68 61 76 65 20 74 6f 20 62 | ......//.script.assets.have.to.b |
| 3480 | 65 20 69 6d 70 6f 72 74 65 64 20 62 65 66 6f 72 65 20 61 6c 6c 20 6f 74 68 65 72 20 61 73 73 65 | e.imported.before.all.other.asse |
| 34a0 | 74 73 2c 20 61 6e 64 20 61 72 65 20 6e 6f 74 20 61 6c 6c 6f 77 65 64 20 74 6f 20 62 65 20 61 64 | ts,.and.are.not.allowed.to.be.ad |
| 34c0 | 64 65 64 20 74 6f 20 74 68 65 20 69 6d 70 6f 72 74 20 71 75 65 75 65 20 64 75 72 69 6e 67 0d 0a | ded.to.the.import.queue.during.. |
| 34e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 73 73 65 74 20 69 6d 70 | ....................//.asset.imp |
| 3500 | 6f 72 74 2e 20 53 6f 20 69 6e 73 74 65 61 64 20 77 65 20 72 65 67 69 73 74 65 72 20 61 20 63 61 | ort..So.instead.we.register.a.ca |
| 3520 | 6c 6c 62 61 63 6b 20 74 6f 20 74 72 69 67 67 65 72 20 61 20 64 65 6c 61 79 65 64 20 61 73 73 65 | llback.to.trigger.a.delayed.asse |
| 3540 | 74 20 72 65 66 72 65 73 68 20 77 68 69 63 68 20 73 68 6f 75 6c 64 20 74 68 65 6e 20 70 69 63 6b | t.refresh.which.should.then.pick |
| 3560 | 20 75 70 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 | .up.the......................//. |
| 3580 | 63 68 61 6e 67 65 64 2f 61 64 64 65 64 20 73 63 72 69 70 74 2c 20 61 6e 64 20 74 72 69 67 67 65 | changed/added.script,.and.trigge |
| 35a0 | 72 20 61 20 6e 65 77 20 69 6d 70 6f 72 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | r.a.new.import.................. |
| 35c0 | 20 20 20 20 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 64 65 6c 61 79 43 61 6c 6c | .....EditorApplication.delayCall |
| 35e0 | 20 2b 3d 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 52 65 66 72 65 73 68 3b 0d 0a 20 20 20 20 | .+=.AssetDatabase.Refresh;...... |
| 3600 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ............}..............}.... |
| 3620 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 66 72 65 73 68 20 65 64 69 74 6f 72 73 2e 0d | ............//.Refresh.editors.. |
| 3640 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 41 63 74 69 6f 6e 45 64 69 74 6f 72 57 69 | .............InputActionEditorWi |
| 3660 | 6e 64 6f 77 2e 52 65 66 72 65 73 68 41 6c 6c 4f 6e 41 73 73 65 74 52 65 69 6d 70 6f 72 74 28 29 | ndow.RefreshAllOnAssetReimport() |
| 3680 | 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 2f 52 45 56 49 | ;..........}............////REVI |
| 36a0 | 45 57 3a 20 61 63 74 75 61 6c 6c 79 20 70 72 65 2d 70 6f 70 75 6c 61 74 65 20 77 69 74 68 20 73 | EW:.actually.pre-populate.with.s |
| 36c0 | 6f 6d 65 20 73 74 75 66 66 3f 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 | ome.stuff?..........private.cons |
| 36e0 | 74 20 73 74 72 69 6e 67 20 6b 44 65 66 61 75 6c 74 41 73 73 65 74 4c 61 79 6f 75 74 20 3d 20 22 | t.string.kDefaultAssetLayout.=." |
| 3700 | 7b 7d 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 69 74 65 6d 20 74 6f 20 70 | {}";............//.Add.item.to.p |
| 3720 | 6c 6f 70 20 61 6e 20 2e 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 73 65 74 20 69 6e 74 6f 20 | lop.an..inputactions.asset.into. |
| 3740 | 74 68 65 20 70 72 6f 6a 65 63 74 2e 0d 0a 20 20 20 20 20 20 20 20 5b 4d 65 6e 75 49 74 65 6d 28 | the.project...........[MenuItem( |
| 3760 | 22 41 73 73 65 74 73 2f 43 72 65 61 74 65 2f 49 6e 70 75 74 20 41 63 74 69 6f 6e 73 22 29 5d 0d | "Assets/Create/Input.Actions")]. |
| 3780 | 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 43 72 65 61 | .........public.static.void.Crea |
| 37a0 | 74 65 49 6e 70 75 74 41 73 73 65 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | teInputAsset()..........{....... |
| 37c0 | 20 20 20 20 20 20 20 50 72 6f 6a 65 63 74 57 69 6e 64 6f 77 55 74 69 6c 2e 43 72 65 61 74 65 41 | .......ProjectWindowUtil.CreateA |
| 37e0 | 73 73 65 74 57 69 74 68 43 6f 6e 74 65 6e 74 28 22 4e 65 77 20 43 6f 6e 74 72 6f 6c 73 2e 22 20 | ssetWithContent("New.Controls.". |
| 3800 | 2b 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 45 78 74 65 6e 73 69 6f 6e 2c 0d 0a 20 | +.InputActionAsset.Extension,... |
| 3820 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 44 65 66 61 75 6c 74 41 73 73 65 74 4c 61 79 6f | ...............kDefaultAssetLayo |
| 3840 | 75 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e 64 69 | ut);..........}......}..}..#endi |
| 3860 | 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 | f.//.UNITY_EDITOR............... |
| 3880 | 00 00 00 00 00 00 00 00 13 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 49 6d 70 6f 72 74 65 72 00 | ............InputActionImporter. |
| 38a0 | 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 | ....UnityEngine.InputSystem.Edit |
| 38c0 | 6f 72 00 00 | or.. |