summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e3/e3435c8b11183725dbf7275aef6433df
blob: eb88338d9ebd6cb9951d1af55d910875e2b1aba6 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 4e bc 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......N.............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 5c 3e 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 19 00 00 00 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 65 ............SerializedPropertyHe
10a0 6c 70 65 72 73 00 00 00 b6 3d 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 lpers....=..#if.UNITY_EDITOR..us
10c0 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 65 63 ing.System;..using.System.Collec
10e0 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 52 65 66 tions.Generic;..using.System.Ref
1100 6c 65 63 74 69 6f 6e 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 54 65 78 74 3b 0d 0a 75 73 lection;..using.System.Text;..us
1120 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 ing.UnityEditor;..using.UnityEng
1140 69 6e 65 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 6e 61 ine.InputSystem.Utilities;....na
1160 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 74 65 6d 2e mespace.UnityEngine.InputSystem.
1180 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 0d 0a 20 20 Editor..{......///.<summary>....
11a0 20 20 2f 2f 2f 20 48 65 6c 70 65 72 73 20 66 6f 72 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 3c ..///.Helpers.for.working.with.<
11c0 73 65 65 20 63 72 65 66 3d 22 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 22 2f 3e 20 see.cref="SerializedProperty"/>.
11e0 69 6e 20 74 68 65 20 65 64 69 74 6f 72 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 in.the.editor.......///.</summar
1200 79 3e 0d 0a 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 53 65 y>......internal.static.class.Se
1220 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 65 6c 70 65 72 73 0d 0a 20 20 20 20 7b 0d 0a rializedPropertyHelpers......{..
1240 20 20 20 20 20 20 20 20 2f 2f 20 53 68 6f 77 20 61 20 50 72 6f 70 65 72 74 79 46 69 65 6c 64 20 ........//.Show.a.PropertyField.
1260 77 69 74 68 20 61 20 67 72 65 79 65 64 2d 6f 75 74 20 64 65 66 61 75 6c 74 20 74 65 78 74 20 69 with.a.greyed-out.default.text.i
1280 66 20 74 68 65 20 66 69 65 6c 64 20 69 73 20 65 6d 70 74 79 20 61 6e 64 20 6e 6f 74 20 62 65 69 f.the.field.is.empty.and.not.bei
12a0 6e 67 20 65 64 69 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 69 73 20 6d ng.edited...........//.This.is.m
12c0 65 61 6e 74 20 74 6f 20 63 6f 6d 6d 75 6e 69 63 61 74 65 20 74 68 65 20 66 61 63 74 20 74 68 61 eant.to.communicate.the.fact.tha
12e0 74 20 66 69 6c 6c 69 6e 67 20 74 68 65 73 65 20 70 72 6f 70 65 72 74 69 65 73 20 69 73 20 6f 70 t.filling.these.properties.is.op
1300 74 69 6f 6e 61 6c 20 61 6e 64 20 74 68 61 74 20 55 6e 69 74 79 20 77 69 6c 6c 0d 0a 20 20 20 20 tional.and.that.Unity.will......
1320 20 20 20 20 2f 2f 20 75 73 65 20 72 65 61 73 6f 6e 61 62 6c 65 20 64 65 66 61 75 6c 74 73 20 69 ....//.use.reasonable.defaults.i
1340 66 20 6c 65 66 74 20 65 6d 70 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 f.left.empty...........public.st
1360 61 74 69 63 20 76 6f 69 64 20 50 72 6f 70 65 72 74 79 46 69 65 6c 64 57 69 74 68 44 65 66 61 75 atic.void.PropertyFieldWithDefau
1380 6c 74 54 65 78 74 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 ltText(this.SerializedProperty.p
13a0 72 6f 70 2c 20 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 2c 20 73 74 72 69 6e 67 20 64 65 rop,.GUIContent.label,.string.de
13c0 66 61 75 6c 74 54 65 78 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 faultText)..........{...........
13e0 20 20 20 47 55 49 2e 53 65 74 4e 65 78 74 43 6f 6e 74 72 6f 6c 4e 61 6d 65 28 6c 61 62 65 6c 2e ...GUI.SetNextControlName(label.
1400 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 74 20 3d 20 47 55 49 text);..............var.rt.=.GUI
1420 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 6c 61 62 65 6c 2c 20 47 55 49 LayoutUtility.GetRect(label,.GUI
1440 2e 73 6b 69 6e 2e 74 65 78 74 46 69 65 6c 64 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .skin.textField);...............
1460 20 45 64 69 74 6f 72 47 55 49 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 72 74 2c 20 70 72 6f .EditorGUI.PropertyField(rt,.pro
1480 70 2c 20 6c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 p,.label);..............if.(stri
14a0 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 70 72 6f 70 2e 73 74 72 69 6e 67 56 61 6c 75 ng.IsNullOrEmpty(prop.stringValu
14c0 65 29 20 26 26 20 47 55 49 2e 47 65 74 4e 61 6d 65 4f 66 46 6f 63 75 73 65 64 43 6f 6e 74 72 6f e).&&.GUI.GetNameOfFocusedContro
14e0 6c 28 29 20 21 3d 20 6c 61 62 65 6c 2e 74 65 78 74 20 26 26 20 45 76 65 6e 74 2e 63 75 72 72 65 l().!=.label.text.&&.Event.curre
1500 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e 74 29 0d 0a 20 nt.type.==.EventType.Repaint)...
1520 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 75 73 ...........{..................us
1540 69 6e 67 20 28 6e 65 77 20 45 64 69 74 6f 72 47 55 49 2e 44 69 73 61 62 6c 65 64 53 63 6f 70 65 ing.(new.EditorGUI.DisabledScope
1560 28 74 72 75 65 29 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 (true))..................{......
1580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 74 2e 78 4d 69 6e 20 2b 3d 20 45 64 69 74 6f ................rt.xMin.+=.Edito
15a0 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 rGUIUtility.labelWidth;.........
15c0 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 73 6b 69 6e 2e 74 65 78 74 46 69 65 6c 64 2e .............GUI.skin.textField.
15e0 44 72 61 77 28 72 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 64 65 66 61 75 6c 74 54 Draw(rt,.new.GUIContent(defaultT
1600 65 78 74 29 2c 20 66 61 6c 73 65 2c 20 66 61 6c 73 65 2c 20 66 61 6c 73 65 2c 20 66 61 6c 73 65 ext),.false,.false,.false,.false
1620 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 );..................}...........
1640 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 ...}..........}............publi
1660 63 20 73 74 61 74 69 63 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 47 65 74 50 c.static.SerializedProperty.GetP
1680 61 72 65 6e 74 50 72 6f 70 65 72 74 79 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f arentProperty(this.SerializedPro
16a0 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 perty.property)..........{......
16c0 20 20 20 20 20 20 20 20 76 61 72 20 70 61 74 68 20 3d 20 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 ........var.path.=.property.prop
16e0 65 72 74 79 50 61 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 61 73 74 44 ertyPath;..............var.lastD
1700 6f 74 20 3d 20 70 61 74 68 2e 4c 61 73 74 49 6e 64 65 78 4f 66 28 27 2e 27 29 3b 0d 0a 20 20 20 ot.=.path.LastIndexOf('.');.....
1720 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 61 73 74 44 6f 74 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 .........if.(lastDot.==.-1).....
1740 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 20 20 20 20 20 .............return.null;.......
1760 20 20 20 20 20 20 20 76 61 72 20 70 61 72 65 6e 74 50 61 74 68 20 3d 20 70 61 74 68 2e 53 75 62 .......var.parentPath.=.path.Sub
1780 73 74 72 69 6e 67 28 30 2c 20 6c 61 73 74 44 6f 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 string(0,.lastDot);.............
17a0 20 72 65 74 75 72 6e 20 70 72 6f 70 65 72 74 79 2e 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 .return.property.serializedObjec
17c0 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 70 61 72 65 6e 74 50 61 74 68 29 3b 0d 0a 20 20 20 t.FindProperty(parentPath);.....
17e0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 .....}............public.static.
1800 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 47 65 74 41 72 72 61 79 50 72 6f 70 65 SerializedProperty.GetArrayPrope
1820 72 74 79 46 72 6f 6d 45 6c 65 6d 65 6e 74 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 rtyFromElement(this.SerializedPr
1840 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 operty.property)..........{.....
1860 20 20 20 20 20 20 20 20 20 2f 2f 20 41 72 72 61 79 73 20 68 61 76 65 20 61 20 73 74 72 75 63 74 .........//.Arrays.have.a.struct
1880 75 72 65 20 6f 66 20 27 61 72 72 61 79 4e 61 6d 65 2e 41 72 72 61 79 2e 64 61 74 61 5b 69 6e 64 ure.of.'arrayName.Array.data[ind
18a0 65 78 5d 27 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 69 76 65 6e 20 70 72 6f 70 ex]'...............//.Given.prop
18c0 65 72 74 79 20 73 68 6f 75 6c 64 20 62 65 20 65 6c 65 6d 65 6e 74 20 61 6e 64 20 74 68 75 73 20 erty.should.be.element.and.thus.
18e0 27 64 61 74 61 5b 69 6e 64 65 78 5d 27 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 'data[index]'...............var.
1900 61 72 72 61 79 50 72 6f 70 65 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 47 65 74 50 61 72 65 arrayProperty.=.property.GetPare
1920 6e 74 50 72 6f 70 65 72 74 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 ntProperty();..............Debug
1940 2e 41 73 73 65 72 74 28 61 72 72 61 79 50 72 6f 70 65 72 74 79 2e 6e 61 6d 65 20 3d 3d 20 22 41 .Assert(arrayProperty.name.==."A
1960 72 72 61 79 22 2c 20 22 45 78 70 65 63 74 69 6e 67 20 27 41 72 72 61 79 27 20 70 72 6f 70 65 72 rray",."Expecting.'Array'.proper
1980 74 79 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 72 72 61 79 50 ty");..............return.arrayP
19a0 72 6f 70 65 72 74 79 2e 47 65 74 50 61 72 65 6e 74 50 72 6f 70 65 72 74 79 28 29 3b 0d 0a 20 20 roperty.GetParentProperty();....
19c0 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 ......}............public.static
19e0 20 69 6e 74 20 47 65 74 49 6e 64 65 78 4f 66 41 72 72 61 79 45 6c 65 6d 65 6e 74 28 74 68 69 73 .int.GetIndexOfArrayElement(this
1a00 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 .SerializedProperty.property)...
1a20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 72 6f 70 65 72 .......{..............var.proper
1a40 74 79 50 61 74 68 20 3d 20 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 50 61 74 68 3b 0d tyPath.=.property.propertyPath;.
1a60 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 50 61 74 68 5b 70 72 .............if.(propertyPath[pr
1a80 6f 70 65 72 74 79 50 61 74 68 2e 4c 65 6e 67 74 68 20 2d 20 31 5d 20 21 3d 20 27 5d 27 29 0d 0a opertyPath.Length.-.1].!=.']')..
1aa0 20 20 20 20 20 20 20 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 ................return.-1;......
1ac0 20 20 20 20 20 20 20 20 76 61 72 20 6c 61 73 74 49 6e 64 65 78 4f 66 4c 65 66 74 42 72 61 63 6b ........var.lastIndexOfLeftBrack
1ae0 65 74 20 3d 20 70 72 6f 70 65 72 74 79 50 61 74 68 2e 4c 61 73 74 49 6e 64 65 78 4f 66 28 27 5b et.=.propertyPath.LastIndexOf('[
1b00 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 74 2e 54 72 79 50 61 72 73 ');..............if.(int.TryPars
1b20 65 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 50 61 74 68 e(..................propertyPath
1b40 2e 53 75 62 73 74 72 69 6e 67 28 6c 61 73 74 49 6e 64 65 78 4f 66 4c 65 66 74 42 72 61 63 6b 65 .Substring(lastIndexOfLeftBracke
1b60 74 20 2b 20 31 2c 20 70 72 6f 70 65 72 74 79 50 61 74 68 2e 4c 65 6e 67 74 68 20 2d 20 6c 61 73 t.+.1,.propertyPath.Length.-.las
1b80 74 49 6e 64 65 78 4f 66 4c 65 66 74 42 72 61 63 6b 65 74 20 2d 20 32 29 2c 0d 0a 20 20 20 20 20 tIndexOfLeftBracket.-.2),.......
1ba0 20 20 20 20 20 20 20 20 20 20 20 6f 75 74 20 76 61 72 20 69 6e 64 65 78 29 29 0d 0a 20 20 20 20 ...........out.var.index))......
1bc0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 6e 64 65 78 3b 0d 0a 20 20 20 20 20 ............return.index;.......
1be0 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 0d 0a .......return.-1;..........}....
1c00 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 54 79 70 65 20 47 65 74 41 72 ........public.static.Type.GetAr
1c20 72 61 79 45 6c 65 6d 65 6e 74 54 79 70 65 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 rayElementType(this.SerializedPr
1c40 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 operty.property)..........{.....
1c60 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 70 72 6f 70 65 72 74 79 2e 69 .........Debug.Assert(property.i
1c80 73 41 72 72 61 79 2c 20 24 22 50 72 6f 70 65 72 74 79 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f sArray,.$"Property.{property.pro
1ca0 70 65 72 74 79 50 61 74 68 7d 20 69 73 20 6e 6f 74 20 61 6e 20 61 72 72 61 79 22 29 3b 0d 0a 0d pertyPath}.is.not.an.array");...
1cc0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 66 69 65 6c 64 54 79 70 65 20 3d 20 70 72 6f .............var.fieldType.=.pro
1ce0 70 65 72 74 79 2e 47 65 74 46 69 65 6c 64 54 79 70 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 perty.GetFieldType();...........
1d00 20 20 20 69 66 20 28 66 69 65 6c 64 54 79 70 65 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 ...if.(fieldType.==.null).......
1d20 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 45 78 63 ...........throw.new.ArgumentExc
1d40 65 70 74 69 6f 6e 28 24 22 43 61 6e 6e 6f 74 20 64 65 74 65 72 6d 69 6e 65 20 6d 61 6e 61 67 65 eption($"Cannot.determine.manage
1d60 64 20 66 69 65 6c 64 20 74 79 70 65 20 6f 66 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 d.field.type.of.{property.proper
1d80 74 79 50 61 74 68 7d 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e tyPath}",......................n
1da0 61 6d 65 6f 66 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ameof(property));...............
1dc0 20 72 65 74 75 72 6e 20 66 69 65 6c 64 54 79 70 65 2e 47 65 74 45 6c 65 6d 65 6e 74 54 79 70 65 .return.fieldType.GetElementType
1de0 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ();..........}............public
1e00 20 73 74 61 74 69 63 20 76 6f 69 64 20 52 65 73 65 74 56 61 6c 75 65 73 54 6f 44 65 66 61 75 6c .static.void.ResetValuesToDefaul
1e20 74 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 t(this.SerializedProperty.proper
1e40 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ty)..........{..............var.
1e60 69 73 53 74 72 69 6e 67 20 3d 20 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 54 79 70 65 isString.=.property.propertyType
1e80 20 3d 3d 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e .==.SerializedPropertyType.Strin
1ea0 67 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 69 g;................if.(property.i
1ec0 73 41 72 72 61 79 20 26 26 20 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 sArray.&&.!isString)............
1ee0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 43 6c ..{..................property.Cl
1f00 65 61 72 41 72 72 61 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 earArray();..............}......
1f20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 68 61 73 43 68 69 ........else.if.(property.hasChi
1f40 6c 64 72 65 6e 20 26 26 20 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ldren.&&.!isString).............
1f60 20 7b 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 .{..................foreach.(var
1f80 20 63 68 69 6c 64 20 69 6e 20 70 72 6f 70 65 72 74 79 2e 47 65 74 43 68 69 6c 64 72 65 6e 28 29 .child.in.property.GetChildren()
1fa0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 73 65 74 56 61 6c 75 )......................ResetValu
1fc0 65 73 54 6f 44 65 66 61 75 6c 74 28 63 68 69 6c 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 esToDefault(child);.............
1fe0 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 .}..............else............
2000 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 70 72 6f ..{..................switch.(pro
2020 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 54 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 perty.propertyType).............
2040 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 63 61 73 65 .....{......................case
2060 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 46 6c 6f 61 74 3a 0d 0a .SerializedPropertyType.Float:..
2080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 ........................property
20a0 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 64 65 66 61 75 6c 74 28 66 6c 6f 61 74 29 3b 0d 0a 20 .floatValue.=.default(float);...
20c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d .......................break;...
20e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c .....................case.Serial
2100 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 42 6f 6f 6c 65 61 6e 3a 0d 0a 20 20 20 20 20 izedPropertyType.Boolean:.......
2120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 62 6f 6f 6c ...................property.bool
2140 56 61 6c 75 65 20 3d 20 64 65 66 61 75 6c 74 28 62 6f 6f 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 Value.=.default(bool);..........
2160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 ................break;..........
2180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f ..............case.SerializedPro
21a0 70 65 72 74 79 54 79 70 65 2e 45 6e 75 6d 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 pertyType.Enum:.................
21c0 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 .....case.SerializedPropertyType
21e0 2e 49 6e 74 65 67 65 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Integer:.......................
2200 20 20 20 70 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 6c 75 65 20 3d 20 64 65 66 61 75 6c 74 28 69 ...property.intValue.=.default(i
2220 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 20 20 20 20 62 72 nt);..........................br
2240 65 61 6b 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 63 61 73 65 eak;........................case
2260 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e 67 3a 0d .SerializedPropertyType.String:.
2280 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 .........................propert
22a0 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 y.stringValue.=.string.Empty;...
22c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d .......................break;...
22e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c .....................case.Serial
2300 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 izedPropertyType.ObjectReference
2320 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 :..........................prope
2340 72 74 79 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 3d 20 6e 75 6c 6c 3b rty.objectReferenceValue.=.null;
2360 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b ..........................break;
2380 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
23a0 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 .}..........}............public.
23c0 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 54 6f 4a 73 6f 6e 28 74 68 69 73 20 53 65 72 69 61 6c static.string.ToJson(this.Serial
23e0 69 7a 65 64 4f 62 6a 65 63 74 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 29 0d 0a 20 20 izedObject.serializedObject)....
2400 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 4a 73 6f 6e ......{..............return.Json
2420 55 74 69 6c 69 74 79 2e 54 6f 4a 73 6f 6e 28 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c Utility.ToJson(serializedObject,
2440 20 70 72 65 74 74 79 50 72 69 6e 74 3a 20 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d .prettyPrint:.true);..........}.
2460 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 73 20 66 ...........//.The.following.is.f
2480 75 6e 63 74 69 6f 6e 61 6c 69 74 79 20 74 68 61 74 20 61 6c 6c 6f 77 73 20 74 75 72 6e 69 6e 67 unctionality.that.allows.turning
24a0 20 55 6e 69 74 79 20 64 61 74 61 20 69 6e 74 6f 20 74 65 78 74 20 61 6e 64 20 74 65 78 74 0d 0a .Unity.data.into.text.and.text..
24c0 20 20 20 20 20 20 20 20 2f 2f 20 62 61 63 6b 20 69 6e 74 6f 20 55 6e 69 74 79 20 64 61 74 61 2e ........//.back.into.Unity.data.
24e0 20 47 69 76 65 6e 20 74 68 61 74 20 74 68 69 73 20 69 73 20 65 73 73 65 6e 74 69 61 6c 20 66 75 .Given.that.this.is.essential.fu
2500 6e 63 74 69 6f 6e 61 6c 69 74 79 20 66 6f 72 20 61 6e 79 20 6b 69 6e 64 20 6f 66 0d 0a 20 20 20 nctionality.for.any.kind.of.....
2520 20 20 20 20 20 2f 2f 20 63 6f 70 79 70 61 73 74 65 20 73 75 70 70 6f 72 74 2c 20 49 27 6d 20 6e .....//.copypaste.support,.I'm.n
2540 6f 74 20 73 75 72 65 20 77 68 79 20 74 68 65 20 55 6e 69 74 79 20 65 64 69 74 6f 72 20 41 50 49 ot.sure.why.the.Unity.editor.API
2560 20 69 73 6e 27 74 20 70 72 6f 76 69 64 69 6e 67 20 74 68 69 73 20 6f 75 74 0d 0a 20 20 20 20 20 .isn't.providing.this.out.......
2580 20 20 20 2f 2f 20 6f 66 20 74 68 65 20 62 6f 78 2e 20 49 6e 74 65 72 6e 61 6c 6c 79 2c 20 77 65 ...//.of.the.box..Internally,.we
25a0 20 64 6f 20 68 61 76 65 20 73 75 70 70 6f 72 74 20 66 6f 72 20 74 68 69 73 20 6f 6e 20 61 20 77 .do.have.support.for.this.on.a.w
25c0 68 6f 6c 65 2d 6f 62 6a 65 63 74 20 6b 69 6e 64 20 6f 66 20 6c 65 76 65 6c 0d 0a 20 20 20 20 20 hole-object.kind.of.level.......
25e0 20 20 20 2f 2f 20 62 75 74 20 6e 6f 74 20 66 6f 72 20 70 61 72 74 73 20 6f 66 20 73 65 72 69 61 ...//.but.not.for.parts.of.seria
2600 6c 69 7a 65 64 20 6f 62 6a 65 63 74 73 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 lized.objects.............///.<s
2620 75 6d 6d 61 72 79 3e 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 ummary>..........///..........//
2640 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 6d /.</summary>..........///.<param
2660 20 6e 61 6d 65 3d 22 70 72 6f 70 65 72 74 79 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 .name="property"></param>.......
2680 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 ...///.<returns></returns>......
26a0 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 20 43 ....///.<remarks>..........///.C
26c0 6f 6e 76 65 72 74 69 6e 67 20 65 6e 74 69 72 65 20 6f 62 6a 65 63 74 73 20 74 6f 20 4a 53 4f 4e onverting.entire.objects.to.JSON
26e0 20 69 73 20 65 61 73 79 20 75 73 69 6e 67 20 55 6e 69 74 79 27 73 20 73 65 72 69 61 6c 69 7a 61 .is.easy.using.Unity's.serializa
2700 74 69 6f 6e 20 73 79 73 74 65 6d 20 62 75 74 20 77 65 20 63 61 6e 6e 6f 74 0d 0a 20 20 20 20 20 tion.system.but.we.cannot.......
2720 20 20 20 2f 2f 2f 20 65 61 73 69 6c 79 20 63 6f 6e 76 65 72 74 20 6a 75 73 74 20 61 20 70 61 72 ...///.easily.convert.just.a.par
2740 74 20 6f 66 20 74 68 65 20 73 65 72 69 61 6c 69 7a 65 64 20 67 72 61 70 68 20 74 6f 20 4a 53 4f t.of.the.serialized.graph.to.JSO
2760 4e 20 28 6f 72 20 61 6e 79 20 74 65 78 74 20 66 6f 72 6d 61 74 20 66 6f 72 20 74 68 61 74 20 6d N.(or.any.text.format.for.that.m
2780 61 74 74 65 72 29 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 6e 64 20 74 68 65 6e 20 72 65 63 atter)..........///.and.then.rec
27a0 72 65 61 74 65 20 74 68 65 20 73 61 6d 65 20 64 61 74 61 20 66 72 6f 6d 20 74 65 78 74 20 74 68 reate.the.same.data.from.text.th
27c0 72 6f 75 67 68 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 69 65 73 2e 20 54 68 69 73 rough.SerializedProperties..This
27e0 20 6d 65 74 68 6f 64 20 68 65 6c 70 73 20 62 79 20 6d 61 6e 75 61 6c 6c 79 0d 0a 20 20 20 20 20 .method.helps.by.manually.......
2800 20 20 20 2f 2f 2f 20 74 75 72 6e 69 6e 67 20 61 6e 20 61 72 62 69 74 72 61 72 79 20 70 61 72 74 ...///.turning.an.arbitrary.part
2820 20 6f 66 20 61 20 67 72 61 70 68 20 69 6e 74 6f 20 4a 53 4f 4e 20 77 68 69 63 68 20 63 61 6e 20 .of.a.graph.into.JSON.which.can.
2840 74 68 65 6e 20 62 65 20 75 73 65 64 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 52 65 73 then.be.used.with.<see.cref="Res
2860 74 6f 72 65 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 74 6f 20 toreFromJson"/>..........///.to.
2880 77 72 69 74 65 20 74 68 65 20 64 61 74 61 20 62 61 63 6b 20 69 6e 74 6f 20 61 6e 20 65 78 69 73 write.the.data.back.into.an.exis
28a0 74 69 6e 67 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 ting.property...........///.....
28c0 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 70 72 69 6d 61 72 79 20 75 73 65 20 66 6f 72 20 74 68 69 .....///.The.primary.use.for.thi
28e0 73 20 69 73 20 63 6f 70 79 2d 70 61 73 74 65 20 77 68 65 72 65 20 73 65 72 69 61 6c 69 7a 65 64 s.is.copy-paste.where.serialized
2900 20 64 61 74 61 20 6e 65 65 64 73 20 74 6f 20 62 65 20 73 74 6f 72 65 64 20 69 6e 0d 0a 20 20 20 .data.needs.to.be.stored.in.....
2920 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 45 64 69 74 6f 72 47 55 49 55 74 69 .....///.<see.cref="EditorGUIUti
2940 6c 69 74 79 2e 73 79 73 74 65 6d 43 6f 70 79 42 75 66 66 65 72 22 2f 3e 2e 0d 0a 20 20 20 20 20 lity.systemCopyBuffer"/>........
2960 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 6c 69 ...///.</remarks>..........publi
2980 63 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 43 6f 70 79 54 6f 4a 73 6f 6e 28 74 68 69 73 20 c.static.string.CopyToJson(this.
29a0 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 62 6f 6f SerializedProperty.property,.boo
29c0 6c 20 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 20 3d 20 66 61 6c 73 65 l.ignoreObjectReferences.=.false
29e0 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 )..........{..............var.bu
2a00 66 66 65 72 20 3d 20 6e 65 77 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 28 29 3b 0d 0a 20 20 20 ffer.=.new.StringBuilder();.....
2a20 20 20 20 20 20 20 20 20 20 43 6f 70 79 54 6f 4a 73 6f 6e 28 70 72 6f 70 65 72 74 79 2c 20 62 75 .........CopyToJson(property,.bu
2a40 66 66 65 72 2c 20 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 29 3b 0d 0a ffer,.ignoreObjectReferences);..
2a60 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 75 66 66 65 72 2e 54 6f 53 74 72 69 ............return.buffer.ToStri
2a80 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c ng();..........}............publ
2aa0 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 43 6f 70 79 54 6f 4a 73 6f 6e 28 74 68 69 73 20 53 ic.static.void.CopyToJson(this.S
2ac0 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 53 74 72 69 erializedProperty.property,.Stri
2ae0 6e 67 42 75 69 6c 64 65 72 20 62 75 66 66 65 72 2c 20 62 6f 6f 6c 20 69 67 6e 6f 72 65 4f 62 6a ngBuilder.buffer,.bool.ignoreObj
2b00 65 63 74 52 65 66 65 72 65 6e 63 65 73 20 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 20 ectReferences.=.false)..........
2b20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 54 6f 4a 73 6f 6e 28 70 72 6f 70 65 72 {..............CopyToJson(proper
2b40 74 79 2c 20 62 75 66 66 65 72 2c 20 6e 6f 50 72 6f 70 65 72 74 79 4e 61 6d 65 3a 20 74 72 75 65 ty,.buffer,.noPropertyName:.true
2b60 2c 20 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 3a 20 69 67 6e 6f 72 65 ,.ignoreObjectReferences:.ignore
2b80 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d ObjectReferences);..........}...
2ba0 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 43 6f 70 .........private.static.void.Cop
2bc0 79 54 6f 4a 73 6f 6e 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 yToJson(this.SerializedProperty.
2be0 70 72 6f 70 65 72 74 79 2c 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 20 62 75 66 66 65 72 2c 20 property,.StringBuilder.buffer,.
2c00 62 6f 6f 6c 20 6e 6f 50 72 6f 70 65 72 74 79 4e 61 6d 65 2c 20 62 6f 6f 6c 20 69 67 6e 6f 72 65 bool.noPropertyName,.bool.ignore
2c20 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 ObjectReferences)..........{....
2c40 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 72 6f 70 65 72 74 79 54 79 70 65 20 3d 20 70 72 6f ..........var.propertyType.=.pro
2c60 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 perty.propertyType;.............
2c80 20 69 66 20 28 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 20 26 26 20 70 .if.(ignoreObjectReferences.&&.p
2ca0 72 6f 70 65 72 74 79 54 79 70 65 20 3d 3d 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 ropertyType.==.SerializedPropert
2cc0 79 54 79 70 65 2e 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 yType.ObjectReference)..........
2ce0 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f ........return;................/
2d00 2f 20 50 72 6f 70 65 72 74 79 20 6e 61 6d 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 /.Property.name...............if
2d20 20 28 21 6e 6f 50 72 6f 70 65 72 74 79 4e 61 6d 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .(!noPropertyName)..............
2d40 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 {..................buffer.Append
2d60 28 27 22 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 ('"');..................buffer.A
2d80 70 70 65 6e 64 28 70 72 6f 70 65 72 74 79 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 ppend(property.name);...........
2da0 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 22 27 29 3b 0d 0a 20 20 20 20 .......buffer.Append('"');......
2dc0 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 3a 27 29 3b 0d ............buffer.Append(':');.
2de0 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 2f .............}................//
2e00 20 53 74 72 69 6e 67 73 20 61 72 65 20 63 6c 61 73 73 69 66 69 65 64 20 61 73 20 61 72 72 61 79 .Strings.are.classified.as.array
2e20 73 20 61 6e 64 20 68 61 76 65 20 63 68 69 6c 64 72 65 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 s.and.have.children.............
2e40 20 20 76 61 72 20 69 73 53 74 72 69 6e 67 20 3d 20 70 72 6f 70 65 72 74 79 54 79 70 65 20 3d 3d ..var.isString.=.propertyType.==
2e60 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e 67 3b 0d .SerializedPropertyType.String;.
2e80 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 72 6f 70 65 72 74 79 20 76 61 6c 75 65 ...............//.Property.value
2ea0 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 69 73 41 72 ...............if.(property.isAr
2ec0 72 61 79 20 26 26 20 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b ray.&&.!isString)..............{
2ee0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 ..................buffer.Append(
2f00 27 5b 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 72 72 61 79 '[');..................var.array
2f20 53 69 7a 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 Size.=.property.arraySize;......
2f40 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 46 69 72 73 74 20 3d 20 74 72 75 65 3b 0d ............var.isFirst.=.true;.
2f60 0a 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 3b .................for.(var.i.=.0;
2f80 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 .i.<.arraySize;.++i)............
2fa0 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 76 61 72 ......{......................var
2fc0 20 65 6c 65 6d 65 6e 74 20 3d 20 70 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d .element.=.property.GetArrayElem
2fe0 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 entAtIndex(i);..................
3000 20 20 20 20 69 66 20 28 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 20 26 ....if.(ignoreObjectReferences.&
3020 26 20 65 6c 65 6d 65 6e 74 2e 70 72 6f 70 65 72 74 79 54 79 70 65 20 3d 3d 20 53 65 72 69 61 6c &.element.propertyType.==.Serial
3040 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 izedPropertyType.ObjectReference
3060 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 63 6f 6e 74 69 )..........................conti
3080 6e 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 69 nue;......................if.(!i
30a0 73 46 69 72 73 74 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 sFirst).........................
30c0 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 2c 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .buffer.Append(',');............
30e0 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 54 6f 4a 73 6f 6e 28 65 6c 65 6d 65 6e 74 2c 20 62 75 ..........CopyToJson(element,.bu
3100 66 66 65 72 2c 20 74 72 75 65 2c 20 69 67 6e 6f 72 65 4f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 ffer,.true,.ignoreObjectReferenc
3120 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 46 69 72 73 es);......................isFirs
3140 74 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 t.=.false;..................}...
3160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 5d 27 ...............buffer.Append(']'
3180 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 );..............}..............e
31a0 6c 73 65 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 68 61 73 43 68 69 6c 64 72 65 6e 20 26 26 20 lse.if.(property.hasChildren.&&.
31c0 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 !isString)..............{.......
31e0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6e 79 20 73 74 72 75 63 74 75 72 65 64 20 64 61 74 ...........//.Any.structured.dat
3200 61 20 77 65 20 72 65 70 72 65 73 65 6e 74 20 61 73 20 61 20 4a 53 4f 4e 20 6f 62 6a 65 63 74 2e a.we.represent.as.a.JSON.object.
3220 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e ....................buffer.Appen
3240 64 28 27 7b 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 46 d('{');..................var.isF
3260 69 72 73 74 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f irst.=.true;..................fo
3280 72 65 61 63 68 20 28 76 61 72 20 63 68 69 6c 64 20 69 6e 20 70 72 6f 70 65 72 74 79 2e 47 65 74 reach.(var.child.in.property.Get
32a0 43 68 69 6c 64 72 65 6e 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a Children())..................{..
32c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 67 6e 6f 72 65 4f 62 ....................if.(ignoreOb
32e0 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 20 26 26 20 63 68 69 6c 64 2e 70 72 6f 70 65 72 74 79 jectReferences.&&.child.property
3300 54 79 70 65 20 3d 3d 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 4f Type.==.SerializedPropertyType.O
3320 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 bjectReference).................
3340 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .........continue;..............
3360 20 20 20 20 20 20 20 20 69 66 20 28 21 69 73 46 69 72 73 74 29 0d 0a 20 20 20 20 20 20 20 20 20 ........if.(!isFirst)...........
3380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 2c 27 ...............buffer.Append(','
33a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 54 6f 4a 73 );......................CopyToJs
33c0 6f 6e 28 63 68 69 6c 64 2c 20 62 75 66 66 65 72 2c 20 66 61 6c 73 65 2c 20 69 67 6e 6f 72 65 4f on(child,.buffer,.false,.ignoreO
33e0 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 bjectReferences);...............
3400 20 20 20 20 20 20 20 69 73 46 69 72 73 74 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 .......isFirst.=.false;.........
3420 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 62 75 66 66 .........}..................buff
3440 65 72 2e 41 70 70 65 6e 64 28 27 7d 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a er.Append('}');..............}..
3460 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d ............else..............{.
3480 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 70 72 6f 70 65 72 74 .................switch.(propert
34a0 79 54 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 yType)..................{.......
34c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 ...............case.SerializedPr
34e0 6f 70 65 72 74 79 54 79 70 65 2e 45 6e 75 6d 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 opertyType.Enum:................
3500 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 ......case.SerializedPropertyTyp
3520 65 2e 49 6e 74 65 67 65 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.Integer:......................
3540 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 70 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 ....buffer.Append(property.intVa
3560 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 lue);..........................b
3580 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 reak;........................cas
35a0 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 46 6c 6f 61 74 3a 0d e.SerializedPropertyType.Float:.
35c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e .........................buffer.
35e0 41 70 70 65 6e 64 28 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 29 3b 0d 0a 20 20 Append(property.floatValue);....
3600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d 0a ......................break;....
3620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 ....................case.Seriali
3640 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e 67 3a 0d 0a 20 20 20 20 20 20 20 zedPropertyType.String:.........
3660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 .................buffer.Append('
3680 22 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 "');..........................bu
36a0 66 66 65 72 2e 41 70 70 65 6e 64 28 70 72 6f 70 65 72 74 79 2e 73 74 72 69 6e 67 56 61 6c 75 65 ffer.Append(property.stringValue
36c0 2e 45 73 63 61 70 65 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Escape());.....................
36e0 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 22 27 29 3b 0d 0a 20 20 20 20 20 20 .....buffer.Append('"');........
3700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 ..................break;........
3720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 ................case.SerializedP
3740 72 6f 70 65 72 74 79 54 79 70 65 2e 42 6f 6f 6c 65 61 6e 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 ropertyType.Boolean:............
3760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 62 6f 6f 6c 56 ..............if.(property.boolV
3780 61 6c 75 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 20 alue)...........................
37a0 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 22 74 72 75 65 22 29 3b 0d 0a 20 20 20 20 20 ...buffer.Append("true");.......
37c0 20 20 20 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.........
37e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 .....................buffer.Appe
3800 6e 64 28 22 66 61 6c 73 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nd("false");....................
3820 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ......break;....................
3840 20 20 20 20 2f 2f 2f 2f 54 4f 44 4f 3a 20 6f 74 68 65 72 20 70 72 6f 70 65 72 74 79 20 74 79 70 ....////TODO:.other.property.typ
3860 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 3a es......................default:
3880 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 74 68 72 6f 77 20 ..........................throw.
38a0 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 6d 65 6e 74 65 64 45 78 63 65 70 74 69 6f 6e 28 24 22 53 75 new.NotImplementedException($"Su
38c0 70 70 6f 72 74 20 66 6f 72 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 54 79 70 65 pport.for.{property.propertyType
38e0 7d 20 70 72 6f 70 65 72 74 79 20 74 79 70 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 }.property.type");..............
3900 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d ....}..............}..........}.
3920 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 76 6f 69 64 20 52 65 ...........public.static.void.Re
3940 73 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f storeFromJson(this.SerializedPro
3960 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 73 74 72 69 6e 67 20 6a 73 6f 6e 29 0d 0a 20 20 perty.property,.string.json)....
3980 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 73 65 72 20 ......{..............var.parser.
39a0 3d 20 6e 65 77 20 4a 73 6f 6e 50 61 72 73 65 72 28 6a 73 6f 6e 29 3b 0d 0a 20 20 20 20 20 20 20 =.new.JsonParser(json);.........
39c0 20 20 20 20 20 52 65 73 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 70 72 6f 70 65 72 74 79 2c 20 72 .....RestoreFromJson(property,.r
39e0 65 66 20 70 61 72 73 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 ef.parser);..........}..........
3a00 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 52 65 73 74 6f 72 65 46 72 6f 6d ..public.static.void.RestoreFrom
3a20 4a 73 6f 6e 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f Json(this.SerializedProperty.pro
3a40 70 65 72 74 79 2c 20 72 65 66 20 4a 73 6f 6e 50 61 72 73 65 72 20 70 61 72 73 65 72 29 0d 0a 20 perty,.ref.JsonParser.parser)...
3a60 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 53 74 72 69 .......{..............var.isStri
3a80 6e 67 20 3d 20 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 79 54 79 70 65 20 3d 3d 20 53 65 ng.=.property.propertyType.==.Se
3aa0 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e 67 3b 0d 0a 0d 0a rializedPropertyType.String;....
3ac0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 69 73 41 72 72 61 79 ............if.(property.isArray
3ae0 20 26 26 20 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 .&&.!isString)..............{...
3b00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 43 6c 65 61 72 41 72 72 ...............property.ClearArr
3b20 61 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 73 65 72 2e 50 61 ay();..................parser.Pa
3b40 72 73 65 54 6f 6b 65 6e 28 27 5b 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rseToken('[');..................
3b60 77 68 69 6c 65 20 28 21 70 61 72 73 65 72 2e 50 61 72 73 65 54 6f 6b 65 6e 28 27 5d 27 29 20 26 while.(!parser.ParseToken(']').&
3b80 26 20 21 70 61 72 73 65 72 2e 69 73 41 74 45 6e 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 &.!parser.isAtEnd)..............
3ba0 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 69 ....{......................var.i
3bc0 6e 64 65 78 20 3d 20 70 72 6f 70 65 72 74 79 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 ndex.=.property.arraySize;......
3be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 49 6e 73 65 72 74 41 ................property.InsertA
3c00 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 rrayElementAtIndex(index);......
3c20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 6c 65 6d 65 6e 74 50 72 6f 70 65 ................var.elementPrope
3c40 72 74 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 rty.=.property.GetArrayElementAt
3c60 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Index(index);...................
3c80 20 20 20 52 65 73 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 65 6c 65 6d 65 6e 74 50 72 6f 70 65 72 ...RestoreFromJson(elementProper
3ca0 74 79 2c 20 72 65 66 20 70 61 72 73 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty,.ref.parser);................
3cc0 20 20 20 20 20 20 70 61 72 73 65 72 2e 50 61 72 73 65 54 6f 6b 65 6e 28 27 2c 27 29 3b 0d 0a 20 ......parser.ParseToken(',');...
3ce0 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 7d 0d ...............}..............}.
3d00 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 70 72 6f 70 65 72 74 79 2e 68 .............else.if.(property.h
3d20 61 73 43 68 69 6c 64 72 65 6e 20 26 26 20 21 69 73 53 74 72 69 6e 67 29 0d 0a 20 20 20 20 20 20 asChildren.&&.!isString)........
3d40 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 70 61 72 73 65 72 2e ......{..................parser.
3d60 50 61 72 73 65 54 6f 6b 65 6e 28 27 7b 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ParseToken('{');................
3d80 20 20 77 68 69 6c 65 20 28 21 70 61 72 73 65 72 2e 50 61 72 73 65 54 6f 6b 65 6e 28 27 7d 27 29 ..while.(!parser.ParseToken('}')
3da0 20 26 26 20 21 70 61 72 73 65 72 2e 69 73 41 74 45 6e 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 .&&.!parser.isAtEnd)............
3dc0 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 70 61 72 ......{......................par
3de0 73 65 72 2e 50 61 72 73 65 53 74 72 69 6e 67 56 61 6c 75 65 28 6f 75 74 20 76 61 72 20 70 72 6f ser.ParseStringValue(out.var.pro
3e00 70 65 72 74 79 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 pertyName);.....................
3e20 20 70 61 72 73 65 72 2e 50 61 72 73 65 54 6f 6b 65 6e 28 27 3a 27 29 3b 0d 0a 0d 0a 20 20 20 20 .parser.ParseToken(':');........
3e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 68 69 6c 64 50 72 6f 70 65 72 74 ................var.childPropert
3e60 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 y.=.property.FindPropertyRelativ
3e80 65 28 70 72 6f 70 65 72 74 79 4e 61 6d 65 2e 54 6f 53 74 72 69 6e 67 28 29 29 3b 0d 0a 20 20 20 e(propertyName.ToString());.....
3ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 69 6c 64 50 72 6f 70 65 72 .................if.(childProper
3ec0 74 79 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ty.==.null).....................
3ee0 20 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 .....throw.new.ArgumentException
3f00 28 24 22 43 61 6e 6e 6f 74 20 66 69 6e 64 20 70 72 6f 70 65 72 74 79 20 27 7b 70 72 6f 70 65 72 ($"Cannot.find.property.'{proper
3f20 74 79 4e 61 6d 65 7d 27 20 69 6e 20 7b 70 72 6f 70 65 72 74 79 7d 22 2c 20 6e 61 6d 65 6f 66 28 tyName}'.in.{property}",.nameof(
3f40 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 property));.....................
3f60 20 20 20 52 65 73 74 6f 72 65 46 72 6f 6d 4a 73 6f 6e 28 63 68 69 6c 64 50 72 6f 70 65 72 74 79 ...RestoreFromJson(childProperty
3f80 2c 20 72 65 66 20 70 61 72 73 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ,.ref.parser);..................
3fa0 20 20 20 20 70 61 72 73 65 72 2e 50 61 72 73 65 54 6f 6b 65 6e 28 27 2c 27 29 3b 0d 0a 20 20 20 ....parser.ParseToken(',');.....
3fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 .............}..............}...
3fe0 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ...........else..............{..
4000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 70 72 6f 70 65 72 74 79 ................switch.(property
4020 2e 70 72 6f 70 65 72 74 79 54 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .propertyType)..................
4040 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 {......................case.Seri
4060 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 46 6c 6f 61 74 3a 0d 0a 20 20 20 20 20 alizedPropertyType.Float:.......
4080 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 ...............{................
40a0 20 20 20 20 20 20 20 20 20 20 70 61 72 73 65 72 2e 50 61 72 73 65 4e 75 6d 62 65 72 28 6f 75 74 ..........parser.ParseNumber(out
40c0 20 76 61 72 20 6e 75 6d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .var.num);......................
40e0 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 28 66 6c 6f 61 74 ....property.floatValue.=.(float
4100 29 6e 75 6d 2e 54 6f 44 6f 75 62 6c 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )num.ToDouble();................
4120 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........break;................
4140 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 ......}........................c
4160 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 53 74 72 69 6e ase.SerializedPropertyType.Strin
4180 67 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 g:......................{.......
41a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 73 65 72 2e 50 61 72 73 65 53 ...................parser.ParseS
41c0 74 72 69 6e 67 56 61 6c 75 65 28 6f 75 74 20 76 61 72 20 73 74 72 29 3b 0d 0a 20 20 20 20 20 20 tringValue(out.var.str);........
41e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 73 74 72 69 6e ..................property.strin
4200 67 56 61 6c 75 65 20 3d 20 73 74 72 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 gValue.=.str.ToString();........
4220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 ..................break;........
4240 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 20 ..............}.................
4260 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 .......case.SerializedPropertyTy
4280 70 65 2e 42 6f 6f 6c 65 61 6e 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 pe.Boolean:.....................
42a0 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 70 61 72 73 .{..........................pars
42c0 65 72 2e 50 61 72 73 65 42 6f 6f 6c 65 61 6e 56 61 6c 75 65 28 6f 75 74 20 76 61 72 20 62 29 3b er.ParseBooleanValue(out.var.b);
42e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 ..........................proper
4300 74 79 2e 62 6f 6f 6c 56 61 6c 75 65 20 3d 20 62 2e 54 6f 42 6f 6f 6c 65 61 6e 28 29 3b 0d 0a 20 ty.boolValue.=.b.ToBoolean();...
4320 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 .......................break;...
4340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ...................}............
4360 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 ............case.SerializedPrope
4380 72 74 79 54 79 70 65 2e 45 6e 75 6d 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rtyType.Enum:...................
43a0 20 20 20 63 61 73 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 54 79 70 65 2e 49 ...case.SerializedPropertyType.I
43c0 6e 74 65 67 65 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a nteger:......................{..
43e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 73 65 72 2e 50 ........................parser.P
4400 61 72 73 65 4e 75 6d 62 65 72 28 6f 75 74 20 76 61 72 20 6e 75 6d 29 3b 0d 0a 20 20 20 20 20 20 arseNumber(out.var.num);........
4420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 ..................property.intVa
4440 6c 75 65 20 3d 20 28 69 6e 74 29 6e 75 6d 2e 54 6f 49 6e 74 65 67 65 72 28 29 3b 0d 0a 20 20 20 lue.=.(int)num.ToInteger();.....
4460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 .....................break;.....
4480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 .................}..............
44a0 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ..........default:..............
44c0 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 6d 65 ............throw.new.NotImpleme
44e0 6e 74 65 64 45 78 63 65 70 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ntedException(..................
4500 20 20 20 20 20 20 20 20 20 20 20 20 24 22 52 65 73 74 6f 72 69 6e 67 20 70 72 6f 70 65 72 74 79 ............$"Restoring.property
4520 20 76 61 6c 75 65 20 6f 66 20 74 79 70 65 20 7b 70 72 6f 70 65 72 74 79 2e 70 72 6f 70 65 72 74 .value.of.type.{property.propert
4540 79 54 79 70 65 7d 20 28 70 72 6f 70 65 72 74 79 3a 20 7b 70 72 6f 70 65 72 74 79 7d 29 22 29 3b yType}.(property:.{property})");
4560 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
4580 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 .}..........}............public.
45a0 73 74 61 74 69 63 20 49 45 6e 75 6d 65 72 61 62 6c 65 3c 53 65 72 69 61 6c 69 7a 65 64 50 72 6f static.IEnumerable<SerializedPro
45c0 70 65 72 74 79 3e 20 47 65 74 43 68 69 6c 64 72 65 6e 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a perty>.GetChildren(this.Serializ
45e0 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d edProperty.property)..........{.
4600 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 70 72 6f 70 65 72 74 79 2e 68 61 73 43 68 .............if.(!property.hasCh
4620 69 6c 64 72 65 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 62 ildren)..................yield.b
4640 72 65 61 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 76 61 72 20 reak;................using.(var.
4660 69 74 65 72 20 3d 20 70 72 6f 70 65 72 74 79 2e 43 6f 70 79 28 29 29 0d 0a 20 20 20 20 20 20 20 iter.=.property.Copy()).........
4680 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 65 6e 64 20 .....{..................var.end.
46a0 3d 20 69 74 65 72 2e 47 65 74 45 6e 64 50 72 6f 70 65 72 74 79 28 74 72 75 65 29 3b 0d 0a 0d 0a =.iter.GetEndProperty(true);....
46c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 6f 20 74 6f 20 66 69 72 73 74 20 63 ................//.Go.to.first.c
46e0 68 69 6c 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 69 74 65 72 hild...................if.(!iter
4700 2e 4e 65 78 74 28 74 72 75 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Next(true))....................
4720 20 20 79 69 65 6c 64 20 62 72 65 61 6b 3b 20 2f 2f 20 53 68 6f 75 6c 64 6e 27 74 20 68 61 70 70 ..yield.break;.//.Shouldn't.happ
4740 65 6e 3b 20 77 65 27 76 65 20 61 6c 72 65 61 64 79 20 65 73 74 61 62 6c 69 73 68 65 64 20 77 65 en;.we've.already.established.we
4760 20 68 61 76 65 20 63 68 69 6c 64 72 65 6e 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .have.children..................
4780 20 20 20 2f 2f 20 49 74 65 72 61 74 65 20 6f 76 65 72 20 63 68 69 6c 64 72 65 6e 2e 0d 0a 20 20 ...//.Iterate.over.children.....
47a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 28 21 53 65 72 69 61 6c 69 7a 65 64 ..............while.(!Serialized
47c0 50 72 6f 70 65 72 74 79 2e 45 71 75 61 6c 43 6f 6e 74 65 6e 74 73 28 69 74 65 72 2c 20 65 6e 64 Property.EqualContents(iter,.end
47e0 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ))..................{...........
4800 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 69 74 65 72 3b 0d 0a 20 ...........yield.return.iter;...
4820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 69 74 65 72 2e 4e 65 78 ...................if.(!iter.Nex
4840 74 28 66 61 6c 73 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 t(false)).......................
4860 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 ...break;..................}....
4880 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 20 ..........}..........}..........
48a0 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 46 69 65 6c 64 49 6e 66 6f 20 47 65 74 46 69 65 ..public.static.FieldInfo.GetFie
48c0 6c 64 28 74 68 69 73 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 ld(this.SerializedProperty.prope
48e0 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 rty)..........{..............var
4900 20 6f 62 6a 65 63 74 54 79 70 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 73 65 72 69 61 6c 69 7a 65 .objectType.=.property.serialize
4920 64 4f 62 6a 65 63 74 2e 74 61 72 67 65 74 4f 62 6a 65 63 74 2e 47 65 74 54 79 70 65 28 29 3b 0d dObject.targetObject.GetType();.
4940 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 53 65 72 69 61 6c 69 7a .............var.currentSerializ
4960 61 62 6c 65 54 79 70 65 20 3d 20 6f 62 6a 65 63 74 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 ableType.=.objectType;..........
4980 20 20 20 20 76 61 72 20 70 61 74 68 43 6f 6d 70 6f 6e 65 6e 74 73 20 3d 20 70 72 6f 70 65 72 74 ....var.pathComponents.=.propert
49a0 79 2e 70 72 6f 70 65 72 74 79 50 61 74 68 2e 53 70 6c 69 74 28 27 2e 27 29 3b 0d 0a 0d 0a 20 20 y.propertyPath.Split('.');......
49c0 20 20 20 20 20 20 20 20 20 20 46 69 65 6c 64 49 6e 66 6f 20 72 65 73 75 6c 74 20 3d 20 6e 75 6c ..........FieldInfo.result.=.nul
49e0 6c 3b 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 63 6f 6d l;..............foreach.(var.com
4a00 70 6f 6e 65 6e 74 20 69 6e 20 70 61 74 68 43 6f 6d 70 6f 6e 65 6e 74 73 29 0d 0a 20 20 20 20 20 ponent.in.pathComponents).......
4a20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 61 6e .......{..................//.Han
4a40 64 6c 65 20 61 72 72 61 79 73 2e 20 54 68 65 79 20 61 72 65 20 66 6f 6c 6c 6f 77 65 64 20 62 79 dle.arrays..They.are.followed.by
4a60 20 22 41 72 72 61 79 22 20 61 6e 64 20 22 64 61 74 61 5b 4e 5d 22 20 65 6c 65 6d 65 6e 74 73 2e ."Array".and."data[N]".elements.
4a80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 73 75 6c 74 20 21 3d 20 ..................if.(result.!=.
4aa0 6e 75 6c 6c 20 26 26 20 63 75 72 72 65 6e 74 53 65 72 69 61 6c 69 7a 61 62 6c 65 54 79 70 65 2e null.&&.currentSerializableType.
4ac0 49 73 41 72 72 61 79 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 IsArray)..................{.....
4ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6d 70 6f 6e 65 6e 74 20 3d .................if.(component.=
4b00 3d 20 22 41 72 72 61 79 22 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =."Array")......................
4b20 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 20 20 20 ....continue;...................
4b40 20 20 20 20 20 69 66 20 28 63 6f 6d 70 6f 6e 65 6e 74 2e 53 74 61 72 74 73 57 69 74 68 28 22 64 .....if.(component.StartsWith("d
4b60 61 74 61 5b 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ata["))......................{..
4b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 53 ........................currentS
4ba0 65 72 69 61 6c 69 7a 61 62 6c 65 54 79 70 65 20 3d 20 63 75 72 72 65 6e 74 53 65 72 69 61 6c 69 erializableType.=.currentSeriali
4bc0 7a 61 62 6c 65 54 79 70 65 2e 47 65 74 45 6c 65 6d 65 6e 74 54 79 70 65 28 29 3b 0d 0a 20 20 20 zableType.GetElementType();.....
4be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a .....................continue;..
4c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 ....................}...........
4c20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 73 75 .......}....................resu
4c40 6c 74 20 3d 20 63 75 72 72 65 6e 74 53 65 72 69 61 6c 69 7a 61 62 6c 65 54 79 70 65 2e 47 65 74 lt.=.currentSerializableType.Get
4c60 46 69 65 6c 64 28 63 6f 6d 70 6f 6e 65 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Field(component,................
4c80 20 20 20 20 20 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 49 6e 73 74 61 6e 63 65 20 7c 20 42 69 ......BindingFlags.Instance.|.Bi
4ca0 6e 64 69 6e 67 46 6c 61 67 73 2e 4e 6f 6e 50 75 62 6c 69 63 20 7c 20 42 69 6e 64 69 6e 67 46 6c ndingFlags.NonPublic.|.BindingFl
4cc0 61 67 73 2e 50 75 62 6c 69 63 20 7c 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 46 6c 61 74 74 65 ags.Public.|.BindingFlags.Flatte
4ce0 6e 48 69 65 72 61 72 63 68 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 nHierarchy);..................if
4d00 20 28 72 65 73 75 6c 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .(result.==.null)...............
4d20 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 20 20 20 20 20 .......return.null;.............
4d40 20 20 20 20 20 63 75 72 72 65 6e 74 53 65 72 69 61 6c 69 7a 61 62 6c 65 54 79 70 65 20 3d 20 72 .....currentSerializableType.=.r
4d60 65 73 75 6c 74 2e 46 69 65 6c 64 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d esult.FieldType;..............}.
4d80 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 72 65 73 75 6c 74 3b 0d 0a 20 ...............return.result;...
4da0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 .......}............public.stati
4dc0 63 20 54 79 70 65 20 47 65 74 46 69 65 6c 64 54 79 70 65 28 74 68 69 73 20 53 65 72 69 61 6c 69 c.Type.GetFieldType(this.Seriali
4de0 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b zedProperty.property)..........{
4e00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 46 69 65 6c 64 28 70 72 ..............return.GetField(pr
4e20 6f 70 65 72 74 79 29 3f 2e 46 69 65 6c 64 54 79 70 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a operty)?.FieldType;..........}..
4e40 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 ....}..}..#endif.//.UNITY_EDITOR
4e60 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 19 00 00 00 53 65 72 69 ............................Seri
4e80 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 65 6c 70 65 72 73 00 00 00 1e 00 00 00 55 6e 69 74 alizedPropertyHelpers.......Unit
4ea0 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 00 00 yEngine.InputSystem.Editor..