summaryrefslogtreecommitdiff
path: root/Library/Artifacts/df/df07eb2f20ef59a93ecd0191b3b8eae1
blob: eeaf1af61fdff73dce835447f25d1f07f19c91a3 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 24 74 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......$t............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 14 14 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 16 00 00 00 53 63 72 6f 6c 6c 52 65 63 74 53 74 61 62 6c 65 4c 61 79 6f ............ScrollRectStableLayo
10a0 75 74 00 00 96 13 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0a 75 73 69 6e 67 20 55 ut......using.System.IO;.using.U
10c0 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 nityEngine;.using.UnityEngine.UI
10e0 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 73 74 54 6f 6f 6c 73 3b 0a 75 ;.using.UnityEngine.TestTools;.u
1100 73 69 6e 67 20 4e 55 6e 69 74 2e 46 72 61 6d 65 77 6f 72 6b 3b 0a 75 73 69 6e 67 20 53 79 73 74 sing.NUnit.Framework;.using.Syst
1120 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f em.Collections;.using.UnityEdito
1140 72 3b 0a 0a 2f 2a 0a 20 54 68 69 73 20 74 65 73 74 20 63 68 65 63 6b 73 20 69 66 20 61 20 63 6c r;../*..This.test.checks.if.a.cl
1160 61 6d 70 65 64 20 73 63 72 6f 6c 6c 52 65 63 74 20 77 69 74 68 20 61 20 63 6f 6e 74 65 6e 74 20 amped.scrollRect.with.a.content.
1180 72 65 63 74 20 74 68 61 74 20 68 61 73 20 74 68 65 20 73 61 6d 65 20 77 69 64 74 68 20 61 6e 64 rect.that.has.the.same.width.and
11a0 20 61 20 63 61 6e 76 61 73 20 77 69 74 68 20 73 63 61 6c 69 6e 67 20 77 69 6c 6c 20 73 74 61 79 .a.canvas.with.scaling.will.stay
11c0 20 73 74 61 62 6c 65 20 66 6f 72 20 35 20 66 72 61 6d 65 73 2e 0a 20 54 65 73 74 20 66 6f 72 20 .stable.for.5.frames...Test.for.
11e0 63 61 73 65 20 28 31 30 31 30 31 37 38 2d 43 6c 61 6d 70 65 64 20 53 63 72 6f 6c 6c 52 65 63 74 case.(1010178-Clamped.ScrollRect
1200 20 77 69 74 68 20 73 63 61 6c 6c 69 6e 67 20 63 61 75 73 65 20 61 20 6c 61 72 67 65 20 73 70 69 .with.scalling.cause.a.large.spi
1220 6b 65 20 69 6e 20 70 65 72 66 6f 72 6d 61 6e 63 65 29 0a 2a 2f 0a 0a 70 75 62 6c 69 63 20 63 6c ke.in.performance).*/..public.cl
1240 61 73 73 20 53 63 72 6f 6c 6c 52 65 63 74 53 74 61 62 6c 65 4c 61 79 6f 75 74 20 3a 20 49 50 72 ass.ScrollRectStableLayout.:.IPr
1260 65 62 75 69 6c 64 53 65 74 75 70 0a 7b 0a 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 20 6d 5f 50 ebuildSetup.{.....GameObject.m_P
1280 72 65 66 61 62 52 6f 6f 74 3b 0a 0a 20 20 20 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 50 72 refabRoot;......const.string.kPr
12a0 65 66 61 62 50 61 74 68 20 3d 20 22 41 73 73 65 74 73 2f 52 65 73 6f 75 72 63 65 73 2f 53 63 72 efabPath.=."Assets/Resources/Scr
12c0 6f 6c 6c 52 65 63 74 53 74 61 62 6c 65 4c 61 79 6f 75 74 50 72 65 66 61 62 2e 70 72 65 66 61 62 ollRectStableLayoutPrefab.prefab
12e0 22 3b 0a 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 75 70 28 29 0a 20 20 20 20 ";......public.void.Setup().....
1300 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 76 61 72 20 72 {.#if.UNITY_EDITOR.........var.r
1320 6f 6f 74 47 4f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 52 6f 6f 74 47 4f 22 29 ootGO.=.new.GameObject("RootGO")
1340 3b 0a 20 20 20 20 20 20 20 20 76 61 72 20 72 6f 6f 74 43 61 6e 76 61 73 47 4f 20 3d 20 6e 65 77 ;.........var.rootCanvasGO.=.new
1360 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 61 6e 76 61 73 22 2c 20 74 79 70 65 6f 66 28 43 61 6e .GameObject("Canvas",.typeof(Can
1380 76 61 73 29 2c 20 74 79 70 65 6f 66 28 43 61 6e 76 61 73 53 63 61 6c 65 72 29 29 3b 0a 20 20 20 vas),.typeof(CanvasScaler));....
13a0 20 20 20 20 20 72 6f 6f 74 43 61 6e 76 61 73 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 .....rootCanvasGO.transform.SetP
13c0 61 72 65 6e 74 28 72 6f 6f 74 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 arent(rootGO.transform);........
13e0 20 76 61 72 20 63 61 6e 76 61 73 20 3d 20 72 6f 6f 74 43 61 6e 76 61 73 47 4f 2e 47 65 74 43 6f .var.canvas.=.rootCanvasGO.GetCo
1400 6d 70 6f 6e 65 6e 74 3c 43 61 6e 76 61 73 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 63 61 6e 76 61 mponent<Canvas>();.........canva
1420 73 2e 72 65 6e 64 65 72 4d 6f 64 65 20 3d 20 52 65 6e 64 65 72 4d 6f 64 65 2e 53 63 72 65 65 6e s.renderMode.=.RenderMode.Screen
1440 53 70 61 63 65 4f 76 65 72 6c 61 79 3b 0a 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 SpaceOverlay;.........var.canvas
1460 53 63 61 6c 65 72 20 3d 20 72 6f 6f 74 43 61 6e 76 61 73 47 4f 2e 47 65 74 43 6f 6d 70 6f 6e 65 Scaler.=.rootCanvasGO.GetCompone
1480 6e 74 3c 43 61 6e 76 61 73 53 63 61 6c 65 72 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 63 61 6e 76 nt<CanvasScaler>();.........canv
14a0 61 73 53 63 61 6c 65 72 2e 75 69 53 63 61 6c 65 4d 6f 64 65 20 3d 20 43 61 6e 76 61 73 53 63 61 asScaler.uiScaleMode.=.CanvasSca
14c0 6c 65 72 2e 53 63 61 6c 65 4d 6f 64 65 2e 53 63 61 6c 65 57 69 74 68 53 63 72 65 65 6e 53 69 7a ler.ScaleMode.ScaleWithScreenSiz
14e0 65 3b 0a 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 53 63 61 6c 65 72 2e 72 65 66 65 72 65 6e 63 e;.........canvasScaler.referenc
1500 65 52 65 73 6f 6c 75 74 69 6f 6e 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 33 38 34 30 2c 20 eResolution.=.new.Vector2(3840,.
1520 32 31 36 30 29 3b 0a 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 53 63 61 6c 65 72 2e 72 65 66 65 2160);.........canvasScaler.refe
1540 72 65 6e 63 65 50 69 78 65 6c 73 50 65 72 55 6e 69 74 20 3d 20 31 32 38 3b 0a 0a 20 20 20 20 20 rencePixelsPerUnit.=.128;.......
1560 20 20 20 76 61 72 20 73 63 72 6f 6c 6c 52 65 63 74 47 6f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 ...var.scrollRectGo.=.new.GameOb
1580 6a 65 63 74 28 22 53 63 72 6f 6c 6c 20 56 69 65 77 22 2c 20 74 79 70 65 6f 66 28 53 63 72 6f 6c ject("Scroll.View",.typeof(Scrol
15a0 6c 52 65 63 74 29 29 3b 0a 20 20 20 20 20 20 20 20 76 61 72 20 73 63 72 6f 6c 6c 52 65 63 74 54 lRect));.........var.scrollRectT
15c0 72 61 6e 73 66 6f 72 6d 20 3d 20 73 63 72 6f 6c 6c 52 65 63 74 47 6f 2e 47 65 74 43 6f 6d 70 6f ransform.=.scrollRectGo.GetCompo
15e0 6e 65 6e 74 3c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 73 nent<RectTransform>();.........s
1600 63 72 6f 6c 6c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 72 6f 6f crollRectTransform.SetParent(roo
1620 74 43 61 6e 76 61 73 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 73 63 tCanvasGO.transform);.........sc
1640 72 6f 6c 6c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 50 6f 73 69 74 69 6f 6e 20 rollRectTransform.localPosition.
1660 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 65 =.Vector3.zero;.........scrollRe
1680 63 74 54 72 61 6e 73 66 6f 72 6d 2e 73 69 7a 65 44 65 6c 74 61 20 3d 20 6e 65 77 20 56 65 63 74 ctTransform.sizeDelta.=.new.Vect
16a0 6f 72 32 28 31 30 30 30 2c 20 31 30 30 30 29 3b 0a 20 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 or2(1000,.1000);.........scrollR
16c0 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 53 63 61 6c 65 20 3d 20 56 65 63 74 6f 72 ectTransform.localScale.=.Vector
16e0 33 2e 6f 6e 65 20 2a 20 31 2e 30 30 30 30 30 35 66 3b 0a 20 20 20 20 20 20 20 20 76 61 72 20 73 3.one.*.1.000005f;.........var.s
1700 63 72 6f 6c 6c 52 65 63 74 20 3d 20 73 63 72 6f 6c 6c 52 65 63 74 47 6f 2e 47 65 74 43 6f 6d 70 crollRect.=.scrollRectGo.GetComp
1720 6f 6e 65 6e 74 3c 53 63 72 6f 6c 6c 52 65 63 74 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 73 63 72 onent<ScrollRect>();.........scr
1740 6f 6c 6c 52 65 63 74 2e 68 6f 72 69 7a 6f 6e 74 61 6c 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 ollRect.horizontal.=.true;......
1760 20 20 20 73 63 72 6f 6c 6c 52 65 63 74 2e 76 65 72 74 69 63 61 6c 20 3d 20 74 72 75 65 3b 0a 20 ...scrollRect.vertical.=.true;..
1780 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 65 63 74 2e 6d 6f 76 65 6d 65 6e 74 54 79 70 65 20 3d .......scrollRect.movementType.=
17a0 20 53 63 72 6f 6c 6c 52 65 63 74 2e 4d 6f 76 65 6d 65 6e 74 54 79 70 65 2e 43 6c 61 6d 70 65 64 .ScrollRect.MovementType.Clamped
17c0 3b 0a 20 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 65 63 74 2e 69 6e 65 72 74 69 61 20 3d 20 74 ;.........scrollRect.inertia.=.t
17e0 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 76 61 72 20 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 rue;..........var.viewportTransf
1800 6f 72 6d 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 56 69 65 77 70 6f 72 74 22 2c orm.=.new.GameObject("Viewport",
1820 20 74 79 70 65 6f 66 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 29 2e 47 65 74 43 6f 6d 70 6f .typeof(RectTransform)).GetCompo
1840 6e 65 6e 74 3c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 76 nent<RectTransform>();.........v
1860 69 65 77 70 6f 72 74 54 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 73 63 72 6f 6c iewportTransform.SetParent(scrol
1880 6c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 76 69 65 77 70 6f 72 lRectTransform);.........viewpor
18a0 74 54 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f tTransform.localPosition.=.Vecto
18c0 72 33 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 6f r3.zero;.........viewportTransfo
18e0 72 6d 2e 6c 6f 63 61 6c 53 63 61 6c 65 20 3d 20 56 65 63 74 6f 72 33 2e 6f 6e 65 3b 0a 20 20 20 rm.localScale.=.Vector3.one;....
1900 20 20 20 20 20 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 6f 72 6d 2e 73 69 7a 65 44 65 6c 74 61 .....viewportTransform.sizeDelta
1920 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 2d 31 37 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 .=.new.Vector2(-17,.0);.........
1940 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 6f 72 6d 2e 61 6e 63 68 6f 72 4d 69 6e 20 3d 20 6e 65 viewportTransform.anchorMin.=.ne
1960 77 20 56 65 63 74 6f 72 32 28 30 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 76 69 65 77 70 6f 72 w.Vector2(0,.0);.........viewpor
1980 74 54 72 61 6e 73 66 6f 72 6d 2e 61 6e 63 68 6f 72 4d 61 78 20 3d 20 6e 65 77 20 56 65 63 74 6f tTransform.anchorMax.=.new.Vecto
19a0 72 32 28 31 2c 20 31 29 3b 0a 20 20 20 20 20 20 20 20 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 r2(1,.1);.........viewportTransf
19c0 6f 72 6d 2e 70 69 76 6f 74 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 30 2c 20 31 29 3b 0a 20 orm.pivot.=.new.Vector2(0,.1);..
19e0 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 65 63 74 2e 76 69 65 77 70 6f 72 74 20 3d 20 76 69 65 .......scrollRect.viewport.=.vie
1a00 77 70 6f 72 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 0a 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6e wportTransform;..........var.con
1a20 74 65 6e 74 47 6f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 6f 6e 74 65 6e 74 tentGo.=.new.GameObject("Content
1a40 22 2c 20 74 79 70 65 6f 66 28 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 29 29 3b 0a 20 20 20 ",.typeof(GridLayoutGroup));....
1a60 20 20 20 20 20 76 61 72 20 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 20 3d 20 63 6f 6e 74 .....var.contentTransform.=.cont
1a80 65 6e 74 47 6f 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 52 65 63 74 54 72 61 6e 73 66 6f 72 6d entGo.GetComponent<RectTransform
1aa0 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 53 65 >();.........contentTransform.Se
1ac0 74 50 61 72 65 6e 74 28 76 69 65 77 70 6f 72 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 tParent(viewportTransform);.....
1ae0 20 20 20 20 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 50 6f 73 69 74 69 ....contentTransform.localPositi
1b00 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 65 on.=.Vector3.zero;.........conte
1b20 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 53 63 61 6c 65 20 3d 20 56 65 63 74 6f 72 33 ntTransform.localScale.=.Vector3
1b40 2e 6f 6e 65 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 73 .one;.........contentTransform.s
1b60 69 7a 65 44 65 6c 74 61 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 30 2c 20 33 30 30 29 3b 0a izeDelta.=.new.Vector2(0,.300);.
1b80 20 20 20 20 20 20 20 20 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 61 6e 63 68 6f 72 4d ........contentTransform.anchorM
1ba0 69 6e 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 30 2c 20 31 29 3b 0a 20 20 20 20 20 20 20 20 in.=.new.Vector2(0,.1);.........
1bc0 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 2e 61 6e 63 68 6f 72 4d 61 78 20 3d 20 6e 65 77 contentTransform.anchorMax.=.new
1be0 20 56 65 63 74 6f 72 32 28 31 2c 20 31 29 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 65 6e 74 54 .Vector2(1,.1);.........contentT
1c00 72 61 6e 73 66 6f 72 6d 2e 70 69 76 6f 74 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 30 2c 20 ransform.pivot.=.new.Vector2(0,.
1c20 31 29 3b 0a 20 20 20 20 20 20 20 20 76 61 72 20 67 72 69 64 4c 61 79 6f 75 74 20 3d 20 63 6f 6e 1);.........var.gridLayout.=.con
1c40 74 65 6e 74 47 6f 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 47 72 69 64 4c 61 79 6f 75 74 47 72 tentGo.GetComponent<GridLayoutGr
1c60 6f 75 70 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 67 72 69 64 4c 61 79 6f 75 74 2e 63 65 6c 6c 53 oup>();.........gridLayout.cellS
1c80 69 7a 65 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 31 30 30 2c 20 31 30 30 29 3b 0a 20 20 20 ize.=.new.Vector2(100,.100);....
1ca0 20 20 20 20 20 67 72 69 64 4c 61 79 6f 75 74 2e 73 74 61 72 74 43 6f 72 6e 65 72 20 3d 20 47 72 .....gridLayout.startCorner.=.Gr
1cc0 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 2e 43 6f 72 6e 65 72 2e 55 70 70 65 72 4c 65 66 74 3b 0a idLayoutGroup.Corner.UpperLeft;.
1ce0 20 20 20 20 20 20 20 20 67 72 69 64 4c 61 79 6f 75 74 2e 73 74 61 72 74 41 78 69 73 20 3d 20 47 ........gridLayout.startAxis.=.G
1d00 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 2e 41 78 69 73 2e 48 6f 72 69 7a 6f 6e 74 61 6c 3b 0a ridLayoutGroup.Axis.Horizontal;.
1d20 20 20 20 20 20 20 20 20 67 72 69 64 4c 61 79 6f 75 74 2e 63 68 69 6c 64 41 6c 69 67 6e 6d 65 6e ........gridLayout.childAlignmen
1d40 74 20 3d 20 54 65 78 74 41 6e 63 68 6f 72 2e 55 70 70 65 72 4c 65 66 74 3b 0a 20 20 20 20 20 20 t.=.TextAnchor.UpperLeft;.......
1d60 20 20 67 72 69 64 4c 61 79 6f 75 74 2e 63 6f 6e 73 74 72 61 69 6e 74 20 3d 20 47 72 69 64 4c 61 ..gridLayout.constraint.=.GridLa
1d80 79 6f 75 74 47 72 6f 75 70 2e 43 6f 6e 73 74 72 61 69 6e 74 2e 46 6c 65 78 69 62 6c 65 3b 0a 20 youtGroup.Constraint.Flexible;..
1da0 20 20 20 20 20 20 20 73 63 72 6f 6c 6c 52 65 63 74 2e 63 6f 6e 74 65 6e 74 20 3d 20 63 6f 6e 74 .......scrollRect.content.=.cont
1dc0 65 6e 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 0a 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 entTransform;..........for.(int.
1de0 69 20 3d 20 30 3b 20 69 20 3c 20 32 30 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 i.=.0;.i.<.20;.i++).........{...
1e00 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 6f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 ..........var.go.=.new.GameObjec
1e20 74 28 22 47 61 6d 65 4f 62 6a 65 63 74 20 28 22 20 2b 20 69 20 2b 20 22 29 22 2c 20 74 79 70 65 t("GameObject.(".+.i.+.")",.type
1e40 6f 66 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 of(RectTransform));.............
1e60 76 61 72 20 74 20 3d 20 67 6f 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 52 65 63 74 54 72 61 6e var.t.=.go.GetComponent<RectTran
1e80 73 66 6f 72 6d 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 2e 53 65 74 50 61 72 65 6e sform>();.............t.SetParen
1ea0 74 28 63 6f 6e 74 65 6e 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 t(contentTransform);............
1ec0 20 74 2e 6c 6f 63 61 6c 53 63 61 6c 65 20 3d 20 56 65 63 74 6f 72 33 2e 6f 6e 65 3b 0a 20 20 20 .t.localScale.=.Vector3.one;....
1ee0 20 20 20 20 20 20 20 20 20 74 2e 70 69 76 6f 74 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 30 .........t.pivot.=.new.Vector2(0
1f00 2e 35 66 2c 20 30 2e 35 66 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 .5f,.0.5f);.........}..........i
1f20 66 20 28 21 44 69 72 65 63 74 6f 72 79 2e 45 78 69 73 74 73 28 22 41 73 73 65 74 73 2f 52 65 73 f.(!Directory.Exists("Assets/Res
1f40 6f 75 72 63 65 73 2f 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 69 72 65 63 74 6f 72 79 ources/")).............Directory
1f60 2e 43 72 65 61 74 65 44 69 72 65 63 74 6f 72 79 28 22 41 73 73 65 74 73 2f 52 65 73 6f 75 72 63 .CreateDirectory("Assets/Resourc
1f80 65 73 2f 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 55 6e 69 74 79 45 64 69 74 6f 72 2e 50 72 65 66 es/");..........UnityEditor.Pref
1fa0 61 62 55 74 69 6c 69 74 79 2e 53 61 76 65 41 73 50 72 65 66 61 62 41 73 73 65 74 28 72 6f 6f 74 abUtility.SaveAsPrefabAsset(root
1fc0 47 4f 2c 20 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 GO,.kPrefabPath);.........GameOb
1fe0 6a 65 63 74 2e 44 65 73 74 72 6f 79 49 6d 6d 65 64 69 61 74 65 28 72 6f 6f 74 47 4f 29 3b 0a 23 ject.DestroyImmediate(rootGO);.#
2000 65 6e 64 69 66 0a 20 20 20 20 7d 0a 0a 20 20 20 20 5b 53 65 74 55 70 5d 0a 20 20 20 20 70 75 62 endif.....}......[SetUp].....pub
2020 6c 69 63 20 76 6f 69 64 20 54 65 73 74 53 65 74 75 70 28 29 0a 20 20 20 20 7b 0a 20 20 20 20 20 lic.void.TestSetup().....{......
2040 20 20 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 20 3d 20 4f 62 6a 65 63 74 2e 49 6e 73 74 61 6e 74 ...m_PrefabRoot.=.Object.Instant
2060 69 61 74 65 28 52 65 73 6f 75 72 63 65 73 2e 4c 6f 61 64 28 22 53 63 72 6f 6c 6c 52 65 63 74 53 iate(Resources.Load("ScrollRectS
2080 74 61 62 6c 65 4c 61 79 6f 75 74 50 72 65 66 61 62 22 29 29 20 61 73 20 47 61 6d 65 4f 62 6a 65 tableLayoutPrefab")).as.GameObje
20a0 63 74 3b 0a 20 20 20 20 20 20 20 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 61 6d 65 ct;.........new.GameObject("Came
20c0 72 61 22 2c 20 74 79 70 65 6f 66 28 43 61 6d 65 72 61 29 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 ra",.typeof(Camera));.....}.....
20e0 20 5b 55 6e 69 74 79 54 65 73 74 5d 0a 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 .[UnityTest].....public.IEnumera
2100 74 6f 72 20 53 63 72 6f 6c 6c 52 65 63 74 5f 53 74 61 62 6c 65 57 68 65 6e 53 74 61 74 69 63 28 tor.ScrollRect_StableWhenStatic(
2120 29 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 72 6f 6f 74 2d 3e 63 61 6e 76 61 73 2d 3e ).....{.........//root->canvas->
2140 73 63 72 6f 6c 6c 20 76 69 65 77 2d 3e 76 69 65 77 70 6f 72 74 2d 3e 63 6f 6e 74 65 6e 74 0a 20 scroll.view->viewport->content..
2160 20 20 20 20 20 20 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 74 20 3d 20 6d 5f 50 72 65 66 61 .......RectTransform.t.=.m_Prefa
2180 62 52 6f 6f 74 2e 74 72 61 6e 73 66 6f 72 6d 2e 47 65 74 43 68 69 6c 64 28 30 29 2e 47 65 74 43 bRoot.transform.GetChild(0).GetC
21a0 68 69 6c 64 28 30 29 2e 47 65 74 43 68 69 6c 64 28 30 29 2e 47 65 74 43 68 69 6c 64 28 30 29 20 hild(0).GetChild(0).GetChild(0).
21c0 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 20 20 20 66 6c 6f 61 74 5b as.RectTransform;.........float[
21e0 5d 20 76 61 6c 75 65 73 20 3d 20 6e 65 77 20 66 6c 6f 61 74 5b 35 5d 3b 0a 20 20 20 20 20 20 20 ].values.=.new.float[5];........
2200 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 76 61 6c 75 65 73 2e 4c 65 6e 67 .for.(int.i.=.0;.i.<.values.Leng
2220 74 68 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 th;.i++).........{.............v
2240 61 6c 75 65 73 5b 69 5d 20 3d 20 74 2e 6c 6f 63 61 6c 50 6f 73 69 74 69 6f 6e 2e 79 3b 0a 20 20 alues[i].=.t.localPosition.y;...
2260 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 20 20 20 ..........yield.return.null;....
2280 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 76 .....}.........Assert.AreEqual(v
22a0 61 6c 75 65 73 5b 30 5d 2c 20 76 61 6c 75 65 73 5b 31 5d 29 3b 0a 20 20 20 20 20 20 20 20 41 73 alues[0],.values[1]);.........As
22c0 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 76 61 6c 75 65 73 5b 31 5d 2c 20 76 61 6c 75 65 73 5b sert.AreEqual(values[1],.values[
22e0 32 5d 29 3b 0a 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 76 61 6c 2]);.........Assert.AreEqual(val
2300 75 65 73 5b 32 5d 2c 20 76 61 6c 75 65 73 5b 33 5d 29 3b 0a 20 20 20 20 20 20 20 20 41 73 73 65 ues[2],.values[3]);.........Asse
2320 72 74 2e 41 72 65 45 71 75 61 6c 28 76 61 6c 75 65 73 5b 33 5d 2c 20 76 61 6c 75 65 73 5b 34 5d rt.AreEqual(values[3],.values[4]
2340 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 5b 54 65 61 72 44 6f 77 6e 5d 0a 20 20 20 20 70 75 62 );.....}......[TearDown].....pub
2360 6c 69 63 20 76 6f 69 64 20 54 65 61 72 44 6f 77 6e 28 29 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 lic.void.TearDown().....{.......
2380 20 20 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 49 6d 6d 65 64 69 61 74 65 28 6d 5f 50 72 65 66 ..Object.DestroyImmediate(m_Pref
23a0 61 62 52 6f 6f 74 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 5b 4f 6e 65 54 69 6d 65 54 65 61 72 abRoot);.....}......[OneTimeTear
23c0 44 6f 77 6e 5d 0a 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 65 54 69 6d 65 54 65 61 Down].....public.void.OneTimeTea
23e0 72 44 6f 77 6e 28 29 0a 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 rDown().....{.#if.UNITY_EDITOR..
2400 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 44 65 6c 65 74 65 41 73 73 65 74 .......AssetDatabase.DeleteAsset
2420 28 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 7d 0a 7d 0a 00 00 (kPrefabPath);.#endif.....}.}...
2440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 53 63 72 6f 6c 6c 52 65 ........................ScrollRe
2460 63 74 53 74 61 62 6c 65 4c 61 79 6f 75 74 00 00 00 00 00 00 ctStableLayout......