summaryrefslogtreecommitdiff
path: root/Library/Artifacts/43/43a98529fd7bc49cd930fda59cb73610
blob: 8eb36aa1af3aa951dabf3e0df091de50837e9cc7 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 41 54 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......AT............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 f4 30 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 .0..............................
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 0f 00 00 00 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 00 75 30 00 00 ............GridLayoutGroup.u0..
10a0 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e using.UnityEngine;.using.System.
10c0 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 Collections.Generic;..namespace.
10e0 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 0a 7b 0a 20 20 20 20 5b 41 64 64 43 6f 6d 70 6f 6e 65 UnityEngine.UI.{.....[AddCompone
1100 6e 74 4d 65 6e 75 28 22 4c 61 79 6f 75 74 2f 47 72 69 64 20 4c 61 79 6f 75 74 20 47 72 6f 75 70 ntMenu("Layout/Grid.Layout.Group
1120 22 2c 20 31 35 32 29 5d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f ",.152)].....///.<summary>...../
1140 2f 2f 20 4c 61 79 6f 75 74 20 63 6c 61 73 73 20 74 6f 20 61 72 72 61 6e 67 65 20 63 68 69 6c 64 //.Layout.class.to.arrange.child
1160 20 65 6c 65 6d 65 6e 74 73 20 69 6e 20 61 20 67 72 69 64 20 66 6f 72 6d 61 74 2e 0a 20 20 20 20 .elements.in.a.grid.format......
1180 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e ///.</summary>.....///.<remarks>
11a0 0a 20 20 20 20 2f 2f 2f 20 54 68 65 20 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 63 6f 6d .....///.The.GridLayoutGroup.com
11c0 70 6f 6e 65 6e 74 20 69 73 20 75 73 65 64 20 74 6f 20 6c 61 79 6f 75 74 20 63 68 69 6c 64 20 6c ponent.is.used.to.layout.child.l
11e0 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 73 20 69 6e 20 61 20 75 6e 69 66 6f 72 6d 20 67 72 69 64 ayout.elements.in.a.uniform.grid
1200 20 77 68 65 72 65 20 61 6c 6c 20 63 65 6c 6c 73 20 68 61 76 65 20 74 68 65 20 73 61 6d 65 20 73 .where.all.cells.have.the.same.s
1220 69 7a 65 2e 20 54 68 65 20 73 69 7a 65 20 61 6e 64 20 74 68 65 20 73 70 61 63 69 6e 67 20 62 65 ize..The.size.and.the.spacing.be
1240 74 77 65 65 6e 20 63 65 6c 6c 73 20 69 73 20 63 6f 6e 74 72 6f 6c 6c 65 64 20 62 79 20 74 68 65 tween.cells.is.controlled.by.the
1260 20 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 69 74 73 65 6c 66 2e 20 54 68 65 20 63 68 69 .GridLayoutGroup.itself..The.chi
1280 6c 64 72 65 6e 20 68 61 76 65 20 6e 6f 20 69 6e 66 6c 75 65 6e 63 65 20 6f 6e 20 74 68 65 69 72 ldren.have.no.influence.on.their
12a0 20 73 69 7a 65 73 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 70 .sizes......///.</remarks>.....p
12c0 75 62 6c 69 63 20 63 6c 61 73 73 20 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 3a 20 4c 61 ublic.class.GridLayoutGroup.:.La
12e0 79 6f 75 74 47 72 6f 75 70 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d youtGroup.....{.........///.<sum
1300 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 69 63 68 20 63 6f 72 6e 65 72 20 69 mary>.........///.Which.corner.i
1320 73 20 74 68 65 20 73 74 61 72 74 69 6e 67 20 63 6f 72 6e 65 72 20 66 6f 72 20 74 68 65 20 67 72 s.the.starting.corner.for.the.gr
1340 69 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 id..........///.</summary>......
1360 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 43 6f 72 6e 65 72 0a 20 20 20 20 20 20 20 20 7b 0a ...public.enum.Corner.........{.
1380 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 ............///.<summary>.......
13a0 20 20 20 20 20 20 2f 2f 2f 20 55 70 70 65 72 20 4c 65 66 74 20 63 6f 72 6e 65 72 2e 0a 20 20 20 ......///.Upper.Left.corner.....
13c0 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 .........///.</summary>.........
13e0 20 20 20 20 55 70 70 65 72 4c 65 66 74 20 3d 20 30 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f ....UpperLeft.=.0,............./
1400 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 70 70 //.<summary>.............///.Upp
1420 65 72 20 52 69 67 68 74 20 63 6f 72 6e 65 72 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f er.Right.corner..............///
1440 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 70 70 65 72 52 69 67 .</summary>.............UpperRig
1460 68 74 20 3d 20 31 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 ht.=.1,.............///.<summary
1480 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 4c 6f 77 65 72 20 4c 65 66 74 20 63 6f 72 >.............///.Lower.Left.cor
14a0 6e 65 72 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a ner..............///.</summary>.
14c0 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 77 65 72 4c 65 66 74 20 3d 20 32 2c 0a 20 20 20 20 20 ............LowerLeft.=.2,......
14e0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 .......///.<summary>............
1500 20 2f 2f 2f 20 4c 6f 77 65 72 20 52 69 67 68 74 20 63 6f 72 6e 65 72 2e 0a 20 20 20 20 20 20 20 .///.Lower.Right.corner.........
1520 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 .....///.</summary>.............
1540 4c 6f 77 65 72 52 69 67 68 74 20 3d 20 33 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 LowerRight.=.3.........}........
1560 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 ..///.<summary>.........///.The.
1580 67 72 69 64 20 61 78 69 73 20 77 65 20 61 72 65 20 6c 6f 6f 6b 69 6e 67 20 61 74 2e 0a 20 20 20 grid.axis.we.are.looking.at.....
15a0 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .....///.</summary>.........///.
15c0 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 73 20 74 68 65 20 73 74 6f <remarks>.........///.As.the.sto
15e0 72 61 67 65 20 69 73 20 61 20 5b 5d 5b 5d 20 77 65 20 6d 61 6b 65 20 61 63 63 65 73 73 20 65 61 rage.is.a.[][].we.make.access.ea
1600 73 69 65 72 20 62 79 20 70 61 73 73 69 6e 67 20 61 20 61 78 69 73 2e 0a 20 20 20 20 20 20 20 20 sier.by.passing.a.axis..........
1620 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 6e ///.</remarks>.........public.en
1640 75 6d 20 41 78 69 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f um.Axis.........{.............//
1660 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 48 6f 72 69 /.<summary>.............///.Hori
1680 7a 6f 6e 74 61 6c 20 61 78 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 zontal.axis.............///.</su
16a0 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 48 6f 72 69 7a 6f 6e 74 61 6c 20 3d 20 mmary>.............Horizontal.=.
16c0 30 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 0,.............///.<summary>....
16e0 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 56 65 72 74 69 63 61 6c 20 61 78 69 73 2e 0a 20 20 20 20 .........///.Vertical.axis......
1700 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 ........///.</summary>..........
1720 20 20 20 56 65 72 74 69 63 61 6c 20 3d 20 31 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ...Vertical.=.1.........}.......
1740 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e ...///.<summary>.........///.Con
1760 73 74 72 61 69 6e 74 20 74 79 70 65 20 6f 6e 20 65 69 74 68 65 72 20 74 68 65 20 6e 75 6d 62 65 straint.type.on.either.the.numbe
1780 72 20 6f 66 20 63 6f 6c 75 6d 6e 73 20 6f 72 20 72 6f 77 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f r.of.columns.or.rows..........//
17a0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d /.</summary>.........public.enum
17c0 20 43 6f 6e 73 74 72 61 69 6e 74 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 .Constraint.........{...........
17e0 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 ..///.<summary>.............///.
1800 44 6f 6e 27 74 20 63 6f 6e 73 74 72 61 69 6e 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 72 6f Don't.constrain.the.number.of.ro
1820 77 73 20 6f 72 20 63 6f 6c 75 6d 6e 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ws.or.columns..............///.<
1840 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 6c 65 78 69 62 6c 65 20 3d /summary>.............Flexible.=
1860 20 30 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 .0,.............///.<summary>...
1880 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 61 69 6e 20 74 68 65 20 6e 75 6d 62 ..........///.Constrain.the.numb
18a0 65 72 20 6f 66 20 63 6f 6c 75 6d 6e 73 20 74 6f 20 61 20 73 70 65 63 69 66 69 65 64 20 6e 75 6d er.of.columns.to.a.specified.num
18c0 62 65 72 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a ber..............///.</summary>.
18e0 20 20 20 20 20 20 20 20 20 20 20 20 46 69 78 65 64 43 6f 6c 75 6d 6e 43 6f 75 6e 74 20 3d 20 31 ............FixedColumnCount.=.1
1900 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 ,.............///.<summary>.....
1920 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 61 69 6e 74 20 74 68 65 20 6e 75 6d 62 65 ........///.Constraint.the.numbe
1940 72 20 6f 66 20 72 6f 77 73 20 74 6f 20 61 20 73 70 65 63 69 66 69 65 64 20 6e 75 6d 62 65 72 2e r.of.rows.to.a.specified.number.
1960 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 .............///.</summary>.....
1980 20 20 20 20 20 20 20 20 46 69 78 65 64 52 6f 77 43 6f 75 6e 74 20 3d 20 32 0a 20 20 20 20 20 20 ........FixedRowCount.=.2.......
19a0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 ..}..........[SerializeField].pr
19c0 6f 74 65 63 74 65 64 20 43 6f 72 6e 65 72 20 6d 5f 53 74 61 72 74 43 6f 72 6e 65 72 20 3d 20 43 otected.Corner.m_StartCorner.=.C
19e0 6f 72 6e 65 72 2e 55 70 70 65 72 4c 65 66 74 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 orner.UpperLeft;..........///.<s
1a00 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 69 63 68 20 63 6f 72 6e 65 72 ummary>.........///.Which.corner
1a20 20 73 68 6f 75 6c 64 20 74 68 65 20 66 69 72 73 74 20 63 65 6c 6c 20 62 65 20 70 6c 61 63 65 64 .should.the.first.cell.be.placed
1a40 20 69 6e 3f 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 .in?.........///.</summary>.....
1a60 20 20 20 20 70 75 62 6c 69 63 20 43 6f 72 6e 65 72 20 73 74 61 72 74 43 6f 72 6e 65 72 20 7b 20 ....public.Corner.startCorner.{.
1a80 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 74 61 72 74 43 6f 72 6e 65 72 3b 20 7d 20 73 65 get.{.return.m_StartCorner;.}.se
1aa0 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 53 74 61 72 74 43 6f 72 6e 65 t.{.SetProperty(ref.m_StartCorne
1ac0 72 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 r,.value);.}.}..........[Seriali
1ae0 7a 65 46 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 41 78 69 73 20 6d 5f 53 74 61 72 74 41 zeField].protected.Axis.m_StartA
1b00 78 69 73 20 3d 20 41 78 69 73 2e 48 6f 72 69 7a 6f 6e 74 61 6c 3b 0a 0a 20 20 20 20 20 20 20 20 xis.=.Axis.Horizontal;..........
1b20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 69 63 68 20 ///.<summary>.........///.Which.
1b40 61 78 69 73 20 73 68 6f 75 6c 64 20 63 65 6c 6c 73 20 62 65 20 70 6c 61 63 65 64 20 61 6c 6f 6e axis.should.cells.be.placed.alon
1b60 67 20 66 69 72 73 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 g.first.........///.</summary>..
1b80 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f .......///.<remarks>.........///
1ba0 20 57 68 65 6e 20 73 74 61 72 74 41 78 69 73 20 69 73 20 73 65 74 20 74 6f 20 68 6f 72 69 7a 6f .When.startAxis.is.set.to.horizo
1bc0 6e 74 61 6c 2c 20 61 6e 20 65 6e 74 69 72 65 20 72 6f 77 20 77 69 6c 6c 20 62 65 20 66 69 6c 6c ntal,.an.entire.row.will.be.fill
1be0 65 64 20 6f 75 74 20 62 65 66 6f 72 65 20 70 72 6f 63 65 65 64 69 6e 67 20 74 6f 20 74 68 65 20 ed.out.before.proceeding.to.the.
1c00 6e 65 78 74 20 72 6f 77 2e 20 57 68 65 6e 20 73 65 74 20 74 6f 20 76 65 72 74 69 63 61 6c 2c 20 next.row..When.set.to.vertical,.
1c20 61 6e 20 65 6e 74 69 72 65 20 63 6f 6c 75 6d 6e 20 77 69 6c 6c 20 62 65 20 66 69 6c 6c 65 64 20 an.entire.column.will.be.filled.
1c40 6f 75 74 20 62 65 66 6f 72 65 20 70 72 6f 63 65 65 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 78 out.before.proceeding.to.the.nex
1c60 74 20 63 6f 6c 75 6d 6e 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e t.column..........///.</remarks>
1c80 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 78 69 73 20 73 74 61 72 74 41 78 69 73 20 7b .........public.Axis.startAxis.{
1ca0 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 74 61 72 74 41 78 69 73 3b 20 7d 20 73 65 74 .get.{.return.m_StartAxis;.}.set
1cc0 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 53 74 61 72 74 41 78 69 73 2c 20 .{.SetProperty(ref.m_StartAxis,.
1ce0 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 value);.}.}..........[SerializeF
1d00 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 56 65 63 74 6f 72 32 20 6d 5f 43 65 6c 6c 53 69 ield].protected.Vector2.m_CellSi
1d20 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 0a 20 20 20 ze.=.new.Vector2(100,.100);.....
1d40 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 .....///.<summary>.........///.T
1d60 68 65 20 73 69 7a 65 20 74 6f 20 75 73 65 20 66 6f 72 20 65 61 63 68 20 63 65 6c 6c 20 69 6e 20 he.size.to.use.for.each.cell.in.
1d80 74 68 65 20 67 72 69 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e the.grid..........///.</summary>
1da0 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 32 20 63 65 6c 6c 53 69 7a 65 .........public.Vector2.cellSize
1dc0 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 65 6c 6c 53 69 7a 65 3b 20 7d 20 73 65 .{.get.{.return.m_CellSize;.}.se
1de0 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 43 65 6c 6c 53 69 7a 65 2c 20 t.{.SetProperty(ref.m_CellSize,.
1e00 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 value);.}.}..........[SerializeF
1e20 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 56 65 63 74 6f 72 32 20 6d 5f 53 70 61 63 69 6e ield].protected.Vector2.m_Spacin
1e40 67 20 3d 20 56 65 63 74 6f 72 32 2e 7a 65 72 6f 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c g.=.Vector2.zero;..........///.<
1e60 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 70 61 63 69 6e 67 summary>.........///.The.spacing
1e80 20 74 6f 20 75 73 65 20 62 65 74 77 65 65 6e 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 73 20 .to.use.between.layout.elements.
1ea0 69 6e 20 74 68 65 20 67 72 69 64 20 6f 6e 20 62 6f 74 68 20 61 78 69 73 65 73 2e 0a 20 20 20 20 in.the.grid.on.both.axises......
1ec0 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 ....///.</summary>.........publi
1ee0 63 20 56 65 63 74 6f 72 32 20 73 70 61 63 69 6e 67 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e c.Vector2.spacing.{.get.{.return
1f00 20 6d 5f 53 70 61 63 69 6e 67 3b 20 7d 20 73 65 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 .m_Spacing;.}.set.{.SetProperty(
1f20 72 65 66 20 6d 5f 53 70 61 63 69 6e 67 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 ref.m_Spacing,.value);.}.}......
1f40 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 43 ....[SerializeField].protected.C
1f60 6f 6e 73 74 72 61 69 6e 74 20 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 3d 20 43 6f 6e 73 74 72 61 onstraint.m_Constraint.=.Constra
1f80 69 6e 74 2e 46 6c 65 78 69 62 6c 65 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d int.Flexible;..........///.<summ
1fa0 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 69 63 68 20 63 6f 6e 73 74 72 61 69 6e ary>.........///.Which.constrain
1fc0 74 20 74 6f 20 75 73 65 20 66 6f 72 20 74 68 65 20 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 t.to.use.for.the.GridLayoutGroup
1fe0 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 ..........///.</summary>........
2000 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 65 63 69 .///.<remarks>.........///.Speci
2020 66 79 69 6e 67 20 61 20 63 6f 6e 73 74 72 61 69 6e 74 20 63 61 6e 20 6d 61 6b 65 20 74 68 65 20 fying.a.constraint.can.make.the.
2040 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 77 6f 72 6b 20 62 65 74 74 65 72 20 69 6e 20 63 GridLayoutGroup.work.better.in.c
2060 6f 6e 6a 75 6e 63 74 69 6f 6e 20 77 69 74 68 20 61 20 5b 5b 43 6f 6e 74 65 6e 74 53 69 7a 65 46 onjunction.with.a.[[ContentSizeF
2080 69 74 74 65 72 5d 5d 20 63 6f 6d 70 6f 6e 65 6e 74 2e 20 57 68 65 6e 20 47 72 69 64 4c 61 79 6f itter]].component..When.GridLayo
20a0 75 74 47 72 6f 75 70 20 69 73 20 75 73 65 64 20 6f 6e 20 61 20 52 65 63 74 54 72 61 6e 73 66 6f utGroup.is.used.on.a.RectTransfo
20c0 72 6d 20 77 69 74 68 20 61 20 6d 61 6e 75 61 6c 6c 79 20 73 70 65 63 69 66 69 65 64 20 73 69 7a rm.with.a.manually.specified.siz
20e0 65 2c 20 74 68 65 72 65 27 73 20 6e 6f 20 6e 65 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 61 20 e,.there's.no.need.to.specify.a.
2100 63 6f 6e 73 74 72 61 69 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b constraint..........///.</remark
2120 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 6f 6e 73 74 72 61 69 6e 74 20 63 6f 6e s>.........public.Constraint.con
2140 73 74 72 61 69 6e 74 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 6f 6e 73 74 72 61 straint.{.get.{.return.m_Constra
2160 69 6e 74 3b 20 7d 20 73 65 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 43 int;.}.set.{.SetProperty(ref.m_C
2180 6f 6e 73 74 72 61 69 6e 74 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 onstraint,.value);.}.}..........
21a0 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 69 6e 74 20 6d [SerializeField].protected.int.m
21c0 5f 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 20 3d 20 32 3b 0a 0a 20 20 20 20 20 20 20 20 2f _ConstraintCount.=.2;........../
21e0 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 48 6f 77 20 6d 61 6e //.<summary>.........///.How.man
2200 79 20 63 65 6c 6c 73 20 74 68 65 72 65 20 73 68 6f 75 6c 64 20 62 65 20 61 6c 6f 6e 67 20 74 68 y.cells.there.should.be.along.th
2220 65 20 63 6f 6e 73 74 72 61 69 6e 65 64 20 61 78 69 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 e.constrained.axis..........///.
2240 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 63 6f </summary>.........public.int.co
2260 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 nstraintCount.{.get.{.return.m_C
2280 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 3b 20 7d 20 73 65 74 20 7b 20 53 65 74 50 72 6f 70 65 onstraintCount;.}.set.{.SetPrope
22a0 72 74 79 28 72 65 66 20 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 2c 20 4d 61 74 68 66 rty(ref.m_ConstraintCount,.Mathf
22c0 2e 4d 61 78 28 31 2c 20 76 61 6c 75 65 29 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 .Max(1,.value));.}.}..........pr
22e0 6f 74 65 63 74 65 64 20 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 28 29 0a 20 20 20 20 20 20 otected.GridLayoutGroup().......
2300 20 20 7b 7d 0a 0a 20 20 20 20 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 ..{}..........#if.UNITY_EDITOR..
2320 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f .......protected.override.void.O
2340 6e 56 61 6c 69 64 61 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 nValidate().........{...........
2360 20 20 62 61 73 65 2e 4f 6e 56 61 6c 69 64 61 74 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ..base.OnValidate();............
2380 20 63 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 20 3d 20 63 6f 6e 73 74 72 61 69 6e 74 43 6f 75 .constraintCount.=.constraintCou
23a0 6e 74 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 23 65 6e 64 69 66 0a 0a 20 nt;.........}..........#endif...
23c0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f .......///.<summary>.........///
23e0 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 6c 61 79 6f 75 74 20 73 79 73 74 65 6d 20 74 6f 20 .Called.by.the.layout.system.to.
2400 63 61 6c 63 75 6c 61 74 65 20 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 6c 61 79 6f 75 74 20 calculate.the.horizontal.layout.
2420 73 69 7a 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 20 73 65 65 20 49 4c 61 79 6f size..........///.Also.see.ILayo
2440 75 74 45 6c 65 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e utElement.........///.</summary>
2460 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 43 61 .........public.override.void.Ca
2480 6c 63 75 6c 61 74 65 4c 61 79 6f 75 74 49 6e 70 75 74 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 0a 20 lculateLayoutInputHorizontal()..
24a0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 43 61 6c 63 75 6c .......{.............base.Calcul
24c0 61 74 65 4c 61 79 6f 75 74 49 6e 70 75 74 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 0a 20 20 20 ateLayoutInputHorizontal();.....
24e0 20 20 20 20 20 20 20 20 20 69 6e 74 20 6d 69 6e 43 6f 6c 75 6d 6e 73 20 3d 20 30 3b 0a 20 20 20 .........int.minColumns.=.0;....
2500 20 20 20 20 20 20 20 20 20 69 6e 74 20 70 72 65 66 65 72 72 65 64 43 6f 6c 75 6d 6e 73 20 3d 20 .........int.preferredColumns.=.
2520 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 0;.............if.(m_Constraint.
2540 3d 3d 20 43 6f 6e 73 74 72 61 69 6e 74 2e 46 69 78 65 64 43 6f 6c 75 6d 6e 43 6f 75 6e 74 29 0a ==.Constraint.FixedColumnCount).
2560 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 ............{.................mi
2580 6e 43 6f 6c 75 6d 6e 73 20 3d 20 70 72 65 66 65 72 72 65 64 43 6f 6c 75 6d 6e 73 20 3d 20 6d 5f nColumns.=.preferredColumns.=.m_
25a0 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 ConstraintCount;.............}..
25c0 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 ...........else.if.(m_Constraint
25e0 20 3d 3d 20 43 6f 6e 73 74 72 61 69 6e 74 2e 46 69 78 65 64 52 6f 77 43 6f 75 6e 74 29 0a 20 20 .==.Constraint.FixedRowCount)...
2600 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 43 ..........{.................minC
2620 6f 6c 75 6d 6e 73 20 3d 20 70 72 65 66 65 72 72 65 64 43 6f 6c 75 6d 6e 73 20 3d 20 4d 61 74 68 olumns.=.preferredColumns.=.Math
2640 66 2e 43 65 69 6c 54 6f 49 6e 74 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 2f f.CeilToInt(rectChildren.Count./
2660 20 28 66 6c 6f 61 74 29 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 20 2d 20 30 2e 30 30 .(float)m_ConstraintCount.-.0.00
2680 31 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 1f);.............}.............e
26a0 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lse.............{...............
26c0 20 20 6d 69 6e 43 6f 6c 75 6d 6e 73 20 3d 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..minColumns.=.1;...............
26e0 20 20 70 72 65 66 65 72 72 65 64 43 6f 6c 75 6d 6e 73 20 3d 20 4d 61 74 68 66 2e 43 65 69 6c 54 ..preferredColumns.=.Mathf.CeilT
2700 6f 49 6e 74 28 4d 61 74 68 66 2e 53 71 72 74 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 oInt(Mathf.Sqrt(rectChildren.Cou
2720 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 nt));.............}.............
2740 20 53 65 74 4c 61 79 6f 75 74 49 6e 70 75 74 46 6f 72 41 78 69 73 28 0a 20 20 20 20 20 20 20 20 .SetLayoutInputForAxis(.........
2760 20 20 20 20 20 20 20 20 70 61 64 64 69 6e 67 2e 68 6f 72 69 7a 6f 6e 74 61 6c 20 2b 20 28 63 65 ........padding.horizontal.+.(ce
2780 6c 6c 53 69 7a 65 2e 78 20 2b 20 73 70 61 63 69 6e 67 2e 78 29 20 2a 20 6d 69 6e 43 6f 6c 75 6d llSize.x.+.spacing.x).*.minColum
27a0 6e 73 20 2d 20 73 70 61 63 69 6e 67 2e 78 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ns.-.spacing.x,.................
27c0 70 61 64 64 69 6e 67 2e 68 6f 72 69 7a 6f 6e 74 61 6c 20 2b 20 28 63 65 6c 6c 53 69 7a 65 2e 78 padding.horizontal.+.(cellSize.x
27e0 20 2b 20 73 70 61 63 69 6e 67 2e 78 29 20 2a 20 70 72 65 66 65 72 72 65 64 43 6f 6c 75 6d 6e 73 .+.spacing.x).*.preferredColumns
2800 20 2d 20 73 70 61 63 69 6e 67 2e 78 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 31 .-.spacing.x,.................-1
2820 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 ,.0);.........}..........///.<su
2840 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 mmary>.........///.Called.by.the
2860 20 6c 61 79 6f 75 74 20 73 79 73 74 65 6d 20 74 6f 20 63 61 6c 63 75 6c 61 74 65 20 74 68 65 20 .layout.system.to.calculate.the.
2880 76 65 72 74 69 63 61 6c 20 6c 61 79 6f 75 74 20 73 69 7a 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f vertical.layout.size..........//
28a0 2f 20 41 6c 73 6f 20 73 65 65 20 49 4c 61 79 6f 75 74 45 6c 65 6d 65 6e 74 0a 20 20 20 20 20 20 /.Also.see.ILayoutElement.......
28c0 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ..///.</summary>.........public.
28e0 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 43 61 6c 63 75 6c 61 74 65 4c 61 79 6f 75 74 49 6e 70 override.void.CalculateLayoutInp
2900 75 74 56 65 72 74 69 63 61 6c 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 utVertical().........{..........
2920 20 20 20 69 6e 74 20 6d 69 6e 52 6f 77 73 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...int.minRows.=.0;.............
2940 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 3d 3d 20 43 6f 6e 73 74 72 61 69 6e 74 2e 46 if.(m_Constraint.==.Constraint.F
2960 69 78 65 64 43 6f 6c 75 6d 6e 43 6f 75 6e 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 ixedColumnCount).............{..
2980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 52 6f 77 73 20 3d 20 4d 61 74 68 66 2e 43 ...............minRows.=.Mathf.C
29a0 65 69 6c 54 6f 49 6e 74 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 2f 20 28 66 eilToInt(rectChildren.Count./.(f
29c0 6c 6f 61 74 29 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 20 2d 20 30 2e 30 30 31 66 29 loat)m_ConstraintCount.-.0.001f)
29e0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 ;.............}.............else
2a00 20 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 3d 3d 20 43 6f 6e 73 74 72 61 69 6e 74 2e .if.(m_Constraint.==.Constraint.
2a20 46 69 78 65 64 52 6f 77 43 6f 75 6e 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 FixedRowCount).............{....
2a40 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 52 6f 77 73 20 3d 20 6d 5f 43 6f 6e 73 74 72 61 .............minRows.=.m_Constra
2a60 69 6e 74 43 6f 75 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 intCount;.............}.........
2a80 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 ....else.............{..........
2aa0 20 20 20 20 20 20 20 66 6c 6f 61 74 20 77 69 64 74 68 20 3d 20 72 65 63 74 54 72 61 6e 73 66 6f .......float.width.=.rectTransfo
2ac0 72 6d 2e 72 65 63 74 2e 77 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 rm.rect.width;.................i
2ae0 6e 74 20 63 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 4d 61 74 68 66 2e 4d 61 78 28 31 2c 20 4d 61 74 nt.cellCountX.=.Mathf.Max(1,.Mat
2b00 68 66 2e 46 6c 6f 6f 72 54 6f 49 6e 74 28 28 77 69 64 74 68 20 2d 20 70 61 64 64 69 6e 67 2e 68 hf.FloorToInt((width.-.padding.h
2b20 6f 72 69 7a 6f 6e 74 61 6c 20 2b 20 73 70 61 63 69 6e 67 2e 78 20 2b 20 30 2e 30 30 31 66 29 20 orizontal.+.spacing.x.+.0.001f).
2b40 2f 20 28 63 65 6c 6c 53 69 7a 65 2e 78 20 2b 20 73 70 61 63 69 6e 67 2e 78 29 29 29 3b 0a 20 20 /.(cellSize.x.+.spacing.x)));...
2b60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 52 6f 77 73 20 3d 20 4d 61 74 68 66 2e 43 65 ..............minRows.=.Mathf.Ce
2b80 69 6c 54 6f 49 6e 74 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 2f 20 28 66 6c ilToInt(rectChildren.Count./.(fl
2ba0 6f 61 74 29 63 65 6c 6c 43 6f 75 6e 74 58 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a oat)cellCountX);.............}..
2bc0 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 69 6e 53 70 61 63 65 20 3d 20 70 61 64 ............float.minSpace.=.pad
2be0 64 69 6e 67 2e 76 65 72 74 69 63 61 6c 20 2b 20 28 63 65 6c 6c 53 69 7a 65 2e 79 20 2b 20 73 70 ding.vertical.+.(cellSize.y.+.sp
2c00 61 63 69 6e 67 2e 79 29 20 2a 20 6d 69 6e 52 6f 77 73 20 2d 20 73 70 61 63 69 6e 67 2e 79 3b 0a acing.y).*.minRows.-.spacing.y;.
2c20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 74 4c 61 79 6f 75 74 49 6e 70 75 74 46 6f 72 41 78 69 ............SetLayoutInputForAxi
2c40 73 28 6d 69 6e 53 70 61 63 65 2c 20 6d 69 6e 53 70 61 63 65 2c 20 2d 31 2c 20 31 29 3b 0a 20 20 s(minSpace,.minSpace,.-1,.1);...
2c60 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 ......}..........///.<summary>..
2c80 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 6c 61 79 6f 75 74 20 .......///.Called.by.the.layout.
2ca0 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 20 73 65 65 20 49 4c 61 79 system.........///.Also.see.ILay
2cc0 6f 75 74 45 6c 65 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 outElement.........///.</summary
2ce0 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 53 >.........public.override.void.S
2d00 65 74 4c 61 79 6f 75 74 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 etLayoutHorizontal().........{..
2d20 20 20 20 20 20 20 20 20 20 20 20 53 65 74 43 65 6c 6c 73 41 6c 6f 6e 67 41 78 69 73 28 30 29 3b ...........SetCellsAlongAxis(0);
2d40 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .........}..........///.<summary
2d60 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 6c 61 79 6f >.........///.Called.by.the.layo
2d80 75 74 20 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 20 73 65 65 20 49 ut.system.........///.Also.see.I
2da0 4c 61 79 6f 75 74 45 6c 65 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d LayoutElement.........///.</summ
2dc0 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 ary>.........public.override.voi
2de0 64 20 53 65 74 4c 61 79 6f 75 74 56 65 72 74 69 63 61 6c 28 29 0a 20 20 20 20 20 20 20 20 7b 0a d.SetLayoutVertical().........{.
2e00 20 20 20 20 20 20 20 20 20 20 20 20 53 65 74 43 65 6c 6c 73 41 6c 6f 6e 67 41 78 69 73 28 31 29 ............SetCellsAlongAxis(1)
2e20 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 ;.........}..........private.voi
2e40 64 20 53 65 74 43 65 6c 6c 73 41 6c 6f 6e 67 41 78 69 73 28 69 6e 74 20 61 78 69 73 29 0a 20 20 d.SetCellsAlongAxis(int.axis)...
2e60 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 72 6d 61 6c 6c 79 20 ......{.............//.Normally.
2e80 61 20 4c 61 79 6f 75 74 20 43 6f 6e 74 72 6f 6c 6c 65 72 20 73 68 6f 75 6c 64 20 6f 6e 6c 79 20 a.Layout.Controller.should.only.
2ea0 73 65 74 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 76 61 6c 75 65 73 20 77 68 65 6e 20 69 6e 76 6f 6b set.horizontal.values.when.invok
2ec0 65 64 20 66 6f 72 20 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 78 69 73 0a 20 20 20 20 20 ed.for.the.horizontal.axis......
2ee0 20 20 20 20 20 20 20 2f 2f 20 61 6e 64 20 6f 6e 6c 79 20 76 65 72 74 69 63 61 6c 20 76 61 6c 75 .......//.and.only.vertical.valu
2f00 65 73 20 77 68 65 6e 20 69 6e 76 6f 6b 65 64 20 66 6f 72 20 74 68 65 20 76 65 72 74 69 63 61 6c es.when.invoked.for.the.vertical
2f20 20 61 78 69 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 6f 77 65 76 65 72 2c 20 69 .axis..............//.However,.i
2f40 6e 20 74 68 69 73 20 63 61 73 65 20 77 65 20 73 65 74 20 62 6f 74 68 20 74 68 65 20 68 6f 72 69 n.this.case.we.set.both.the.hori
2f60 7a 6f 6e 74 61 6c 20 61 6e 64 20 76 65 72 74 69 63 61 6c 20 70 6f 73 69 74 69 6f 6e 20 77 68 65 zontal.and.vertical.position.whe
2f80 6e 20 69 6e 76 6f 6b 65 64 20 66 6f 72 20 74 68 65 20 76 65 72 74 69 63 61 6c 20 61 78 69 73 2e n.invoked.for.the.vertical.axis.
2fa0 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 69 6e 63 65 20 77 65 20 6f 6e 6c 79 20 73 65 .............//.Since.we.only.se
2fc0 74 20 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6e 6f t.the.horizontal.position.and.no
2fe0 74 20 74 68 65 20 73 69 7a 65 2c 20 69 74 20 73 68 6f 75 6c 64 6e 27 74 20 61 66 66 65 63 74 20 t.the.size,.it.shouldn't.affect.
3000 63 68 69 6c 64 72 65 6e 27 73 20 6c 61 79 6f 75 74 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f children's.layout,............./
3020 2f 20 61 6e 64 20 74 68 75 73 20 73 68 6f 75 6c 64 6e 27 74 20 62 72 65 61 6b 20 74 68 65 20 72 /.and.thus.shouldn't.break.the.r
3040 75 6c 65 20 74 68 61 74 20 61 6c 6c 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 6c 61 79 6f 75 74 20 6d ule.that.all.horizontal.layout.m
3060 75 73 74 20 62 65 20 63 61 6c 63 75 6c 61 74 65 64 20 62 65 66 6f 72 65 20 61 6c 6c 20 76 65 72 ust.be.calculated.before.all.ver
3080 74 69 63 61 6c 20 6c 61 79 6f 75 74 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 tical.layout...............if.(a
30a0 78 69 73 20 3d 3d 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 xis.==.0).............{.........
30c0 20 20 20 20 20 20 20 20 2f 2f 20 4f 6e 6c 79 20 73 65 74 20 74 68 65 20 73 69 7a 65 73 20 77 68 ........//.Only.set.the.sizes.wh
30e0 65 6e 20 69 6e 76 6f 6b 65 64 20 66 6f 72 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 78 69 73 2c 20 en.invoked.for.horizontal.axis,.
3100 6e 6f 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 not.the.positions...............
3120 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 72 65 63 74 43 68 69 6c 64 ...for.(int.i.=.0;.i.<.rectChild
3140 72 65 6e 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ren.Count;.i++).................
3160 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 54 72 61 6e 73 66 {.....................RectTransf
3180 6f 72 6d 20 72 65 63 74 20 3d 20 72 65 63 74 43 68 69 6c 64 72 65 6e 5b 69 5d 3b 0a 0a 20 20 20 orm.rect.=.rectChildren[i];.....
31a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 6b 65 72 2e 41 64 64 28 74 .................m_Tracker.Add(t
31c0 68 69 73 2c 20 72 65 63 74 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 his,.rect,......................
31e0 20 20 20 44 72 69 76 65 6e 54 72 61 6e 73 66 6f 72 6d 50 72 6f 70 65 72 74 69 65 73 2e 41 6e 63 ...DrivenTransformProperties.Anc
3200 68 6f 72 73 20 7c 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 44 hors.|.........................D
3220 72 69 76 65 6e 54 72 61 6e 73 66 6f 72 6d 50 72 6f 70 65 72 74 69 65 73 2e 41 6e 63 68 6f 72 65 rivenTransformProperties.Anchore
3240 64 50 6f 73 69 74 69 6f 6e 20 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dPosition.|.....................
3260 20 20 20 20 44 72 69 76 65 6e 54 72 61 6e 73 66 6f 72 6d 50 72 6f 70 65 72 74 69 65 73 2e 53 69 ....DrivenTransformProperties.Si
3280 7a 65 44 65 6c 74 61 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 zeDelta);......................r
32a0 65 63 74 2e 61 6e 63 68 6f 72 4d 69 6e 20 3d 20 56 65 63 74 6f 72 32 2e 75 70 3b 0a 20 20 20 20 ect.anchorMin.=.Vector2.up;.....
32c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 61 6e 63 68 6f 72 4d 61 78 20 3d ................rect.anchorMax.=
32e0 20 56 65 63 74 6f 72 32 2e 75 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Vector2.up;....................
3300 20 72 65 63 74 2e 73 69 7a 65 44 65 6c 74 61 20 3d 20 63 65 6c 6c 53 69 7a 65 3b 0a 20 20 20 20 .rect.sizeDelta.=.cellSize;.....
3320 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 ............}.................re
3340 74 75 72 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 turn;.............}.............
3360 20 66 6c 6f 61 74 20 77 69 64 74 68 20 3d 20 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 72 65 63 .float.width.=.rectTransform.rec
3380 74 2e 73 69 7a 65 2e 78 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 68 65 69 67 t.size.x;.............float.heig
33a0 68 74 20 3d 20 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 72 65 63 74 2e 73 69 7a 65 2e 79 3b 0a ht.=.rectTransform.rect.size.y;.
33c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 31 3b .............int.cellCountX.=.1;
33e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 31 3b .............int.cellCountY.=.1;
3400 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 3d 3d .............if.(m_Constraint.==
3420 20 43 6f 6e 73 74 72 61 69 6e 74 2e 46 69 78 65 64 43 6f 6c 75 6d 6e 43 6f 75 6e 74 29 0a 20 20 .Constraint.FixedColumnCount)...
3440 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c ..........{.................cell
3460 43 6f 75 6e 74 58 20 3d 20 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 3b 0a 0a 20 20 20 CountX.=.m_ConstraintCount;.....
3480 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f .............if.(rectChildren.Co
34a0 75 6e 74 20 3e 20 63 65 6c 6c 43 6f 75 6e 74 58 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 unt.>.cellCountX)...............
34c0 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e ......cellCountY.=.rectChildren.
34e0 43 6f 75 6e 74 20 2f 20 63 65 6c 6c 43 6f 75 6e 74 58 20 2b 20 28 72 65 63 74 43 68 69 6c 64 72 Count./.cellCountX.+.(rectChildr
3500 65 6e 2e 43 6f 75 6e 74 20 25 20 63 65 6c 6c 43 6f 75 6e 74 58 20 3e 20 30 20 3f 20 31 20 3a 20 en.Count.%.cellCountX.>.0.?.1.:.
3520 30 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 0);.............}.............el
3540 73 65 20 69 66 20 28 6d 5f 43 6f 6e 73 74 72 61 69 6e 74 20 3d 3d 20 43 6f 6e 73 74 72 61 69 6e se.if.(m_Constraint.==.Constrain
3560 74 2e 46 69 78 65 64 52 6f 77 43 6f 75 6e 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 t.FixedRowCount).............{..
3580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 6d 5f 43 6f ...............cellCountY.=.m_Co
35a0 6e 73 74 72 61 69 6e 74 43 6f 75 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nstraintCount;..................
35c0 69 66 20 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 3e 20 63 65 6c 6c 43 6f 75 if.(rectChildren.Count.>.cellCou
35e0 6e 74 59 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 ntY).....................cellCou
3600 6e 74 58 20 3d 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 2f 20 63 65 6c 6c 43 ntX.=.rectChildren.Count./.cellC
3620 6f 75 6e 74 59 20 2b 20 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 25 20 63 65 ountY.+.(rectChildren.Count.%.ce
3640 6c 6c 43 6f 75 6e 74 59 20 3e 20 30 20 3f 20 31 20 3a 20 30 29 3b 0a 20 20 20 20 20 20 20 20 20 llCountY.>.0.?.1.:.0);..........
3660 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 ...}.............else...........
3680 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 65 6c 6c 53 69 7a 65 ..{.................if.(cellSize
36a0 2e 78 20 2b 20 73 70 61 63 69 6e 67 2e 78 20 3c 3d 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 .x.+.spacing.x.<=.0)............
36c0 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 69 6e 74 2e 4d 61 78 56 61 6c .........cellCountX.=.int.MaxVal
36e0 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 ue;.................else........
3700 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 4d 61 74 68 66 2e .............cellCountX.=.Mathf.
3720 4d 61 78 28 31 2c 20 4d 61 74 68 66 2e 46 6c 6f 6f 72 54 6f 49 6e 74 28 28 77 69 64 74 68 20 2d Max(1,.Mathf.FloorToInt((width.-
3740 20 70 61 64 64 69 6e 67 2e 68 6f 72 69 7a 6f 6e 74 61 6c 20 2b 20 73 70 61 63 69 6e 67 2e 78 20 .padding.horizontal.+.spacing.x.
3760 2b 20 30 2e 30 30 31 66 29 20 2f 20 28 63 65 6c 6c 53 69 7a 65 2e 78 20 2b 20 73 70 61 63 69 6e +.0.001f)./.(cellSize.x.+.spacin
3780 67 2e 78 29 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 65 6c g.x)));..................if.(cel
37a0 6c 53 69 7a 65 2e 79 20 2b 20 73 70 61 63 69 6e 67 2e 79 20 3c 3d 20 30 29 0a 20 20 20 20 20 20 lSize.y.+.spacing.y.<=.0).......
37c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 69 6e 74 2e 4d ..............cellCountY.=.int.M
37e0 61 78 56 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 axValue;.................else...
3800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 4d ..................cellCountY.=.M
3820 61 74 68 66 2e 4d 61 78 28 31 2c 20 4d 61 74 68 66 2e 46 6c 6f 6f 72 54 6f 49 6e 74 28 28 68 65 athf.Max(1,.Mathf.FloorToInt((he
3840 69 67 68 74 20 2d 20 70 61 64 64 69 6e 67 2e 76 65 72 74 69 63 61 6c 20 2b 20 73 70 61 63 69 6e ight.-.padding.vertical.+.spacin
3860 67 2e 79 20 2b 20 30 2e 30 30 31 66 29 20 2f 20 28 63 65 6c 6c 53 69 7a 65 2e 79 20 2b 20 73 70 g.y.+.0.001f)./.(cellSize.y.+.sp
3880 61 63 69 6e 67 2e 79 29 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 acing.y)));.............}.......
38a0 20 20 20 20 20 20 20 69 6e 74 20 63 6f 72 6e 65 72 58 20 3d 20 28 69 6e 74 29 73 74 61 72 74 43 .......int.cornerX.=.(int)startC
38c0 6f 72 6e 65 72 20 25 20 32 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 6f 72 6e 65 orner.%.2;.............int.corne
38e0 72 59 20 3d 20 28 69 6e 74 29 73 74 61 72 74 43 6f 72 6e 65 72 20 2f 20 32 3b 0a 0a 20 20 20 20 rY.=.(int)startCorner./.2;......
3900 20 20 20 20 20 20 20 20 69 6e 74 20 63 65 6c 6c 73 50 65 72 4d 61 69 6e 41 78 69 73 2c 20 61 63 ........int.cellsPerMainAxis,.ac
3920 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 58 2c 20 61 63 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 59 tualCellCountX,.actualCellCountY
3940 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 72 74 41 78 69 73 20 3d 3d 20 41 ;.............if.(startAxis.==.A
3960 78 69 73 2e 48 6f 72 69 7a 6f 6e 74 61 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 xis.Horizontal).............{...
3980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 73 50 65 72 4d 61 69 6e 41 78 69 73 20 3d ..............cellsPerMainAxis.=
39a0 20 63 65 6c 6c 43 6f 75 6e 74 58 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 .cellCountX;.................act
39c0 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 4d 61 74 68 66 2e 43 6c 61 6d 70 28 63 65 6c 6c ualCellCountX.=.Mathf.Clamp(cell
39e0 43 6f 75 6e 74 58 2c 20 31 2c 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 29 3b 0a CountX,.1,.rectChildren.Count);.
3a00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 59 ................actualCellCountY
3a20 20 3d 20 4d 61 74 68 66 2e 43 6c 61 6d 70 28 63 65 6c 6c 43 6f 75 6e 74 59 2c 20 31 2c 20 4d 61 .=.Mathf.Clamp(cellCountY,.1,.Ma
3a40 74 68 66 2e 43 65 69 6c 54 6f 49 6e 74 28 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 thf.CeilToInt(rectChildren.Count
3a60 20 2f 20 28 66 6c 6f 61 74 29 63 65 6c 6c 73 50 65 72 4d 61 69 6e 41 78 69 73 29 29 3b 0a 20 20 ./.(float)cellsPerMainAxis));...
3a80 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 ..........}.............else....
3aa0 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 6c 6c 73 .........{.................cells
3ac0 50 65 72 4d 61 69 6e 41 78 69 73 20 3d 20 63 65 6c 6c 43 6f 75 6e 74 59 3b 0a 20 20 20 20 20 20 PerMainAxis.=.cellCountY;.......
3ae0 20 20 20 20 20 20 20 20 20 20 61 63 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 59 20 3d 20 4d 61 74 ..........actualCellCountY.=.Mat
3b00 68 66 2e 43 6c 61 6d 70 28 63 65 6c 6c 43 6f 75 6e 74 59 2c 20 31 2c 20 72 65 63 74 43 68 69 6c hf.Clamp(cellCountY,.1,.rectChil
3b20 64 72 65 6e 2e 43 6f 75 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 dren.Count);.................act
3b40 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 58 20 3d 20 4d 61 74 68 66 2e 43 6c 61 6d 70 28 63 65 6c 6c ualCellCountX.=.Mathf.Clamp(cell
3b60 43 6f 75 6e 74 58 2c 20 31 2c 20 4d 61 74 68 66 2e 43 65 69 6c 54 6f 49 6e 74 28 72 65 63 74 43 CountX,.1,.Mathf.CeilToInt(rectC
3b80 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 20 2f 20 28 66 6c 6f 61 74 29 63 65 6c 6c 73 50 65 72 4d hildren.Count./.(float)cellsPerM
3ba0 61 69 6e 41 78 69 73 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 ainAxis));.............}........
3bc0 20 20 20 20 20 20 56 65 63 74 6f 72 32 20 72 65 71 75 69 72 65 64 53 70 61 63 65 20 3d 20 6e 65 ......Vector2.requiredSpace.=.ne
3be0 77 20 56 65 63 74 6f 72 32 28 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 75 61 w.Vector2(.................actua
3c00 6c 43 65 6c 6c 43 6f 75 6e 74 58 20 2a 20 63 65 6c 6c 53 69 7a 65 2e 78 20 2b 20 28 61 63 74 75 lCellCountX.*.cellSize.x.+.(actu
3c20 61 6c 43 65 6c 6c 43 6f 75 6e 74 58 20 2d 20 31 29 20 2a 20 73 70 61 63 69 6e 67 2e 78 2c 0a 20 alCellCountX.-.1).*.spacing.x,..
3c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 59 20 ...............actualCellCountY.
3c60 2a 20 63 65 6c 6c 53 69 7a 65 2e 79 20 2b 20 28 61 63 74 75 61 6c 43 65 6c 6c 43 6f 75 6e 74 59 *.cellSize.y.+.(actualCellCountY
3c80 20 2d 20 31 29 20 2a 20 73 70 61 63 69 6e 67 2e 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 29 3b .-.1).*.spacing.y.............);
3ca0 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 32 20 73 74 61 72 74 4f 66 66 73 65 74 .............Vector2.startOffset
3cc0 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .=.new.Vector2(.................
3ce0 47 65 74 53 74 61 72 74 4f 66 66 73 65 74 28 30 2c 20 72 65 71 75 69 72 65 64 53 70 61 63 65 2e GetStartOffset(0,.requiredSpace.
3d00 78 29 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 65 74 53 74 61 72 74 4f 66 66 73 x),.................GetStartOffs
3d20 65 74 28 31 2c 20 72 65 71 75 69 72 65 64 53 70 61 63 65 2e 79 29 0a 20 20 20 20 20 20 20 20 20 et(1,.requiredSpace.y)..........
3d40 20 20 20 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 ...);..............for.(int.i.=.
3d60 30 3b 20 69 20 3c 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 0;.i.<.rectChildren.Count;.i++).
3d80 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e ............{.................in
3da0 74 20 70 6f 73 69 74 69 6f 6e 58 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 t.positionX;.................int
3dc0 20 70 6f 73 69 74 69 6f 6e 59 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 .positionY;.................if.(
3de0 73 74 61 72 74 41 78 69 73 20 3d 3d 20 41 78 69 73 2e 48 6f 72 69 7a 6f 6e 74 61 6c 29 0a 20 20 startAxis.==.Axis.Horizontal)...
3e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
3e20 20 20 20 20 70 6f 73 69 74 69 6f 6e 58 20 3d 20 69 20 25 20 63 65 6c 6c 73 50 65 72 4d 61 69 6e ....positionX.=.i.%.cellsPerMain
3e40 41 78 69 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 Axis;.....................positi
3e60 6f 6e 59 20 3d 20 69 20 2f 20 63 65 6c 6c 73 50 65 72 4d 61 69 6e 41 78 69 73 3b 0a 20 20 20 20 onY.=.i./.cellsPerMainAxis;.....
3e80 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c ............}.................el
3ea0 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 se.................{............
3ec0 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 58 20 3d 20 69 20 2f 20 63 65 6c 6c 73 50 65 .........positionX.=.i./.cellsPe
3ee0 72 4d 61 69 6e 41 78 69 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 rMainAxis;.....................p
3f00 6f 73 69 74 69 6f 6e 59 20 3d 20 69 20 25 20 63 65 6c 6c 73 50 65 72 4d 61 69 6e 41 78 69 73 3b ositionY.=.i.%.cellsPerMainAxis;
3f20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................}..............
3f40 20 20 20 20 69 66 20 28 63 6f 72 6e 65 72 58 20 3d 3d 20 31 29 0a 20 20 20 20 20 20 20 20 20 20 ....if.(cornerX.==.1)...........
3f60 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 58 20 3d 20 61 63 74 75 61 6c 43 65 6c 6c ..........positionX.=.actualCell
3f80 43 6f 75 6e 74 58 20 2d 20 31 20 2d 20 70 6f 73 69 74 69 6f 6e 58 3b 0a 20 20 20 20 20 20 20 20 CountX.-.1.-.positionX;.........
3fa0 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 72 6e 65 72 59 20 3d 3d 20 31 29 0a 20 20 20 20 20 20 ........if.(cornerY.==.1).......
3fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 59 20 3d 20 61 63 74 75 61 6c ..............positionY.=.actual
3fe0 43 65 6c 6c 43 6f 75 6e 74 59 20 2d 20 31 20 2d 20 70 6f 73 69 74 69 6f 6e 59 3b 0a 0a 20 20 20 CellCountY.-.1.-.positionY;.....
4000 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 74 43 68 69 6c 64 41 6c 6f 6e 67 41 78 69 73 28 72 .............SetChildAlongAxis(r
4020 65 63 74 43 68 69 6c 64 72 65 6e 5b 69 5d 2c 20 30 2c 20 73 74 61 72 74 4f 66 66 73 65 74 2e 78 ectChildren[i],.0,.startOffset.x
4040 20 2b 20 28 63 65 6c 6c 53 69 7a 65 5b 30 5d 20 2b 20 73 70 61 63 69 6e 67 5b 30 5d 29 20 2a 20 .+.(cellSize[0].+.spacing[0]).*.
4060 70 6f 73 69 74 69 6f 6e 58 2c 20 63 65 6c 6c 53 69 7a 65 5b 30 5d 29 3b 0a 20 20 20 20 20 20 20 positionX,.cellSize[0]);........
4080 20 20 20 20 20 20 20 20 20 53 65 74 43 68 69 6c 64 41 6c 6f 6e 67 41 78 69 73 28 72 65 63 74 43 .........SetChildAlongAxis(rectC
40a0 68 69 6c 64 72 65 6e 5b 69 5d 2c 20 31 2c 20 73 74 61 72 74 4f 66 66 73 65 74 2e 79 20 2b 20 28 hildren[i],.1,.startOffset.y.+.(
40c0 63 65 6c 6c 53 69 7a 65 5b 31 5d 20 2b 20 73 70 61 63 69 6e 67 5b 31 5d 29 20 2a 20 70 6f 73 69 cellSize[1].+.spacing[1]).*.posi
40e0 74 69 6f 6e 59 2c 20 63 65 6c 6c 53 69 7a 65 5b 31 5d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 tionY,.cellSize[1]);............
4100 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 .}.........}.....}.}............
4120 00 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 47 72 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 00 ................GridLayoutGroup.
4140 0e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 00 00 ....UnityEngine.UI..