summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e3/e3646238fe5406eaa9623c9a528b97c6
blob: a53e777c11626504c8d37ef32ba9080d6cd10e67 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 44 dc 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......D.............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 7c 34 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 |4..............................
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 1f 00 00 00 48 6f 72 69 7a 6f 6e 74 61 6c 4f 72 56 65 72 74 69 63 61 6c ............HorizontalOrVertical
10a0 4c 61 79 6f 75 74 47 72 6f 75 70 00 e0 33 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c LayoutGroup..3..using.System.Col
10c0 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 55 6e 69 lections.Generic;..namespace.Uni
10e0 74 79 45 6e 67 69 6e 65 2e 55 49 0a 7b 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a tyEngine.UI.{.....///.<summary>.
1100 20 20 20 20 2f 2f 2f 20 41 62 73 74 72 61 63 74 20 62 61 73 65 20 63 6c 61 73 73 20 66 6f 72 20 ....///.Abstract.base.class.for.
1120 48 6f 72 69 7a 6f 6e 74 61 6c 4c 61 79 6f 75 74 47 72 6f 75 70 20 61 6e 64 20 56 65 72 74 69 63 HorizontalLayoutGroup.and.Vertic
1140 61 6c 4c 61 79 6f 75 74 47 72 6f 75 70 20 74 6f 20 67 65 6e 65 72 61 6c 69 7a 65 20 63 6f 6d 6d alLayoutGroup.to.generalize.comm
1160 6f 6e 20 66 75 6e 63 74 69 6f 6e 61 6c 69 74 79 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d on.functionality......///.</summ
1180 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 0a 20 20 20 20 5b 45 78 65 63 75 74 65 41 6c 77 61 79 73 5d ary>.....///.....[ExecuteAlways]
11a0 0a 20 20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 20 63 6c 61 73 73 20 48 6f 72 69 7a .....public.abstract.class.Horiz
11c0 6f 6e 74 61 6c 4f 72 56 65 72 74 69 63 61 6c 4c 61 79 6f 75 74 47 72 6f 75 70 20 3a 20 4c 61 79 ontalOrVerticalLayoutGroup.:.Lay
11e0 6f 75 74 47 72 6f 75 70 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a outGroup.....{.........[Serializ
1200 65 46 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 66 6c 6f 61 74 20 6d 5f 53 70 61 63 69 6e eField].protected.float.m_Spacin
1220 67 20 3d 20 30 3b 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 20 g.=.0;..........///.<summary>...
1240 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 70 61 63 69 6e 67 20 74 6f 20 75 73 65 20 62 65 74 ......///.The.spacing.to.use.bet
1260 77 65 65 6e 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 73 20 69 6e 20 74 68 65 20 6c 61 79 6f ween.layout.elements.in.the.layo
1280 75 74 20 67 72 6f 75 70 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e ut.group..........///.</summary>
12a0 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 73 70 61 63 69 6e 67 20 7b 20 .........public.float.spacing.{.
12c0 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 70 61 63 69 6e 67 3b 20 7d 20 73 65 74 20 7b 20 get.{.return.m_Spacing;.}.set.{.
12e0 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 53 70 61 63 69 6e 67 2c 20 76 61 6c 75 65 SetProperty(ref.m_Spacing,.value
1300 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 69 65 6c 64 5d );.}.}..........[SerializeField]
1320 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 .protected.bool.m_ChildForceExpa
1340 6e 64 57 69 64 74 68 20 3d 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 ndWidth.=.true;..........///.<su
1360 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 68 65 72 20 74 6f 20 66 6f mmary>.........///.Whether.to.fo
1380 72 63 65 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 74 6f 20 65 78 70 61 6e 64 20 74 6f 20 66 69 rce.the.children.to.expand.to.fi
13a0 6c 6c 20 61 64 64 69 74 69 6f 6e 61 6c 20 61 76 61 69 6c 61 62 6c 65 20 68 6f 72 69 7a 6f 6e 74 ll.additional.available.horizont
13c0 61 6c 20 73 70 61 63 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e al.space..........///.</summary>
13e0 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 69 6c 64 46 6f 72 63 65 45 .........public.bool.childForceE
1400 78 70 61 6e 64 57 69 64 74 68 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 68 69 6c xpandWidth.{.get.{.return.m_Chil
1420 64 46 6f 72 63 65 45 78 70 61 6e 64 57 69 64 74 68 3b 20 7d 20 73 65 74 20 7b 20 53 65 74 50 72 dForceExpandWidth;.}.set.{.SetPr
1440 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 57 69 64 operty(ref.m_ChildForceExpandWid
1460 74 68 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 th,.value);.}.}..........[Serial
1480 69 7a 65 46 69 65 6c 64 5d 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 6d 5f 43 68 69 6c 64 izeField].protected.bool.m_Child
14a0 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 20 3d 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 ForceExpandHeight.=.true;.......
14c0 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 57 68 65 ...///.<summary>.........///.Whe
14e0 74 68 65 72 20 74 6f 20 66 6f 72 63 65 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 74 6f 20 65 78 ther.to.force.the.children.to.ex
1500 70 61 6e 64 20 74 6f 20 66 69 6c 6c 20 61 64 64 69 74 69 6f 6e 61 6c 20 61 76 61 69 6c 61 62 6c pand.to.fill.additional.availabl
1520 65 20 76 65 72 74 69 63 61 6c 20 73 70 61 63 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f e.vertical.space..........///.</
1540 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 69 summary>.........public.bool.chi
1560 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 20 7b 20 67 65 74 20 7b 20 72 65 74 75 ldForceExpandHeight.{.get.{.retu
1580 72 6e 20 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 3b 20 7d 20 73 rn.m_ChildForceExpandHeight;.}.s
15a0 65 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 43 68 69 6c 64 46 6f 72 63 et.{.SetProperty(ref.m_ChildForc
15c0 65 45 78 70 61 6e 64 48 65 69 67 68 74 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 eExpandHeight,.value);.}.}......
15e0 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 62 ....[SerializeField].protected.b
1600 6f 6f 6c 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 69 64 74 68 20 3d 20 74 72 75 65 3b 0a ool.m_ChildControlWidth.=.true;.
1620 0a 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 20 20 2f .........///.<summary>........./
1640 2f 2f 20 52 65 74 75 72 6e 73 20 74 72 75 65 20 69 66 20 74 68 65 20 4c 61 79 6f 75 74 20 47 72 //.Returns.true.if.the.Layout.Gr
1660 6f 75 70 20 63 6f 6e 74 72 6f 6c 73 20 74 68 65 20 77 69 64 74 68 73 20 6f 66 20 69 74 73 20 63 oup.controls.the.widths.of.its.c
1680 68 69 6c 64 72 65 6e 2e 20 52 65 74 75 72 6e 73 20 66 61 6c 73 65 20 69 66 20 63 68 69 6c 64 72 hildren..Returns.false.if.childr
16a0 65 6e 20 63 6f 6e 74 72 6f 6c 20 74 68 65 69 72 20 6f 77 6e 20 77 69 64 74 68 73 2e 0a 20 20 20 en.control.their.own.widths.....
16c0 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>.........///.
16e0 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 73 65 74 20 74 6f 20 <remarks>.........///.If.set.to.
1700 66 61 6c 73 65 2c 20 74 68 65 20 6c 61 79 6f 75 74 20 67 72 6f 75 70 20 77 69 6c 6c 20 6f 6e 6c false,.the.layout.group.will.onl
1720 79 20 61 66 66 65 63 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 63 68 y.affect.the.positions.of.the.ch
1740 69 6c 64 72 65 6e 20 77 68 69 6c 65 20 6c 65 61 76 69 6e 67 20 74 68 65 20 77 69 64 74 68 73 20 ildren.while.leaving.the.widths.
1760 75 6e 74 6f 75 63 68 65 64 2e 20 54 68 65 20 77 69 64 74 68 73 20 6f 66 20 74 68 65 20 63 68 69 untouched..The.widths.of.the.chi
1780 6c 64 72 65 6e 20 63 61 6e 20 62 65 20 73 65 74 20 76 69 61 20 74 68 65 20 72 65 73 70 65 63 74 ldren.can.be.set.via.the.respect
17a0 69 76 65 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 73 20 69 6e 20 74 68 69 73 20 63 61 73 65 2e ive.RectTransforms.in.this.case.
17c0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 73 65 74 20 .........///.........///.If.set.
17e0 74 6f 20 74 72 75 65 2c 20 74 68 65 20 77 69 64 74 68 73 20 6f 66 20 74 68 65 20 63 68 69 6c 64 to.true,.the.widths.of.the.child
1800 72 65 6e 20 61 72 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 72 69 76 65 6e 20 62 79 20 ren.are.automatically.driven.by.
1820 74 68 65 20 6c 61 79 6f 75 74 20 67 72 6f 75 70 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 the.layout.group.according.to.th
1840 65 69 72 20 72 65 73 70 65 63 74 69 76 65 20 6d 69 6e 69 6d 75 6d 2c 20 70 72 65 66 65 72 72 65 eir.respective.minimum,.preferre
1860 64 2c 20 61 6e 64 20 66 6c 65 78 69 62 6c 65 20 77 69 64 74 68 73 2e 20 54 68 69 73 20 69 73 20 d,.and.flexible.widths..This.is.
1880 75 73 65 66 75 6c 20 69 66 20 74 68 65 20 77 69 64 74 68 73 20 6f 66 20 74 68 65 20 63 68 69 6c useful.if.the.widths.of.the.chil
18a0 64 72 65 6e 20 73 68 6f 75 6c 64 20 63 68 61 6e 67 65 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 dren.should.change.depending.on.
18c0 68 6f 77 20 6d 75 63 68 20 73 70 61 63 65 20 69 73 20 61 76 61 69 6c 61 62 6c 65 2e 49 6e 20 74 how.much.space.is.available.In.t
18e0 68 69 73 20 63 61 73 65 20 74 68 65 20 77 69 64 74 68 20 6f 66 20 65 61 63 68 20 63 68 69 6c 64 his.case.the.width.of.each.child
1900 20 63 61 6e 6e 6f 74 20 62 65 20 73 65 74 20 6d 61 6e 75 61 6c 6c 79 20 69 6e 20 74 68 65 20 52 .cannot.be.set.manually.in.the.R
1920 65 63 74 54 72 61 6e 73 66 6f 72 6d 2c 20 62 75 74 20 74 68 65 20 6d 69 6e 69 6d 75 6d 2c 20 70 ectTransform,.but.the.minimum,.p
1940 72 65 66 65 72 72 65 64 20 61 6e 64 20 66 6c 65 78 69 62 6c 65 20 77 69 64 74 68 20 66 6f 72 20 referred.and.flexible.width.for.
1960 65 61 63 68 20 63 68 69 6c 64 20 63 61 6e 20 62 65 20 63 6f 6e 74 72 6f 6c 6c 65 64 20 62 79 20 each.child.can.be.controlled.by.
1980 61 64 64 69 6e 67 20 61 20 4c 61 79 6f 75 74 45 6c 65 6d 65 6e 74 20 63 6f 6d 70 6f 6e 65 6e 74 adding.a.LayoutElement.component
19a0 20 74 6f 20 69 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 .to.it..........///.</remarks>..
19c0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 .......public.bool.childControlW
19e0 69 64 74 68 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 idth.{.get.{.return.m_ChildContr
1a00 6f 6c 57 69 64 74 68 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 olWidth;.}.set.{.SetProperty(ref
1a20 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 69 64 74 68 2c 20 76 61 6c 75 65 29 3b 20 7d 20 .m_ChildControlWidth,.value);.}.
1a40 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 6f 74 }..........[SerializeField].prot
1a60 65 63 74 65 64 20 62 6f 6f 6c 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 20 ected.bool.m_ChildControlHeight.
1a80 3d 20 74 72 75 65 3b 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 =.true;..........///.<summary>..
1aa0 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 73 20 74 72 75 65 20 69 66 20 74 68 65 20 4c .......///.Returns.true.if.the.L
1ac0 61 79 6f 75 74 20 47 72 6f 75 70 20 63 6f 6e 74 72 6f 6c 73 20 74 68 65 20 68 65 69 67 68 74 73 ayout.Group.controls.the.heights
1ae0 20 6f 66 20 69 74 73 20 63 68 69 6c 64 72 65 6e 2e 20 52 65 74 75 72 6e 73 20 66 61 6c 73 65 20 .of.its.children..Returns.false.
1b00 69 66 20 63 68 69 6c 64 72 65 6e 20 63 6f 6e 74 72 6f 6c 20 74 68 65 69 72 20 6f 77 6e 20 68 65 if.children.control.their.own.he
1b20 69 67 68 74 73 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 ights..........///.</summary>...
1b40 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 20 ......///.<remarks>.........///.
1b60 49 66 20 73 65 74 20 74 6f 20 66 61 6c 73 65 2c 20 74 68 65 20 6c 61 79 6f 75 74 20 67 72 6f 75 If.set.to.false,.the.layout.grou
1b80 70 20 77 69 6c 6c 20 6f 6e 6c 79 20 61 66 66 65 63 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 73 p.will.only.affect.the.positions
1ba0 20 6f 66 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 77 68 69 6c 65 20 6c 65 61 76 69 6e 67 20 74 .of.the.children.while.leaving.t
1bc0 68 65 20 68 65 69 67 68 74 73 20 75 6e 74 6f 75 63 68 65 64 2e 20 54 68 65 20 68 65 69 67 68 74 he.heights.untouched..The.height
1be0 73 20 6f 66 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 63 61 6e 20 62 65 20 73 65 74 20 76 69 61 s.of.the.children.can.be.set.via
1c00 20 74 68 65 20 72 65 73 70 65 63 74 69 76 65 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 73 20 69 .the.respective.RectTransforms.i
1c20 6e 20 74 68 69 73 20 63 61 73 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0a 20 20 20 20 20 20 20 n.this.case..........///........
1c40 20 2f 2f 2f 20 49 66 20 73 65 74 20 74 6f 20 74 72 75 65 2c 20 74 68 65 20 68 65 69 67 68 74 73 .///.If.set.to.true,.the.heights
1c60 20 6f 66 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 61 72 65 20 61 75 74 6f 6d 61 74 69 63 61 6c .of.the.children.are.automatical
1c80 6c 79 20 64 72 69 76 65 6e 20 62 79 20 74 68 65 20 6c 61 79 6f 75 74 20 67 72 6f 75 70 20 61 63 ly.driven.by.the.layout.group.ac
1ca0 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 69 72 20 72 65 73 70 65 63 74 69 76 65 20 6d 69 6e 69 cording.to.their.respective.mini
1cc0 6d 75 6d 2c 20 70 72 65 66 65 72 72 65 64 2c 20 61 6e 64 20 66 6c 65 78 69 62 6c 65 20 68 65 69 mum,.preferred,.and.flexible.hei
1ce0 67 68 74 73 2e 20 54 68 69 73 20 69 73 20 75 73 65 66 75 6c 20 69 66 20 74 68 65 20 68 65 69 67 ghts..This.is.useful.if.the.heig
1d00 68 74 73 20 6f 66 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 73 68 6f 75 6c 64 20 63 68 61 6e 67 hts.of.the.children.should.chang
1d20 65 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 68 6f 77 20 6d 75 63 68 20 73 70 61 63 65 20 69 73 e.depending.on.how.much.space.is
1d40 20 61 76 61 69 6c 61 62 6c 65 2e 49 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65 20 68 65 69 67 .available.In.this.case.the.heig
1d60 68 74 20 6f 66 20 65 61 63 68 20 63 68 69 6c 64 20 63 61 6e 6e 6f 74 20 62 65 20 73 65 74 20 6d ht.of.each.child.cannot.be.set.m
1d80 61 6e 75 61 6c 6c 79 20 69 6e 20 74 68 65 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 2c 20 62 75 anually.in.the.RectTransform,.bu
1da0 74 20 74 68 65 20 6d 69 6e 69 6d 75 6d 2c 20 70 72 65 66 65 72 72 65 64 20 61 6e 64 20 66 6c 65 t.the.minimum,.preferred.and.fle
1dc0 78 69 62 6c 65 20 68 65 69 67 68 74 20 66 6f 72 20 65 61 63 68 20 63 68 69 6c 64 20 63 61 6e 20 xible.height.for.each.child.can.
1de0 62 65 20 63 6f 6e 74 72 6f 6c 6c 65 64 20 62 79 20 61 64 64 69 6e 67 20 61 20 4c 61 79 6f 75 74 be.controlled.by.adding.a.Layout
1e00 45 6c 65 6d 65 6e 74 20 63 6f 6d 70 6f 6e 65 6e 74 20 74 6f 20 69 74 2e 0a 20 20 20 20 20 20 20 Element.component.to.it.........
1e20 20 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 62 .///.</remarks>.........public.b
1e40 6f 6f 6c 20 63 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 20 7b 20 67 65 74 20 7b 20 72 ool.childControlHeight.{.get.{.r
1e60 65 74 75 72 6e 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 3b 20 7d 20 73 65 eturn.m_ChildControlHeight;.}.se
1e80 74 20 7b 20 53 65 74 50 72 6f 70 65 72 74 79 28 72 65 66 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 t.{.SetProperty(ref.m_ChildContr
1ea0 6f 6c 48 65 69 67 68 74 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b olHeight,.value);.}.}..........[
1ec0 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 62 6f 6f 6c 20 6d SerializeField].protected.bool.m
1ee0 5f 43 68 69 6c 64 53 63 61 6c 65 57 69 64 74 68 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 _ChildScaleWidth.=.false;.......
1f00 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 57 68 65 ...///.<summary>.........///.Whe
1f20 74 68 65 72 20 74 6f 20 75 73 65 20 74 68 65 20 78 20 73 63 61 6c 65 20 6f 66 20 65 61 63 68 20 ther.to.use.the.x.scale.of.each.
1f40 63 68 69 6c 64 20 77 68 65 6e 20 63 61 6c 63 75 6c 61 74 69 6e 67 20 69 74 73 20 77 69 64 74 68 child.when.calculating.its.width
1f60 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>........
1f80 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 69 6c 64 53 63 61 6c 65 57 69 64 74 68 20 7b 20 67 .public.bool.childScaleWidth.{.g
1fa0 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 68 69 6c 64 53 63 61 6c 65 57 69 64 74 68 3b 20 7d et.{.return.m_ChildScaleWidth;.}
1fc0 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 68 69 6c 64 53 63 .set.{.SetProperty(ref.m_ChildSc
1fe0 61 6c 65 57 69 64 74 68 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b aleWidth,.value);.}.}..........[
2000 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 62 6f 6f 6c 20 6d SerializeField].protected.bool.m
2020 5f 43 68 69 6c 64 53 63 61 6c 65 48 65 69 67 68 74 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 _ChildScaleHeight.=.false;......
2040 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 57 68 ....///.<summary>.........///.Wh
2060 65 74 68 65 72 20 74 6f 20 75 73 65 20 74 68 65 20 79 20 73 63 61 6c 65 20 6f 66 20 65 61 63 68 ether.to.use.the.y.scale.of.each
2080 20 63 68 69 6c 64 20 77 68 65 6e 20 63 61 6c 63 75 6c 61 74 69 6e 67 20 69 74 73 20 68 65 69 67 .child.when.calculating.its.heig
20a0 68 74 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 ht..........///.</summary>......
20c0 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 69 6c 64 53 63 61 6c 65 48 65 69 67 68 74 20 ...public.bool.childScaleHeight.
20e0 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 43 68 69 6c 64 53 63 61 6c 65 48 65 69 67 68 {.get.{.return.m_ChildScaleHeigh
2100 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 68 69 t;.}.set.{.SetProperty(ref.m_Chi
2120 6c 64 53 63 61 6c 65 48 65 69 67 68 74 2c 20 76 61 6c 75 65 29 3b 20 7d 20 7d 0a 0a 20 20 20 20 ldScaleHeight,.value);.}.}......
2140 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 43 61 ....///.<summary>.........///.Ca
2160 6c 63 75 6c 61 74 65 20 74 68 65 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 20 70 72 6f 70 65 lculate.the.layout.element.prope
2180 72 74 69 65 73 20 66 6f 72 20 74 68 69 73 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 20 61 6c rties.for.this.layout.element.al
21a0 6f 6e 67 20 74 68 65 20 67 69 76 65 6e 20 61 78 69 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ong.the.given.axis..........///.
21c0 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 </summary>.........///.<param.na
21e0 6d 65 3d 22 61 78 69 73 22 3e 54 68 65 20 61 78 69 73 20 74 6f 20 63 61 6c 63 75 6c 61 74 65 20 me="axis">The.axis.to.calculate.
2200 66 6f 72 2e 20 30 20 69 73 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e 64 20 31 20 69 73 20 76 65 for..0.is.horizontal.and.1.is.ve
2220 72 74 69 63 61 6c 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 rtical.</param>.........///.<par
2240 61 6d 20 6e 61 6d 65 3d 22 69 73 56 65 72 74 69 63 61 6c 22 3e 49 73 20 74 68 69 73 20 67 72 6f am.name="isVertical">Is.this.gro
2260 75 70 20 61 20 76 65 72 74 69 63 61 6c 20 67 72 6f 75 70 3f 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 up.a.vertical.group?</param>....
2280 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 43 61 6c 63 41 6c 6f 6e 67 41 78 69 .....protected.void.CalcAlongAxi
22a0 73 28 69 6e 74 20 61 78 69 73 2c 20 62 6f 6f 6c 20 69 73 56 65 72 74 69 63 61 6c 29 0a 20 20 20 s(int.axis,.bool.isVertical)....
22c0 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 63 6f 6d 62 69 6e 65 .....{.............float.combine
22e0 64 50 61 64 64 69 6e 67 20 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 70 61 64 64 69 6e 67 2e dPadding.=.(axis.==.0.?.padding.
2300 68 6f 72 69 7a 6f 6e 74 61 6c 20 3a 20 70 61 64 64 69 6e 67 2e 76 65 72 74 69 63 61 6c 29 3b 0a horizontal.:.padding.vertical);.
2320 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 63 6f 6e 74 72 6f 6c 53 69 7a 65 20 3d 20 28 ............bool.controlSize.=.(
2340 61 78 69 73 20 3d 3d 20 30 20 3f 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 69 64 74 68 20 axis.==.0.?.m_ChildControlWidth.
2360 3a 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 29 3b 0a 20 20 20 20 20 20 20 :.m_ChildControlHeight);........
2380 20 20 20 20 20 62 6f 6f 6c 20 75 73 65 53 63 61 6c 65 20 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 .....bool.useScale.=.(axis.==.0.
23a0 3f 20 6d 5f 43 68 69 6c 64 53 63 61 6c 65 57 69 64 74 68 20 3a 20 6d 5f 43 68 69 6c 64 53 63 61 ?.m_ChildScaleWidth.:.m_ChildSca
23c0 6c 65 48 65 69 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 63 68 69 6c leHeight);.............bool.chil
23e0 64 46 6f 72 63 65 45 78 70 61 6e 64 53 69 7a 65 20 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 dForceExpandSize.=.(axis.==.0.?.
2400 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 57 69 64 74 68 20 3a 20 6d 5f 43 68 69 6c m_ChildForceExpandWidth.:.m_Chil
2420 64 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 dForceExpandHeight);............
2440 20 20 66 6c 6f 61 74 20 74 6f 74 61 6c 4d 69 6e 20 3d 20 63 6f 6d 62 69 6e 65 64 50 61 64 64 69 ..float.totalMin.=.combinedPaddi
2460 6e 67 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 74 6f 74 61 6c 50 72 65 66 65 ng;.............float.totalPrefe
2480 72 72 65 64 20 3d 20 63 6f 6d 62 69 6e 65 64 50 61 64 64 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 rred.=.combinedPadding;.........
24a0 20 20 20 20 66 6c 6f 61 74 20 74 6f 74 61 6c 46 6c 65 78 69 62 6c 65 20 3d 20 30 3b 0a 0a 20 20 ....float.totalFlexible.=.0;....
24c0 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 61 6c 6f 6e 67 4f 74 68 65 72 41 78 69 73 20 3d 20 ..........bool.alongOtherAxis.=.
24e0 28 69 73 56 65 72 74 69 63 61 6c 20 5e 20 28 61 78 69 73 20 3d 3d 20 31 29 29 3b 0a 20 20 20 20 (isVertical.^.(axis.==.1));.....
2500 20 20 20 20 20 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 ........for.(int.i.=.0;.i.<.rect
2520 43 68 69 6c 64 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 Children.Count;.i++)............
2540 20 7b 0a 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 6f 72 6d .{.................RectTransform
2560 20 63 68 69 6c 64 20 3d 20 72 65 63 74 43 68 69 6c 64 72 65 6e 5b 69 5d 3b 0a 20 20 20 20 20 20 .child.=.rectChildren[i];.......
2580 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 69 6e 2c 20 70 72 65 66 65 72 72 65 64 2c 20 ..........float.min,.preferred,.
25a0 66 6c 65 78 69 62 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 65 74 43 68 69 flexible;.................GetChi
25c0 6c 64 53 69 7a 65 73 28 63 68 69 6c 64 2c 20 61 78 69 73 2c 20 63 6f 6e 74 72 6f 6c 53 69 7a 65 ldSizes(child,.axis,.controlSize
25e0 2c 20 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 53 69 7a 65 2c 20 6f 75 74 20 6d 69 6e 2c ,.childForceExpandSize,.out.min,
2600 20 6f 75 74 20 70 72 65 66 65 72 72 65 64 2c 20 6f 75 74 20 66 6c 65 78 69 62 6c 65 29 3b 0a 0a .out.preferred,.out.flexible);..
2620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 75 73 65 53 63 61 6c 65 29 0a 20 20 ................if.(useScale)...
2640 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 ..............{.................
2660 20 20 20 20 66 6c 6f 61 74 20 73 63 61 6c 65 46 61 63 74 6f 72 20 3d 20 63 68 69 6c 64 2e 6c 6f ....float.scaleFactor.=.child.lo
2680 63 61 6c 53 63 61 6c 65 5b 61 78 69 73 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 calScale[axis];.................
26a0 20 20 20 20 6d 69 6e 20 2a 3d 20 73 63 61 6c 65 46 61 63 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 ....min.*=.scaleFactor;.........
26c0 20 20 20 20 20 20 20 20 20 20 20 20 70 72 65 66 65 72 72 65 64 20 2a 3d 20 73 63 61 6c 65 46 61 ............preferred.*=.scaleFa
26e0 63 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 65 78 69 62 ctor;.....................flexib
2700 6c 65 20 2a 3d 20 73 63 61 6c 65 46 61 63 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 le.*=.scaleFactor;..............
2720 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 6c 6f 6e 67 4f ...}..................if.(alongO
2740 74 68 65 72 41 78 69 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 therAxis).................{.....
2760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c 4d 69 6e 20 3d 20 4d 61 74 68 66 ................totalMin.=.Mathf
2780 2e 4d 61 78 28 6d 69 6e 20 2b 20 63 6f 6d 62 69 6e 65 64 50 61 64 64 69 6e 67 2c 20 74 6f 74 61 .Max(min.+.combinedPadding,.tota
27a0 6c 4d 69 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c lMin);.....................total
27c0 50 72 65 66 65 72 72 65 64 20 3d 20 4d 61 74 68 66 2e 4d 61 78 28 70 72 65 66 65 72 72 65 64 20 Preferred.=.Mathf.Max(preferred.
27e0 2b 20 63 6f 6d 62 69 6e 65 64 50 61 64 64 69 6e 67 2c 20 74 6f 74 61 6c 50 72 65 66 65 72 72 65 +.combinedPadding,.totalPreferre
2800 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c 46 6c 65 d);.....................totalFle
2820 78 69 62 6c 65 20 3d 20 4d 61 74 68 66 2e 4d 61 78 28 66 6c 65 78 69 62 6c 65 2c 20 74 6f 74 61 xible.=.Mathf.Max(flexible,.tota
2840 6c 46 6c 65 78 69 62 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 lFlexible);.................}...
2860 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 20 20 20 20 20 20 ..............else..............
2880 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c 4d 69 ...{.....................totalMi
28a0 6e 20 2b 3d 20 6d 69 6e 20 2b 20 73 70 61 63 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 n.+=.min.+.spacing;.............
28c0 20 20 20 20 20 20 20 20 74 6f 74 61 6c 50 72 65 66 65 72 72 65 64 20 2b 3d 20 70 72 65 66 65 72 ........totalPreferred.+=.prefer
28e0 72 65 64 20 2b 20 73 70 61 63 69 6e 67 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 red.+.spacing;..................
2900 20 20 20 20 2f 2f 20 49 6e 63 72 65 6d 65 6e 74 20 66 6c 65 78 69 62 6c 65 20 73 69 7a 65 20 77 ....//.Increment.flexible.size.w
2920 69 74 68 20 65 6c 65 6d 65 6e 74 27 73 20 66 6c 65 78 69 62 6c 65 20 73 69 7a 65 2e 0a 20 20 20 ith.element's.flexible.size.....
2940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c 46 6c 65 78 69 62 6c 65 20 2b .................totalFlexible.+
2960 3d 20 66 6c 65 78 69 62 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 =.flexible;.................}...
2980 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 69 66 20 28 21 61 6c ..........}..............if.(!al
29a0 6f 6e 67 4f 74 68 65 72 41 78 69 73 20 26 26 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 ongOtherAxis.&&.rectChildren.Cou
29c0 6e 74 20 3e 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 20 20 nt.>.0).............{...........
29e0 20 20 20 20 20 20 74 6f 74 61 6c 4d 69 6e 20 2d 3d 20 73 70 61 63 69 6e 67 3b 0a 20 20 20 20 20 ......totalMin.-=.spacing;......
2a00 20 20 20 20 20 20 20 20 20 20 20 74 6f 74 61 6c 50 72 65 66 65 72 72 65 64 20 2d 3d 20 73 70 61 ...........totalPreferred.-=.spa
2a20 63 69 6e 67 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 cing;.............}.............
2a40 74 6f 74 61 6c 50 72 65 66 65 72 72 65 64 20 3d 20 4d 61 74 68 66 2e 4d 61 78 28 74 6f 74 61 6c totalPreferred.=.Mathf.Max(total
2a60 4d 69 6e 2c 20 74 6f 74 61 6c 50 72 65 66 65 72 72 65 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 Min,.totalPreferred);...........
2a80 20 20 53 65 74 4c 61 79 6f 75 74 49 6e 70 75 74 46 6f 72 41 78 69 73 28 74 6f 74 61 6c 4d 69 6e ..SetLayoutInputForAxis(totalMin
2aa0 2c 20 74 6f 74 61 6c 50 72 65 66 65 72 72 65 64 2c 20 74 6f 74 61 6c 46 6c 65 78 69 62 6c 65 2c ,.totalPreferred,.totalFlexible,
2ac0 20 61 78 69 73 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 .axis);.........}..........///.<
2ae0 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 74 20 74 68 65 20 70 6f 73 summary>.........///.Set.the.pos
2b00 69 74 69 6f 6e 73 20 61 6e 64 20 73 69 7a 65 73 20 6f 66 20 74 68 65 20 63 68 69 6c 64 20 6c 61 itions.and.sizes.of.the.child.la
2b20 79 6f 75 74 20 65 6c 65 6d 65 6e 74 73 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 61 78 69 73 yout.elements.for.the.given.axis
2b40 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>........
2b60 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 61 78 69 73 22 3e 54 68 65 20 61 78 69 73 .///.<param.name="axis">The.axis
2b80 20 74 6f 20 68 61 6e 64 6c 65 2e 20 30 20 69 73 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e 64 20 .to.handle..0.is.horizontal.and.
2ba0 31 20 69 73 20 76 65 72 74 69 63 61 6c 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 1.is.vertical.</param>........./
2bc0 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 73 56 65 72 74 69 63 61 6c 22 3e 49 73 20 74 //.<param.name="isVertical">Is.t
2be0 68 69 73 20 67 72 6f 75 70 20 61 20 76 65 72 74 69 63 61 6c 20 67 72 6f 75 70 3f 3c 2f 70 61 72 his.group.a.vertical.group?</par
2c00 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 53 65 74 43 68 am>.........protected.void.SetCh
2c20 69 6c 64 72 65 6e 41 6c 6f 6e 67 41 78 69 73 28 69 6e 74 20 61 78 69 73 2c 20 62 6f 6f 6c 20 69 ildrenAlongAxis(int.axis,.bool.i
2c40 73 56 65 72 74 69 63 61 6c 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 sVertical).........{............
2c60 20 66 6c 6f 61 74 20 73 69 7a 65 20 3d 20 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 72 65 63 74 .float.size.=.rectTransform.rect
2c80 2e 73 69 7a 65 5b 61 78 69 73 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 63 6f .size[axis];.............bool.co
2ca0 6e 74 72 6f 6c 53 69 7a 65 20 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 6d 5f 43 68 69 6c 64 ntrolSize.=.(axis.==.0.?.m_Child
2cc0 43 6f 6e 74 72 6f 6c 57 69 64 74 68 20 3a 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 ControlWidth.:.m_ChildControlHei
2ce0 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 75 73 65 53 63 61 6c 65 20 ght);.............bool.useScale.
2d00 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 6d 5f 43 68 69 6c 64 53 63 61 6c 65 57 69 64 74 68 =.(axis.==.0.?.m_ChildScaleWidth
2d20 20 3a 20 6d 5f 43 68 69 6c 64 53 63 61 6c 65 48 65 69 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 .:.m_ChildScaleHeight);.........
2d40 20 20 20 20 62 6f 6f 6c 20 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 53 69 7a 65 20 3d 20 ....bool.childForceExpandSize.=.
2d60 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 57 (axis.==.0.?.m_ChildForceExpandW
2d80 69 64 74 68 20 3a 20 6d 5f 43 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 29 idth.:.m_ChildForceExpandHeight)
2da0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 61 6c 69 67 6e 6d 65 6e 74 4f 6e 41 ;.............float.alignmentOnA
2dc0 78 69 73 20 3d 20 47 65 74 41 6c 69 67 6e 6d 65 6e 74 4f 6e 41 78 69 73 28 61 78 69 73 29 3b 0a xis.=.GetAlignmentOnAxis(axis);.
2de0 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 61 6c 6f 6e 67 4f 74 68 65 72 41 78 69 73 .............bool.alongOtherAxis
2e00 20 3d 20 28 69 73 56 65 72 74 69 63 61 6c 20 5e 20 28 61 78 69 73 20 3d 3d 20 31 29 29 3b 0a 20 .=.(isVertical.^.(axis.==.1));..
2e20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 6c 6f 6e 67 4f 74 68 65 72 41 78 69 73 29 0a 20 ...........if.(alongOtherAxis)..
2e40 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 66 6c 6f ...........{.................flo
2e60 61 74 20 69 6e 6e 65 72 53 69 7a 65 20 3d 20 73 69 7a 65 20 2d 20 28 61 78 69 73 20 3d 3d 20 30 at.innerSize.=.size.-.(axis.==.0
2e80 20 3f 20 70 61 64 64 69 6e 67 2e 68 6f 72 69 7a 6f 6e 74 61 6c 20 3a 20 70 61 64 64 69 6e 67 2e .?.padding.horizontal.:.padding.
2ea0 76 65 72 74 69 63 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 vertical);.................for.(
2ec0 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 72 65 63 74 43 68 69 6c 64 72 65 6e 2e 43 6f 75 6e int.i.=.0;.i.<.rectChildren.Coun
2ee0 74 3b 20 69 2b 2b 29 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 t;.i++).................{.......
2f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 63 68 69 6c ..............RectTransform.chil
2f20 64 20 3d 20 72 65 63 74 43 68 69 6c 64 72 65 6e 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 d.=.rectChildren[i];............
2f40 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 69 6e 2c 20 70 72 65 66 65 72 72 65 64 2c 20 66 .........float.min,.preferred,.f
2f60 6c 65 78 69 62 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 65 74 lexible;.....................Get
2f80 43 68 69 6c 64 53 69 7a 65 73 28 63 68 69 6c 64 2c 20 61 78 69 73 2c 20 63 6f 6e 74 72 6f 6c 53 ChildSizes(child,.axis,.controlS
2fa0 69 7a 65 2c 20 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 53 69 7a 65 2c 20 6f 75 74 20 6d ize,.childForceExpandSize,.out.m
2fc0 69 6e 2c 20 6f 75 74 20 70 72 65 66 65 72 72 65 64 2c 20 6f 75 74 20 66 6c 65 78 69 62 6c 65 29 in,.out.preferred,.out.flexible)
2fe0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 73 63 61 6c ;.....................float.scal
3000 65 46 61 63 74 6f 72 20 3d 20 75 73 65 53 63 61 6c 65 20 3f 20 63 68 69 6c 64 2e 6c 6f 63 61 6c eFactor.=.useScale.?.child.local
3020 53 63 61 6c 65 5b 61 78 69 73 5d 20 3a 20 31 66 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 Scale[axis].:.1f;...............
3040 20 20 20 20 20 20 20 66 6c 6f 61 74 20 72 65 71 75 69 72 65 64 53 70 61 63 65 20 3d 20 4d 61 74 .......float.requiredSpace.=.Mat
3060 68 66 2e 43 6c 61 6d 70 28 69 6e 6e 65 72 53 69 7a 65 2c 20 6d 69 6e 2c 20 66 6c 65 78 69 62 6c hf.Clamp(innerSize,.min,.flexibl
3080 65 20 3e 20 30 20 3f 20 73 69 7a 65 20 3a 20 70 72 65 66 65 72 72 65 64 29 3b 0a 20 20 20 20 20 e.>.0.?.size.:.preferred);......
30a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 73 74 61 72 74 4f 66 66 73 65 74 ...............float.startOffset
30c0 20 3d 20 47 65 74 53 74 61 72 74 4f 66 66 73 65 74 28 61 78 69 73 2c 20 72 65 71 75 69 72 65 64 .=.GetStartOffset(axis,.required
30e0 53 70 61 63 65 20 2a 20 73 63 61 6c 65 46 61 63 74 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 Space.*.scaleFactor);...........
3100 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e 74 72 6f 6c 53 69 7a 65 29 0a 20 20 20 20 20 ..........if.(controlSize)......
3120 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 20 20 20 20 ...............{................
3140 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 57 69 74 68 53 63 .........SetChildAlongAxisWithSc
3160 61 6c 65 28 63 68 69 6c 64 2c 20 61 78 69 73 2c 20 73 74 61 72 74 4f 66 66 73 65 74 2c 20 72 65 ale(child,.axis,.startOffset,.re
3180 71 75 69 72 65 64 53 70 61 63 65 2c 20 73 63 61 6c 65 46 61 63 74 6f 72 29 3b 0a 20 20 20 20 20 quiredSpace,.scaleFactor);......
31a0 20 20 20 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 ...............}................
31c0 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a .....else.....................{.
31e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6f 66 ........................float.of
3200 66 73 65 74 49 6e 43 65 6c 6c 20 3d 20 28 72 65 71 75 69 72 65 64 53 70 61 63 65 20 2d 20 63 68 fsetInCell.=.(requiredSpace.-.ch
3220 69 6c 64 2e 73 69 7a 65 44 65 6c 74 61 5b 61 78 69 73 5d 29 20 2a 20 61 6c 69 67 6e 6d 65 6e 74 ild.sizeDelta[axis]).*.alignment
3240 4f 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 20 20 20 20 OnAxis;.........................
3260 53 65 74 43 68 69 6c 64 41 6c 6f 6e 67 41 78 69 73 57 69 74 68 53 63 61 6c 65 28 63 68 69 6c 64 SetChildAlongAxisWithScale(child
3280 2c 20 61 78 69 73 2c 20 73 74 61 72 74 4f 66 66 73 65 74 20 2b 20 6f 66 66 73 65 74 49 6e 43 65 ,.axis,.startOffset.+.offsetInCe
32a0 6c 6c 2c 20 73 63 61 6c 65 46 61 63 74 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ll,.scaleFactor);...............
32c0 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 ......}.................}.......
32e0 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 20 20 20 20 ......}.............else........
3300 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 70 6f 73 .....{.................float.pos
3320 20 3d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 70 61 64 64 69 6e 67 2e 6c 65 66 74 20 3a 20 70 .=.(axis.==.0.?.padding.left.:.p
3340 61 64 64 69 6e 67 2e 74 6f 70 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f adding.top);.................flo
3360 61 74 20 69 74 65 6d 46 6c 65 78 69 62 6c 65 4d 75 6c 74 69 70 6c 69 65 72 20 3d 20 30 3b 0a 20 at.itemFlexibleMultiplier.=.0;..
3380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 73 75 72 70 6c 75 73 53 70 61 63 ...............float.surplusSpac
33a0 65 20 3d 20 73 69 7a 65 20 2d 20 47 65 74 54 6f 74 61 6c 50 72 65 66 65 72 72 65 64 53 69 7a 65 e.=.size.-.GetTotalPreferredSize
33c0 28 61 78 69 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 75 72 (axis);..................if.(sur
33e0 70 6c 75 73 53 70 61 63 65 20 3e 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b plusSpace.>.0).................{
3400 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 65 74 54 6f 74 61 .....................if.(GetTota
3420 6c 46 6c 65 78 69 62 6c 65 53 69 7a 65 28 61 78 69 73 29 20 3d 3d 20 30 29 0a 20 20 20 20 20 20 lFlexibleSize(axis).==.0).......
3440 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 20 3d 20 47 65 74 53 74 61 72 74 ..................pos.=.GetStart
3460 4f 66 66 73 65 74 28 61 78 69 73 2c 20 47 65 74 54 6f 74 61 6c 50 72 65 66 65 72 72 65 64 53 69 Offset(axis,.GetTotalPreferredSi
3480 7a 65 28 61 78 69 73 29 20 2d 20 28 61 78 69 73 20 3d 3d 20 30 20 3f 20 70 61 64 64 69 6e 67 2e ze(axis).-.(axis.==.0.?.padding.
34a0 68 6f 72 69 7a 6f 6e 74 61 6c 20 3a 20 70 61 64 64 69 6e 67 2e 76 65 72 74 69 63 61 6c 29 29 3b horizontal.:.padding.vertical));
34c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 47 65 .....................else.if.(Ge
34e0 74 54 6f 74 61 6c 46 6c 65 78 69 62 6c 65 53 69 7a 65 28 61 78 69 73 29 20 3e 20 30 29 0a 20 20 tTotalFlexibleSize(axis).>.0)...
3500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 74 65 6d 46 6c 65 78 69 62 ......................itemFlexib
3520 6c 65 4d 75 6c 74 69 70 6c 69 65 72 20 3d 20 73 75 72 70 6c 75 73 53 70 61 63 65 20 2f 20 47 65 leMultiplier.=.surplusSpace./.Ge
3540 74 54 6f 74 61 6c 46 6c 65 78 69 62 6c 65 53 69 7a 65 28 61 78 69 73 29 3b 0a 20 20 20 20 20 20 tTotalFlexibleSize(axis);.......
3560 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 20 20 20 20 66 6c 6f ..........}..................flo
3580 61 74 20 6d 69 6e 4d 61 78 4c 65 72 70 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 at.minMaxLerp.=.0;..............
35a0 20 20 20 69 66 20 28 47 65 74 54 6f 74 61 6c 4d 69 6e 53 69 7a 65 28 61 78 69 73 29 20 21 3d 20 ...if.(GetTotalMinSize(axis).!=.
35c0 47 65 74 54 6f 74 61 6c 50 72 65 66 65 72 72 65 64 53 69 7a 65 28 61 78 69 73 29 29 0a 20 20 20 GetTotalPreferredSize(axis))....
35e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 4d 61 78 4c 65 72 70 20 3d 20 4d 61 .................minMaxLerp.=.Ma
3600 74 68 66 2e 43 6c 61 6d 70 30 31 28 28 73 69 7a 65 20 2d 20 47 65 74 54 6f 74 61 6c 4d 69 6e 53 thf.Clamp01((size.-.GetTotalMinS
3620 69 7a 65 28 61 78 69 73 29 29 20 2f 20 28 47 65 74 54 6f 74 61 6c 50 72 65 66 65 72 72 65 64 53 ize(axis))./.(GetTotalPreferredS
3640 69 7a 65 28 61 78 69 73 29 20 2d 20 47 65 74 54 6f 74 61 6c 4d 69 6e 53 69 7a 65 28 61 78 69 73 ize(axis).-.GetTotalMinSize(axis
3660 29 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 )));..................for.(int.i
3680 20 3d 20 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 .=.0;.i.<.rectChildren.Count;.i+
36a0 2b 29 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 +).................{............
36c0 20 20 20 20 20 20 20 20 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 63 68 69 6c 64 20 3d 20 72 .........RectTransform.child.=.r
36e0 65 63 74 43 68 69 6c 64 72 65 6e 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ectChildren[i];.................
3700 20 20 20 20 66 6c 6f 61 74 20 6d 69 6e 2c 20 70 72 65 66 65 72 72 65 64 2c 20 66 6c 65 78 69 62 ....float.min,.preferred,.flexib
3720 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 65 74 43 68 69 6c 64 le;.....................GetChild
3740 53 69 7a 65 73 28 63 68 69 6c 64 2c 20 61 78 69 73 2c 20 63 6f 6e 74 72 6f 6c 53 69 7a 65 2c 20 Sizes(child,.axis,.controlSize,.
3760 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 53 69 7a 65 2c 20 6f 75 74 20 6d 69 6e 2c 20 6f childForceExpandSize,.out.min,.o
3780 75 74 20 70 72 65 66 65 72 72 65 64 2c 20 6f 75 74 20 66 6c 65 78 69 62 6c 65 29 3b 0a 20 20 20 ut.preferred,.out.flexible);....
37a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 73 63 61 6c 65 46 61 63 74 .................float.scaleFact
37c0 6f 72 20 3d 20 75 73 65 53 63 61 6c 65 20 3f 20 63 68 69 6c 64 2e 6c 6f 63 61 6c 53 63 61 6c 65 or.=.useScale.?.child.localScale
37e0 5b 61 78 69 73 5d 20 3a 20 31 66 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 [axis].:.1f;....................
3800 20 20 66 6c 6f 61 74 20 63 68 69 6c 64 53 69 7a 65 20 3d 20 4d 61 74 68 66 2e 4c 65 72 70 28 6d ..float.childSize.=.Mathf.Lerp(m
3820 69 6e 2c 20 70 72 65 66 65 72 72 65 64 2c 20 6d 69 6e 4d 61 78 4c 65 72 70 29 3b 0a 20 20 20 20 in,.preferred,.minMaxLerp);.....
3840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 69 6c 64 53 69 7a 65 20 2b 3d 20 66 6c 65 ................childSize.+=.fle
3860 78 69 62 6c 65 20 2a 20 69 74 65 6d 46 6c 65 78 69 62 6c 65 4d 75 6c 74 69 70 6c 69 65 72 3b 0a xible.*.itemFlexibleMultiplier;.
3880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e 74 72 6f 6c 53 ....................if.(controlS
38a0 69 7a 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 ize).....................{......
38c0 20 20 20 20 20 20 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 ...................SetChildAlong
38e0 41 78 69 73 57 69 74 68 53 63 61 6c 65 28 63 68 69 6c 64 2c 20 61 78 69 73 2c 20 70 6f 73 2c 20 AxisWithScale(child,.axis,.pos,.
3900 63 68 69 6c 64 53 69 7a 65 2c 20 73 63 61 6c 65 46 61 63 74 6f 72 29 3b 0a 20 20 20 20 20 20 20 childSize,.scaleFactor);........
3920 20 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 20 .............}..................
3940 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 ...else.....................{...
3960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6f 66 66 73 ......................float.offs
3980 65 74 49 6e 43 65 6c 6c 20 3d 20 28 63 68 69 6c 64 53 69 7a 65 20 2d 20 63 68 69 6c 64 2e 73 69 etInCell.=.(childSize.-.child.si
39a0 7a 65 44 65 6c 74 61 5b 61 78 69 73 5d 29 20 2a 20 61 6c 69 67 6e 6d 65 6e 74 4f 6e 41 78 69 73 zeDelta[axis]).*.alignmentOnAxis
39c0 3b 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 53 65 74 43 68 69 ;.........................SetChi
39e0 6c 64 41 6c 6f 6e 67 41 78 69 73 57 69 74 68 53 63 61 6c 65 28 63 68 69 6c 64 2c 20 61 78 69 73 ldAlongAxisWithScale(child,.axis
3a00 2c 20 70 6f 73 20 2b 20 6f 66 66 73 65 74 49 6e 43 65 6c 6c 2c 20 73 63 61 6c 65 46 61 63 74 6f ,.pos.+.offsetInCell,.scaleFacto
3a20 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 r);.....................}.......
3a40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 20 2b 3d 20 63 68 69 6c 64 53 69 7a 65 20 2a ..............pos.+=.childSize.*
3a60 20 73 63 61 6c 65 46 61 63 74 6f 72 20 2b 20 73 70 61 63 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 .scaleFactor.+.spacing;.........
3a80 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 ........}.............}.........
3aa0 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 47 65 74 43 68 69 6c 64 }..........private.void.GetChild
3ac0 53 69 7a 65 73 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 63 68 69 6c 64 2c 20 69 6e 74 20 61 Sizes(RectTransform.child,.int.a
3ae0 78 69 73 2c 20 62 6f 6f 6c 20 63 6f 6e 74 72 6f 6c 53 69 7a 65 2c 20 62 6f 6f 6c 20 63 68 69 6c xis,.bool.controlSize,.bool.chil
3b00 64 46 6f 72 63 65 45 78 70 61 6e 64 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 75 74 20 66 6c dForceExpand,.............out.fl
3b20 6f 61 74 20 6d 69 6e 2c 20 6f 75 74 20 66 6c 6f 61 74 20 70 72 65 66 65 72 72 65 64 2c 20 6f 75 oat.min,.out.float.preferred,.ou
3b40 74 20 66 6c 6f 61 74 20 66 6c 65 78 69 62 6c 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 t.float.flexible).........{.....
3b60 20 20 20 20 20 20 20 20 69 66 20 28 21 63 6f 6e 74 72 6f 6c 53 69 7a 65 29 0a 20 20 20 20 20 20 ........if.(!controlSize).......
3b80 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 20 3d 20 63 68 ......{.................min.=.ch
3ba0 69 6c 64 2e 73 69 7a 65 44 65 6c 74 61 5b 61 78 69 73 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ild.sizeDelta[axis];............
3bc0 20 20 20 20 20 70 72 65 66 65 72 72 65 64 20 3d 20 6d 69 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 .....preferred.=.min;...........
3be0 20 20 20 20 20 20 66 6c 65 78 69 62 6c 65 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ......flexible.=.0;.............
3c00 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 20 20 7b }.............else.............{
3c20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 6e 20 3d 20 4c 61 79 6f 75 74 55 74 69 .................min.=.LayoutUti
3c40 6c 69 74 79 2e 47 65 74 4d 69 6e 53 69 7a 65 28 63 68 69 6c 64 2c 20 61 78 69 73 29 3b 0a 20 20 lity.GetMinSize(child,.axis);...
3c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 65 66 65 72 72 65 64 20 3d 20 4c 61 79 6f 75 74 ..............preferred.=.Layout
3c80 55 74 69 6c 69 74 79 2e 47 65 74 50 72 65 66 65 72 72 65 64 53 69 7a 65 28 63 68 69 6c 64 2c 20 Utility.GetPreferredSize(child,.
3ca0 61 78 69 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 65 78 69 62 6c 65 20 axis);.................flexible.
3cc0 3d 20 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 46 6c 65 78 69 62 6c 65 53 69 7a 65 28 =.LayoutUtility.GetFlexibleSize(
3ce0 63 68 69 6c 64 2c 20 61 78 69 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 child,.axis);.............}.....
3d00 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 29 0a 20 .........if.(childForceExpand)..
3d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 65 78 69 62 6c 65 20 3d 20 4d 61 74 68 66 2e ...............flexible.=.Mathf.
3d40 4d 61 78 28 66 6c 65 78 69 62 6c 65 2c 20 31 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 23 69 66 Max(flexible,.1);.........}..#if
3d60 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 .UNITY_EDITOR.........protected.
3d80 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 52 65 73 65 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a override.void.Reset().........{.
3da0 20 20 20 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 52 65 73 65 74 28 29 3b 0a 0a 20 20 20 20 20 ............base.Reset();.......
3dc0 20 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 6e 65 77 20 61 64 64 65 64 20 63 6f 6d 70 6f 6e 65 6e .......//.For.new.added.componen
3de0 74 73 20 77 65 20 77 61 6e 74 20 74 68 65 73 65 20 74 6f 20 62 65 20 73 65 74 20 74 6f 20 66 61 ts.we.want.these.to.be.set.to.fa
3e00 6c 73 65 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 6f 20 74 68 61 74 20 74 68 65 20 lse,.............//.so.that.the.
3e20 75 73 65 72 27 73 20 73 69 7a 65 73 20 77 6f 6e 27 74 20 62 65 20 6f 76 65 72 77 72 69 74 74 65 user's.sizes.won't.be.overwritte
3e40 6e 20 62 65 66 6f 72 65 20 74 68 65 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 68 61 76 n.before.they.............//.hav
3e60 65 20 61 20 63 68 61 6e 63 65 20 74 6f 20 74 75 72 6e 20 74 68 65 73 65 20 73 65 74 74 69 6e 67 e.a.chance.to.turn.these.setting
3e80 73 20 6f 66 66 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 66 s.off..............//.However,.f
3ea0 6f 72 20 65 78 69 73 74 69 6e 67 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 74 68 61 74 20 77 65 72 65 or.existing.components.that.were
3ec0 20 61 64 64 65 64 20 62 65 66 6f 72 65 20 74 68 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f .added.before.this............./
3ee0 2f 20 66 65 61 74 75 72 65 20 77 61 73 20 69 6e 74 72 6f 64 75 63 65 64 2c 20 77 65 20 77 61 6e /.feature.was.introduced,.we.wan
3f00 74 20 69 74 20 74 6f 20 62 65 20 6f 6e 20 62 65 20 64 65 66 61 75 6c 74 20 66 6f 72 0a 20 20 20 t.it.to.be.on.be.default.for....
3f20 20 20 20 20 20 20 20 20 20 2f 2f 20 62 61 63 6b 77 61 72 64 64 73 20 63 6f 6d 70 61 74 69 62 69 .........//.backwardds.compatibi
3f40 6c 69 74 79 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 65 6e 63 65 20 74 68 65 69 72 lity..............//.Hence.their
3f60 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 20 69 73 20 6f 6e 2c 20 62 75 74 20 77 65 20 73 65 74 .default.value.is.on,.but.we.set
3f80 20 74 6f 20 6f 66 66 20 69 6e 20 72 65 73 65 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f .to.off.in.reset..............m_
3fa0 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 69 64 74 68 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 ChildControlWidth.=.false;......
3fc0 20 20 20 20 20 20 20 6d 5f 43 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 20 3d 20 66 61 .......m_ChildControlHeight.=.fa
3fe0 6c 73 65 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 lse;.........}..........private.
4000 69 6e 74 20 6d 5f 43 61 70 61 63 69 74 79 20 3d 20 31 30 3b 0a 20 20 20 20 20 20 20 20 70 72 69 int.m_Capacity.=.10;.........pri
4020 76 61 74 65 20 56 65 63 74 6f 72 32 5b 5d 20 6d 5f 53 69 7a 65 73 20 3d 20 6e 65 77 20 56 65 63 vate.Vector2[].m_Sizes.=.new.Vec
4040 74 6f 72 32 5b 31 30 5d 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 69 72 tor2[10];..........protected.vir
4060 74 75 61 6c 20 76 6f 69 64 20 55 70 64 61 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 tual.void.Update().........{....
4080 20 20 20 20 20 20 20 20 20 69 66 20 28 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 6c 61 79 69 .........if.(Application.isPlayi
40a0 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 ng).................return;.....
40c0 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 6f 75 6e 74 20 3d 20 74 72 61 6e 73 66 6f 72 6d 2e 63 .........int.count.=.transform.c
40e0 68 69 6c 64 43 6f 75 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e hildCount;..............if.(coun
4100 74 20 3e 20 6d 5f 43 61 70 61 63 69 74 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 t.>.m_Capacity).............{...
4120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3e 20 6d 5f 43 61 70 61 ..............if.(count.>.m_Capa
4140 63 69 74 79 20 2a 20 32 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f city.*.2).....................m_
4160 43 61 70 61 63 69 74 79 20 3d 20 63 6f 75 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Capacity.=.count;...............
4180 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 70 ..else.....................m_Cap
41a0 61 63 69 74 79 20 2a 3d 20 32 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 acity.*=.2;..................m_S
41c0 69 7a 65 73 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 5b 6d 5f 43 61 70 61 63 69 74 79 5d 3b 0a izes.=.new.Vector2[m_Capacity];.
41e0 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 2f 2f 20 49 66 ............}..............//.If
4200 20 63 68 69 6c 64 72 65 6e 20 73 69 7a 65 20 63 68 61 6e 67 65 20 69 6e 20 65 64 69 74 6f 72 2c .children.size.change.in.editor,
4220 20 75 70 64 61 74 65 20 6c 61 79 6f 75 74 20 28 63 61 73 65 20 39 34 35 36 38 30 20 2d 20 43 68 .update.layout.(case.945680.-.Ch
4240 69 6c 64 20 47 61 6d 65 4f 62 6a 65 63 74 73 20 69 6e 20 61 20 48 6f 72 69 7a 6f 6e 74 61 6c 2f ild.GameObjects.in.a.Horizontal/
4260 56 65 72 74 69 63 61 6c 20 4c 61 79 6f 75 74 20 47 72 6f 75 70 20 64 6f 6e 27 74 20 64 69 73 70 Vertical.Layout.Group.don't.disp
4280 6c 61 79 20 74 68 65 69 72 20 63 6f 72 72 65 63 74 20 70 6f 73 69 74 69 6f 6e 20 69 6e 20 74 68 lay.their.correct.position.in.th
42a0 65 20 45 64 69 74 6f 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 64 69 72 74 79 e.Editor).............bool.dirty
42c0 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 .=.false;.............for.(int.i
42e0 20 3d 20 30 3b 20 69 20 3c 20 63 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 20 20 .=.0;.i.<.count;.i++)...........
4300 20 20 7b 0a 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 6f 72 ..{.................RectTransfor
4320 6d 20 74 20 3d 20 74 72 61 6e 73 66 6f 72 6d 2e 47 65 74 43 68 69 6c 64 28 69 29 20 61 73 20 52 m.t.=.transform.GetChild(i).as.R
4340 65 63 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 ectTransform;.................if
4360 20 28 74 20 21 3d 20 6e 75 6c 6c 20 26 26 20 74 2e 73 69 7a 65 44 65 6c 74 61 20 21 3d 20 6d 5f .(t.!=.null.&&.t.sizeDelta.!=.m_
4380 53 69 7a 65 73 5b 69 5d 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 Sizes[i]).................{.....
43a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 69 72 74 79 20 3d 20 74 72 75 65 3b 0a 20 20 ................dirty.=.true;...
43c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 69 7a 65 73 5b 69 5d 20 3d 20 74 ..................m_Sizes[i].=.t
43e0 2e 73 69 7a 65 44 65 6c 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 .sizeDelta;.................}...
4400 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 69 66 20 28 64 69 72 ..........}..............if.(dir
4420 74 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4c 61 79 6f 75 74 52 65 62 75 69 6c ty).................LayoutRebuil
4440 64 65 72 2e 4d 61 72 6b 4c 61 79 6f 75 74 46 6f 72 52 65 62 75 69 6c 64 28 74 72 61 6e 73 66 6f der.MarkLayoutForRebuild(transfo
4460 72 6d 20 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a rm.as.RectTransform);.........}.
4480 0a 23 65 6e 64 69 66 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .#endif.....}.}.................
44a0 00 00 00 00 1f 00 00 00 48 6f 72 69 7a 6f 6e 74 61 6c 4f 72 56 65 72 74 69 63 61 6c 4c 61 79 6f ........HorizontalOrVerticalLayo
44c0 75 74 47 72 6f 75 70 00 0e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 00 00 utGroup.....UnityEngine.UI..