summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e3/e33aaeccbd400f4d30f59f4530af52ae
blob: 6011920cd9aa8c66da0b4178b62724af5b588ad8 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 3b 04 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......;.............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 a4 2a 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .*..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 0f 00 00 00 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 65 72 00 28 2a 00 00 ............LayoutRebuilder.(*..
10a0 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 using.System.Collections.Generic
10c0 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 45 76 65 6e 74 73 3b 0a 0a 6e 61 6d ;.using.UnityEngine.Events;..nam
10e0 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 0a 7b 0a 20 20 20 20 2f 2f 2f 20 espace.UnityEngine.UI.{.....///.
1100 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 57 72 61 70 70 65 72 20 63 6c 61 73 73 20 <summary>.....///.Wrapper.class.
1120 66 6f 72 20 6d 61 6e 61 67 69 6e 67 20 6c 61 79 6f 75 74 20 72 65 62 75 69 6c 64 69 6e 67 20 6f for.managing.layout.rebuilding.o
1140 66 20 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 f.CanvasElement......///.</summa
1160 72 79 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 4c 61 79 6f 75 74 52 65 62 75 69 ry>.....public.class.LayoutRebui
1180 6c 64 65 72 20 3a 20 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 0a 20 20 20 20 7b 0a 20 20 20 20 lder.:.ICanvasElement.....{.....
11a0 20 20 20 20 70 72 69 76 61 74 65 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 6d 5f 54 6f 52 65 ....private.RectTransform.m_ToRe
11c0 62 75 69 6c 64 3b 0a 20 20 20 20 20 20 20 20 2f 2f 54 68 65 72 65 20 61 72 65 20 61 20 66 65 77 build;.........//There.are.a.few
11e0 20 6f 66 20 72 65 61 73 6f 6e 73 20 77 65 20 6e 65 65 64 20 74 6f 20 63 61 63 68 65 20 74 68 65 .of.reasons.we.need.to.cache.the
1200 20 48 61 73 68 20 66 72 6f 6d 74 20 68 65 20 74 72 61 6e 73 66 6f 72 6d 3a 0a 20 20 20 20 20 20 .Hash.fromt.he.transform:.......
1220 20 20 2f 2f 20 20 2d 20 54 68 69 73 20 69 73 20 61 20 56 61 6c 75 65 54 79 70 65 20 28 73 74 72 ..//..-.This.is.a.ValueType.(str
1240 75 63 74 29 20 61 6e 64 20 2e 4e 65 74 20 63 61 6c 63 75 6c 61 74 65 73 20 48 61 73 68 20 66 72 uct).and..Net.calculates.Hash.fr
1260 6f 6d 20 74 68 65 20 56 61 6c 75 65 20 54 79 70 65 20 66 69 65 6c 64 73 2e 0a 20 20 20 20 20 20 om.the.Value.Type.fields........
1280 20 20 2f 2f 20 20 2d 20 54 68 65 20 6b 65 79 20 6f 66 20 61 20 44 69 63 74 69 6f 6e 61 72 79 20 ..//..-.The.key.of.a.Dictionary.
12a0 73 68 6f 75 6c 64 20 68 61 76 65 20 61 20 63 6f 6e 73 74 61 6e 74 20 48 61 73 68 20 76 61 6c 75 should.have.a.constant.Hash.valu
12c0 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 20 20 2d 20 49 74 27 73 20 70 6f 73 73 69 62 6c 65 20 66 e..........//..-.It's.possible.f
12e0 6f 72 20 74 68 65 20 54 72 61 6e 73 66 6f 72 6d 20 74 6f 20 67 65 74 20 6e 75 6c 6c 65 64 20 66 or.the.Transform.to.get.nulled.f
1300 72 6f 6d 20 74 68 65 20 4e 61 74 69 76 65 20 73 69 64 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 20 rom.the.Native.side..........//.
1320 57 65 20 75 73 65 20 74 68 69 73 20 73 74 72 75 63 74 20 77 69 74 68 20 74 68 65 20 49 6e 64 65 We.use.this.struct.with.the.Inde
1340 78 65 64 53 65 74 20 63 6f 6e 74 61 69 6e 65 72 2c 20 77 68 69 63 68 20 75 73 65 73 20 61 20 64 xedSet.container,.which.uses.a.d
1360 69 63 74 69 6f 6e 61 72 79 20 61 73 20 70 61 72 74 20 6f 66 20 69 74 27 73 20 69 6d 70 6c 65 6d ictionary.as.part.of.it's.implem
1380 65 6e 74 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 2f 2f 20 53 6f 20 74 68 69 73 20 73 74 72 75 entation.........//.So.this.stru
13a0 63 74 20 67 65 74 73 20 75 73 65 64 20 61 73 20 61 20 6b 65 79 20 74 6f 20 61 20 64 69 63 74 69 ct.gets.used.as.a.key.to.a.dicti
13c0 6f 6e 61 72 79 2c 20 73 6f 20 77 65 20 6e 65 65 64 20 74 6f 20 67 75 61 72 61 6e 74 65 65 20 61 onary,.so.we.need.to.guarantee.a
13e0 20 63 6f 6e 73 74 61 6e 74 20 48 61 73 68 20 76 61 6c 75 65 2e 0a 20 20 20 20 20 20 20 20 70 72 .constant.Hash.value..........pr
1400 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 61 63 68 65 64 48 61 73 68 46 72 6f 6d 54 72 61 6e 73 66 ivate.int.m_CachedHashFromTransf
1420 6f 72 6d 3b 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 4f 62 6a 65 63 74 50 6f 6f 6c 3c orm;..........static.ObjectPool<
1440 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 65 72 3e 20 73 5f 52 65 62 75 69 6c 64 65 72 73 20 3d 20 LayoutRebuilder>.s_Rebuilders.=.
1460 6e 65 77 20 4f 62 6a 65 63 74 50 6f 6f 6c 3c 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 65 72 3e 28 new.ObjectPool<LayoutRebuilder>(
1480 6e 75 6c 6c 2c 20 78 20 3d 3e 20 78 2e 43 6c 65 61 72 28 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 null,.x.=>.x.Clear());..........
14a0 70 72 69 76 61 74 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 52 65 63 74 54 72 61 6e private.void.Initialize(RectTran
14c0 73 66 6f 72 6d 20 63 6f 6e 74 72 6f 6c 6c 65 72 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 sform.controller).........{.....
14e0 20 20 20 20 20 20 20 20 6d 5f 54 6f 52 65 62 75 69 6c 64 20 3d 20 63 6f 6e 74 72 6f 6c 6c 65 72 ........m_ToRebuild.=.controller
1500 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 63 68 65 64 48 61 73 68 46 72 6f 6d 54 72 ;.............m_CachedHashFromTr
1520 61 6e 73 66 6f 72 6d 20 3d 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 47 65 74 48 61 73 68 43 6f 64 65 ansform.=.controller.GetHashCode
1540 28 29 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 ();.........}..........private.v
1560 6f 69 64 20 43 6c 65 61 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 oid.Clear().........{...........
1580 20 20 6d 5f 54 6f 52 65 62 75 69 6c 64 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 ..m_ToRebuild.=.null;...........
15a0 20 20 6d 5f 43 61 63 68 65 64 48 61 73 68 46 72 6f 6d 54 72 61 6e 73 66 6f 72 6d 20 3d 20 30 3b ..m_CachedHashFromTransform.=.0;
15c0 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 4c 61 79 6f 75 .........}..........static.Layou
15e0 74 52 65 62 75 69 6c 64 65 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 tRebuilder().........{..........
1600 20 20 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 72 65 61 70 70 6c 79 44 72 69 76 65 6e 50 72 ...RectTransform.reapplyDrivenPr
1620 6f 70 65 72 74 69 65 73 20 2b 3d 20 52 65 61 70 70 6c 79 44 72 69 76 65 6e 50 72 6f 70 65 72 74 operties.+=.ReapplyDrivenPropert
1640 69 65 73 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 ies;.........}..........static.v
1660 6f 69 64 20 52 65 61 70 70 6c 79 44 72 69 76 65 6e 50 72 6f 70 65 72 74 69 65 73 28 52 65 63 74 oid.ReapplyDrivenProperties(Rect
1680 54 72 61 6e 73 66 6f 72 6d 20 64 72 69 76 65 6e 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 Transform.driven).........{.....
16a0 20 20 20 20 20 20 20 20 4d 61 72 6b 4c 61 79 6f 75 74 46 6f 72 52 65 62 75 69 6c 64 28 64 72 69 ........MarkLayoutForRebuild(dri
16c0 76 65 6e 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ven);.........}..........public.
16e0 54 72 61 6e 73 66 6f 72 6d 20 74 72 61 6e 73 66 6f 72 6d 20 7b 20 67 65 74 20 7b 20 72 65 74 75 Transform.transform.{.get.{.retu
1700 72 6e 20 6d 5f 54 6f 52 65 62 75 69 6c 64 3b 20 7d 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 rn.m_ToRebuild;.}}..........///.
1720 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 48 61 73 20 74 68 65 20 6e 61 <summary>.........///.Has.the.na
1740 74 69 76 65 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 69 73 20 4c 61 79 6f tive.representation.of.this.Layo
1760 75 74 52 65 62 75 69 6c 64 65 72 20 62 65 65 6e 20 64 65 73 74 72 6f 79 65 64 3f 0a 20 20 20 20 utRebuilder.been.destroyed?.....
1780 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
17a0 63 20 62 6f 6f 6c 20 49 73 44 65 73 74 72 6f 79 65 64 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 c.bool.IsDestroyed().........{..
17c0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 54 6f 52 65 62 75 69 6c 64 20 3d 3d ...........return.m_ToRebuild.==
17e0 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 .null;.........}..........static
1800 20 76 6f 69 64 20 53 74 72 69 70 44 69 73 61 62 6c 65 64 42 65 68 61 76 69 6f 75 72 73 46 72 6f .void.StripDisabledBehavioursFro
1820 6d 4c 69 73 74 28 4c 69 73 74 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 20 63 6f 6d 70 6f 6e 65 6e 74 73 mList(List<Component>.components
1840 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6d 70 6f 6e 65 6e ).........{.............componen
1860 74 73 2e 52 65 6d 6f 76 65 41 6c 6c 28 65 20 3d 3e 20 65 20 69 73 20 42 65 68 61 76 69 6f 75 72 ts.RemoveAll(e.=>.e.is.Behaviour
1880 20 26 26 20 21 28 28 42 65 68 61 76 69 6f 75 72 29 65 29 2e 69 73 41 63 74 69 76 65 41 6e 64 45 .&&.!((Behaviour)e).isActiveAndE
18a0 6e 61 62 6c 65 64 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 nabled);.........}..........///.
18c0 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 6f 72 63 65 73 20 61 6e 20 <summary>.........///.Forces.an.
18e0 69 6d 6d 65 64 69 61 74 65 20 72 65 62 75 69 6c 64 20 6f 66 20 74 68 65 20 6c 61 79 6f 75 74 20 immediate.rebuild.of.the.layout.
1900 65 6c 65 6d 65 6e 74 20 61 6e 64 20 63 68 69 6c 64 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 element.and.child.layout.element
1920 73 20 61 66 66 65 63 74 65 64 20 62 79 20 74 68 65 20 63 61 6c 63 75 6c 61 74 69 6f 6e 73 2e 0a s.affected.by.the.calculations..
1940 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 2f ........///.</summary>........./
1960 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6c 61 79 6f 75 74 52 6f 6f 74 22 3e 54 68 65 20 //.<param.name="layoutRoot">The.
1980 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 20 6c 61 layout.element.to.perform.the.la
19a0 79 6f 75 74 20 72 65 62 75 69 6c 64 20 6f 6e 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 yout.rebuild.on.</param>........
19c0 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 4e 6f 72 6d 61 .///.<remarks>.........///.Norma
19e0 6c 20 75 73 65 20 6f 66 20 74 68 65 20 6c 61 79 6f 75 74 20 73 79 73 74 65 6d 20 73 68 6f 75 6c l.use.of.the.layout.system.shoul
1a00 64 20 6e 6f 74 20 75 73 65 20 74 68 69 73 20 6d 65 74 68 6f 64 2e 20 49 6e 73 74 65 61 64 20 4d d.not.use.this.method..Instead.M
1a20 61 72 6b 4c 61 79 6f 75 74 46 6f 72 52 65 62 75 69 6c 64 20 73 68 6f 75 6c 64 20 62 65 20 75 73 arkLayoutForRebuild.should.be.us
1a40 65 64 20 69 6e 73 74 65 61 64 2c 20 77 68 69 63 68 20 74 72 69 67 67 65 72 73 20 61 20 64 65 6c ed.instead,.which.triggers.a.del
1a60 61 79 65 64 20 6c 61 79 6f 75 74 20 72 65 62 75 69 6c 64 20 64 75 72 69 6e 67 20 74 68 65 20 6e ayed.layout.rebuild.during.the.n
1a80 65 78 74 20 6c 61 79 6f 75 74 20 70 61 73 73 2e 20 54 68 65 20 64 65 6c 61 79 65 64 20 72 65 62 ext.layout.pass..The.delayed.reb
1aa0 75 69 6c 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 68 61 6e 64 6c 65 73 20 6f 62 6a 65 63 uild.automatically.handles.objec
1ac0 74 73 20 69 6e 20 74 68 65 20 65 6e 74 69 72 65 20 6c 61 79 6f 75 74 20 68 69 65 72 61 72 63 68 ts.in.the.entire.layout.hierarch
1ae0 79 20 69 6e 20 74 68 65 20 63 6f 72 72 65 63 74 20 6f 72 64 65 72 2c 20 61 6e 64 20 70 72 65 76 y.in.the.correct.order,.and.prev
1b00 65 6e 74 73 20 6d 75 6c 74 69 70 6c 65 20 72 65 63 61 6c 63 75 6c 61 74 69 6f 6e 73 20 66 6f 72 ents.multiple.recalculations.for
1b20 20 74 68 65 20 73 61 6d 65 20 6c 61 79 6f 75 74 20 65 6c 65 6d 65 6e 74 73 2e 0a 20 20 20 20 20 .the.same.layout.elements.......
1b40 20 20 20 2f 2f 2f 20 48 6f 77 65 76 65 72 2c 20 66 6f 72 20 73 70 65 63 69 61 6c 20 6c 61 79 6f ...///.However,.for.special.layo
1b60 75 74 20 63 61 6c 63 75 6c 61 74 69 6f 6e 20 6e 65 65 64 73 2c 20 3a 3a 72 65 66 3a 3a 46 6f 72 ut.calculation.needs,.::ref::For
1b80 63 65 52 65 62 75 69 6c 64 4c 61 79 6f 75 74 49 6d 6d 65 64 69 61 74 65 20 63 61 6e 20 62 65 20 ceRebuildLayoutImmediate.can.be.
1ba0 75 73 65 64 20 74 6f 20 67 65 74 20 74 68 65 20 6c 61 79 6f 75 74 20 6f 66 20 61 20 73 75 62 2d used.to.get.the.layout.of.a.sub-
1bc0 74 72 65 65 20 72 65 73 6f 6c 76 65 64 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e 20 54 68 69 73 20 tree.resolved.immediately..This.
1be0 63 61 6e 20 65 76 65 6e 20 62 65 20 64 6f 6e 65 20 66 72 6f 6d 20 69 6e 73 69 64 65 20 6c 61 79 can.even.be.done.from.inside.lay
1c00 6f 75 74 20 63 61 6c 63 75 6c 61 74 69 6f 6e 20 6d 65 74 68 6f 64 73 20 73 75 63 68 20 61 73 20 out.calculation.methods.such.as.
1c20 49 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 2e 53 65 74 4c 61 79 6f 75 74 48 6f 72 69 7a ILayoutController.SetLayoutHoriz
1c40 6f 6e 74 61 6c 20 6f 72 49 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 2e 53 65 74 4c 61 79 ontal.orILayoutController.SetLay
1c60 6f 75 74 56 65 72 74 69 63 61 6c 2e 20 55 73 61 67 65 20 73 68 6f 75 6c 64 20 62 65 20 72 65 73 outVertical..Usage.should.be.res
1c80 74 72 69 63 74 65 64 20 74 6f 20 63 61 73 65 73 20 77 68 65 72 65 20 6d 75 6c 74 69 70 6c 65 20 tricted.to.cases.where.multiple.
1ca0 6c 61 79 6f 75 74 20 70 61 73 73 65 73 20 61 72 65 20 75 6e 61 76 61 6f 69 64 61 62 6c 65 20 64 layout.passes.are.unavaoidable.d
1cc0 65 73 70 69 74 65 20 74 68 65 20 65 78 74 72 61 20 63 6f 73 74 20 69 6e 20 70 65 72 66 6f 72 6d espite.the.extra.cost.in.perform
1ce0 61 6e 63 65 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 20 20 ance..........///.</remarks>....
1d00 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 46 6f 72 63 65 52 65 62 .....public.static.void.ForceReb
1d20 75 69 6c 64 4c 61 79 6f 75 74 49 6d 6d 65 64 69 61 74 65 28 52 65 63 74 54 72 61 6e 73 66 6f 72 uildLayoutImmediate(RectTransfor
1d40 6d 20 6c 61 79 6f 75 74 52 6f 6f 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 m.layoutRoot).........{.........
1d60 20 20 20 20 76 61 72 20 72 65 62 75 69 6c 64 65 72 20 3d 20 73 5f 52 65 62 75 69 6c 64 65 72 73 ....var.rebuilder.=.s_Rebuilders
1d80 2e 47 65 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 62 75 69 6c 64 65 72 2e 49 6e .Get();.............rebuilder.In
1da0 69 74 69 61 6c 69 7a 65 28 6c 61 79 6f 75 74 52 6f 6f 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 itialize(layoutRoot);...........
1dc0 20 20 72 65 62 75 69 6c 64 65 72 2e 52 65 62 75 69 6c 64 28 43 61 6e 76 61 73 55 70 64 61 74 65 ..rebuilder.Rebuild(CanvasUpdate
1de0 2e 4c 61 79 6f 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 52 65 62 75 69 6c 64 65 .Layout);.............s_Rebuilde
1e00 72 73 2e 52 65 6c 65 61 73 65 28 72 65 62 75 69 6c 64 65 72 29 3b 0a 20 20 20 20 20 20 20 20 7d rs.Release(rebuilder);.........}
1e20 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 62 75 69 6c 64 28 43 61 ..........public.void.Rebuild(Ca
1e40 6e 76 61 73 55 70 64 61 74 65 20 65 78 65 63 75 74 69 6e 67 29 0a 20 20 20 20 20 20 20 20 7b 0a nvasUpdate.executing).........{.
1e60 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 65 78 65 63 75 74 69 6e 67 29 0a 20 ............switch.(executing)..
1e80 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 63 61 73 ...........{.................cas
1ea0 65 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e 4c 61 79 6f 75 74 3a 0a 20 20 20 20 20 20 20 20 20 e.CanvasUpdate.Layout:..........
1ec0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 74 27 73 20 75 6e 66 6f 72 74 75 6e 61 74 65 20 74 ...........//.It's.unfortunate.t
1ee0 68 61 74 20 77 65 27 6c 6c 20 70 65 72 66 6f 72 6d 20 74 68 65 20 73 61 6d 65 20 47 65 74 43 6f hat.we'll.perform.the.same.GetCo
1f00 6d 70 6f 6e 65 6e 74 73 20 71 75 65 72 79 73 20 66 6f 72 20 74 68 65 20 74 72 65 65 20 32 20 74 mponents.querys.for.the.tree.2.t
1f20 69 6d 65 73 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 62 75 74 imes,.....................//.but
1f40 20 65 61 63 68 20 74 72 65 65 20 68 61 76 65 20 74 6f 20 62 65 20 66 75 6c 6c 79 20 69 74 65 72 .each.tree.have.to.be.fully.iter
1f60 61 74 65 64 20 62 65 66 6f 72 65 20 67 6f 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 78 74 20 61 63 ated.before.going.to.the.next.ac
1f80 74 69 6f 6e 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 6f 20 tion,.....................//.so.
1fa0 72 65 75 73 69 6e 67 20 74 68 65 20 72 65 73 75 6c 74 73 20 77 6f 75 6c 64 20 65 6e 74 61 69 6c reusing.the.results.would.entail
1fc0 20 73 74 6f 72 69 6e 67 20 72 65 73 75 6c 74 73 20 69 6e 20 61 20 44 69 63 74 69 6f 6e 61 72 79 .storing.results.in.a.Dictionary
1fe0 20 6f 72 20 73 69 6d 69 6c 61 72 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .or.similar,....................
2000 20 2f 2f 20 77 68 69 63 68 20 69 73 20 70 72 6f 62 61 62 6c 79 20 61 20 62 69 67 67 65 72 20 6f .//.which.is.probably.a.bigger.o
2020 76 65 72 68 65 61 64 20 74 68 61 6e 20 70 65 72 66 6f 72 6d 69 6e 67 20 47 65 74 43 6f 6d 70 6f verhead.than.performing.GetCompo
2040 6e 65 6e 74 73 20 6d 75 6c 74 69 70 6c 65 20 74 69 6d 65 73 2e 0a 20 20 20 20 20 20 20 20 20 20 nents.multiple.times............
2060 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 61 6c 63 75 6c 61 74 69 ..........PerformLayoutCalculati
2080 6f 6e 28 6d 5f 54 6f 52 65 62 75 69 6c 64 2c 20 65 20 3d 3e 20 28 65 20 61 73 20 49 4c 61 79 6f on(m_ToRebuild,.e.=>.(e.as.ILayo
20a0 75 74 45 6c 65 6d 65 6e 74 29 2e 43 61 6c 63 75 6c 61 74 65 4c 61 79 6f 75 74 49 6e 70 75 74 48 utElement).CalculateLayoutInputH
20c0 6f 72 69 7a 6f 6e 74 61 6c 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 orizontal());...................
20e0 20 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 28 6d 5f 54 6f 52 65 62 75 69 ..PerformLayoutControl(m_ToRebui
2100 6c 64 2c 20 65 20 3d 3e 20 28 65 20 61 73 20 49 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 ld,.e.=>.(e.as.ILayoutController
2120 29 2e 53 65 74 4c 61 79 6f 75 74 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 29 3b 0a 20 20 20 20 20 20 ).SetLayoutHorizontal());.......
2140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 61 6c 63 75 ..............PerformLayoutCalcu
2160 6c 61 74 69 6f 6e 28 6d 5f 54 6f 52 65 62 75 69 6c 64 2c 20 65 20 3d 3e 20 28 65 20 61 73 20 49 lation(m_ToRebuild,.e.=>.(e.as.I
2180 4c 61 79 6f 75 74 45 6c 65 6d 65 6e 74 29 2e 43 61 6c 63 75 6c 61 74 65 4c 61 79 6f 75 74 49 6e LayoutElement).CalculateLayoutIn
21a0 70 75 74 56 65 72 74 69 63 61 6c 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 putVertical());.................
21c0 20 20 20 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 28 6d 5f 54 6f 52 65 62 ....PerformLayoutControl(m_ToReb
21e0 75 69 6c 64 2c 20 65 20 3d 3e 20 28 65 20 61 73 20 49 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c uild,.e.=>.(e.as.ILayoutControll
2200 65 72 29 2e 53 65 74 4c 61 79 6f 75 74 56 65 72 74 69 63 61 6c 28 29 29 3b 0a 20 20 20 20 20 20 er).SetLayoutVertical());.......
2220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ..............break;............
2240 20 7d 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 .}.........}..........private.vo
2260 69 64 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 28 52 65 63 74 54 72 61 6e id.PerformLayoutControl(RectTran
2280 73 66 6f 72 6d 20 72 65 63 74 2c 20 55 6e 69 74 79 41 63 74 69 6f 6e 3c 43 6f 6d 70 6f 6e 65 6e sform.rect,.UnityAction<Componen
22a0 74 3e 20 61 63 74 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 t>.action).........{............
22c0 20 69 66 20 28 72 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .if.(rect.==.null)..............
22e0 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 70 ...return;..............var.comp
2300 6f 6e 65 6e 74 73 20 3d 20 4c 69 73 74 50 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 47 65 74 onents.=.ListPool<Component>.Get
2320 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e ();.............rect.GetComponen
2340 74 73 28 74 79 70 65 6f 66 28 49 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 29 2c 20 63 6f ts(typeof(ILayoutController),.co
2360 6d 70 6f 6e 65 6e 74 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 74 72 69 70 44 69 73 61 mponents);.............StripDisa
2380 62 6c 65 64 42 65 68 61 76 69 6f 75 72 73 46 72 6f 6d 4c 69 73 74 28 63 6f 6d 70 6f 6e 65 6e 74 bledBehavioursFromList(component
23a0 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 74 68 65 72 65 20 61 72 65 s);..............//.If.there.are
23c0 20 6e 6f 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 6f 6e 20 74 68 69 73 20 72 65 63 74 20 77 65 20 .no.controllers.on.this.rect.we.
23e0 63 61 6e 20 73 6b 69 70 20 74 68 69 73 20 65 6e 74 69 72 65 20 73 75 62 2d 74 72 65 65 0a 20 20 can.skip.this.entire.sub-tree...
2400 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 64 6f 6e 27 74 20 6e 65 65 64 20 74 6f 20 63 6f ..........//.We.don't.need.to.co
2420 6e 73 69 64 65 72 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 6f 6e 20 63 68 69 6c 64 72 65 6e 20 64 nsider.controllers.on.children.d
2440 65 65 70 65 72 20 69 6e 20 74 68 65 20 73 75 62 2d 74 72 65 65 20 65 69 74 68 65 72 2c 0a 20 20 eeper.in.the.sub-tree.either,...
2460 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 69 6e 63 65 20 74 68 65 79 20 77 69 6c 6c 20 62 65 20 ..........//.since.they.will.be.
2480 74 68 65 69 72 20 6f 77 6e 20 72 6f 6f 74 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 their.own.roots..............if.
24a0 28 63 6f 6d 70 6f 6e 65 6e 74 73 2e 43 6f 75 6e 74 20 3e 20 30 29 0a 20 20 20 20 20 20 20 20 20 (components.Count.>.0)..........
24c0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 61 79 6f 75 74 20 63 ...{.................//.Layout.c
24e0 6f 6e 74 72 6f 6c 20 6e 65 65 64 73 20 74 6f 20 65 78 65 63 75 74 65 64 20 74 6f 70 20 64 6f 77 ontrol.needs.to.executed.top.dow
2500 6e 20 77 69 74 68 20 70 61 72 65 6e 74 73 20 62 65 69 6e 67 20 64 6f 6e 65 20 62 65 66 6f 72 65 n.with.parents.being.done.before
2520 20 74 68 65 69 72 20 63 68 69 6c 64 72 65 6e 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .their.children,................
2540 20 2f 2f 20 62 65 63 61 75 73 65 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 72 65 6c 79 20 6f 6e .//.because.the.children.rely.on
2560 20 74 68 65 20 73 69 7a 65 73 20 6f 66 20 74 68 65 20 70 61 72 65 6e 74 73 2e 0a 0a 20 20 20 20 .the.sizes.of.the.parents.......
2580 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 69 72 73 74 20 63 61 6c 6c 20 6c 61 79 6f 75 74 ............//.First.call.layout
25a0 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 74 68 61 74 20 6d 61 79 20 63 68 61 6e 67 65 20 74 68 65 .controllers.that.may.change.the
25c0 69 72 20 6f 77 6e 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 0a 20 20 20 20 20 20 20 20 20 20 20 ir.own.RectTransform............
25e0 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 63 6f 6d 70 6f 6e 65 .....for.(int.i.=.0;.i.<.compone
2600 6e 74 73 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 nts.Count;.i++).................
2620 20 20 20 20 69 66 20 28 63 6f 6d 70 6f 6e 65 6e 74 73 5b 69 5d 20 69 73 20 49 4c 61 79 6f 75 74 ....if.(components[i].is.ILayout
2640 53 65 6c 66 43 6f 6e 74 72 6f 6c 6c 65 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 SelfController).................
2660 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 28 63 6f 6d 70 6f 6e 65 6e 74 73 5b 69 5d 29 3b 0a 0a ........action(components[i]);..
2680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 6e 20 63 61 6c 6c 20 74 68 65 ................//.Then.call.the
26a0 20 72 65 6d 61 69 6e 69 6e 67 2c 20 73 75 63 68 20 61 73 20 6c 61 79 6f 75 74 20 67 72 6f 75 70 .remaining,.such.as.layout.group
26c0 73 20 74 68 61 74 20 63 68 61 6e 67 65 20 74 68 65 69 72 20 63 68 69 6c 64 72 65 6e 2c 20 74 61 s.that.change.their.children,.ta
26e0 6b 69 6e 67 20 74 68 65 69 72 20 6f 77 6e 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 73 69 7a king.their.own.RectTransform.siz
2700 65 20 69 6e 74 6f 20 61 63 63 6f 75 6e 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.into.account..................
2720 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 63 6f 6d 70 6f 6e 65 6e 74 73 2e 43 for.(int.i.=.0;.i.<.components.C
2740 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 20 20 20 20 69 ount;.i++).....................i
2760 66 20 28 21 28 63 6f 6d 70 6f 6e 65 6e 74 73 5b 69 5d 20 69 73 20 49 4c 61 79 6f 75 74 53 65 6c f.(!(components[i].is.ILayoutSel
2780 66 43 6f 6e 74 72 6f 6c 6c 65 72 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 fController))...................
27a0 20 20 20 20 20 20 61 63 74 69 6f 6e 28 63 6f 6d 70 6f 6e 65 6e 74 73 5b 69 5d 29 3b 0a 0a 20 20 ......action(components[i]);....
27c0 20 20 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 30 3b 20 69 20 ..............for.(int.i.=.0;.i.
27e0 3c 20 72 65 63 74 2e 63 68 69 6c 64 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 <.rect.childCount;.i++).........
2800 20 20 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c ............PerformLayoutControl
2820 28 72 65 63 74 2e 47 65 74 43 68 69 6c 64 28 69 29 20 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f (rect.GetChild(i).as.RectTransfo
2840 72 6d 2c 20 61 63 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 rm,.action);.............}......
2860 20 20 20 20 20 20 20 20 4c 69 73 74 50 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 52 65 6c 65 ........ListPool<Component>.Rele
2880 61 73 65 28 63 6f 6d 70 6f 6e 65 6e 74 73 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ase(components);.........}......
28a0 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 50 65 72 66 6f 72 6d 4c 61 79 6f 75 74 43 61 ....private.void.PerformLayoutCa
28c0 6c 63 75 6c 61 74 69 6f 6e 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 72 65 63 74 2c 20 55 6e lculation(RectTransform.rect,.Un
28e0 69 74 79 41 63 74 69 6f 6e 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 20 61 63 74 69 6f 6e 29 0a 20 20 20 ityAction<Component>.action)....
2900 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 63 74 20 3d 3d 20 6e .....{.............if.(rect.==.n
2920 75 6c 6c 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 ull).................return;....
2940 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 3d 20 4c 69 73 74 50 ..........var.components.=.ListP
2960 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 47 65 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 ool<Component>.Get();...........
2980 20 20 72 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 73 28 74 79 70 65 6f 66 28 49 4c 61 79 ..rect.GetComponents(typeof(ILay
29a0 6f 75 74 45 6c 65 6d 65 6e 74 29 2c 20 63 6f 6d 70 6f 6e 65 6e 74 73 29 3b 0a 20 20 20 20 20 20 outElement),.components);.......
29c0 20 20 20 20 20 20 53 74 72 69 70 44 69 73 61 62 6c 65 64 42 65 68 61 76 69 6f 75 72 73 46 72 6f ......StripDisabledBehavioursFro
29e0 6d 4c 69 73 74 28 63 6f 6d 70 6f 6e 65 6e 74 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 mList(components);..............
2a00 2f 2f 20 49 66 20 74 68 65 72 65 20 61 72 65 20 6e 6f 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 6f //.If.there.are.no.controllers.o
2a20 6e 20 74 68 69 73 20 72 65 63 74 20 77 65 20 63 61 6e 20 73 6b 69 70 20 74 68 69 73 20 65 6e 74 n.this.rect.we.can.skip.this.ent
2a40 69 72 65 20 73 75 62 2d 74 72 65 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 64 ire.sub-tree.............//.We.d
2a60 6f 6e 27 74 20 6e 65 65 64 20 74 6f 20 63 6f 6e 73 69 64 65 72 20 63 6f 6e 74 72 6f 6c 6c 65 72 on't.need.to.consider.controller
2a80 73 20 6f 6e 20 63 68 69 6c 64 72 65 6e 20 64 65 65 70 65 72 20 69 6e 20 74 68 65 20 73 75 62 2d s.on.children.deeper.in.the.sub-
2aa0 74 72 65 65 20 65 69 74 68 65 72 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 69 6e 63 tree.either,.............//.sinc
2ac0 65 20 74 68 65 79 20 77 69 6c 6c 20 62 65 20 74 68 65 69 72 20 6f 77 6e 20 72 6f 6f 74 73 2e 0a e.they.will.be.their.own.roots..
2ae0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6d 70 6f 6e 65 6e 74 73 2e 43 6f 75 6e 74 ............if.(components.Count
2b00 20 3e 20 30 20 20 7c 7c 20 72 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 28 74 79 70 65 6f .>.0..||.rect.GetComponent(typeo
2b20 66 28 49 4c 61 79 6f 75 74 47 72 6f 75 70 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a f(ILayoutGroup))).............{.
2b40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 61 79 6f 75 74 20 63 61 6c 63 75 6c ................//.Layout.calcul
2b60 61 74 69 6f 6e 73 20 6e 65 65 64 73 20 74 6f 20 65 78 65 63 75 74 65 64 20 62 6f 74 74 6f 6d 20 ations.needs.to.executed.bottom.
2b80 75 70 20 77 69 74 68 20 63 68 69 6c 64 72 65 6e 20 62 65 69 6e 67 20 64 6f 6e 65 20 62 65 66 6f up.with.children.being.done.befo
2ba0 72 65 20 74 68 65 69 72 20 70 61 72 65 6e 74 73 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 re.their.parents,...............
2bc0 20 20 2f 2f 20 62 65 63 61 75 73 65 20 74 68 65 20 70 61 72 65 6e 74 20 63 61 6c 63 75 6c 61 74 ..//.because.the.parent.calculat
2be0 65 64 20 73 69 7a 65 73 20 72 65 6c 79 20 6f 6e 20 74 68 65 20 73 69 7a 65 73 20 6f 66 20 74 68 ed.sizes.rely.on.the.sizes.of.th
2c00 65 20 63 68 69 6c 64 72 65 6e 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 e.children...................for
2c20 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 72 65 63 74 2e 63 68 69 6c 64 43 6f 75 6e 74 .(int.i.=.0;.i.<.rect.childCount
2c40 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f ;.i++).....................Perfo
2c60 72 6d 4c 61 79 6f 75 74 43 61 6c 63 75 6c 61 74 69 6f 6e 28 72 65 63 74 2e 47 65 74 43 68 69 6c rmLayoutCalculation(rect.GetChil
2c80 64 28 69 29 20 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 2c 20 61 63 74 69 6f 6e 29 3b 0a d(i).as.RectTransform,.action);.
2ca0 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 20 3d 20 30 3b .................for.(int.i.=.0;
2cc0 20 69 20 3c 20 63 6f 6d 70 6f 6e 65 6e 74 73 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 20 20 .i.<.components.Count;.i++).....
2ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 6f 6e 28 63 6f 6d 70 6f 6e 65 6e 74 ................action(component
2d00 73 5b 69 5d 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 s[i]);.............}............
2d20 20 20 4c 69 73 74 50 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 52 65 6c 65 61 73 65 28 63 6f ..ListPool<Component>.Release(co
2d40 6d 70 6f 6e 65 6e 74 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 mponents);.........}..........//
2d60 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 61 72 6b 20 74 68 65 /.<summary>.........///.Mark.the
2d80 20 67 69 76 65 6e 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 61 73 20 6e 65 65 64 69 6e 67 20 .given.RectTransform.as.needing.
2da0 69 74 27 73 20 6c 61 79 6f 75 74 20 74 6f 20 62 65 20 72 65 63 61 6c 63 75 6c 61 74 65 64 20 64 it's.layout.to.be.recalculated.d
2dc0 75 72 69 6e 67 20 74 68 65 20 6e 65 78 74 20 6c 61 79 6f 75 74 20 70 61 73 73 2e 0a 20 20 20 20 uring.the.next.layout.pass......
2de0 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 3c ....///.</summary>.........///.<
2e00 70 61 72 61 6d 20 6e 61 6d 65 3d 22 72 65 63 74 22 3e 52 65 63 74 20 74 6f 20 72 65 62 75 69 6c param.name="rect">Rect.to.rebuil
2e20 64 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 d.</param>.........public.static
2e40 20 76 6f 69 64 20 4d 61 72 6b 4c 61 79 6f 75 74 46 6f 72 52 65 62 75 69 6c 64 28 52 65 63 74 54 .void.MarkLayoutForRebuild(RectT
2e60 72 61 6e 73 66 6f 72 6d 20 72 65 63 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 ransform.rect).........{........
2e80 20 20 20 20 20 69 66 20 28 72 65 63 74 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 72 65 63 74 2e 67 61 .....if.(rect.==.null.||.rect.ga
2ea0 6d 65 4f 62 6a 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 meObject.==.null)...............
2ec0 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6d 70 73 ..return;..............var.comps
2ee0 20 3d 20 4c 69 73 74 50 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 47 65 74 28 29 3b 0a 20 20 .=.ListPool<Component>.Get();...
2f00 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 76 61 6c 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 ..........bool.validLayoutGroup.
2f20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 54 72 61 6e 73 66 6f 72 =.true;.............RectTransfor
2f40 6d 20 6c 61 79 6f 75 74 52 6f 6f 74 20 3d 20 72 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 m.layoutRoot.=.rect;............
2f60 20 76 61 72 20 70 61 72 65 6e 74 20 3d 20 6c 61 79 6f 75 74 52 6f 6f 74 2e 70 61 72 65 6e 74 20 .var.parent.=.layoutRoot.parent.
2f80 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 as.RectTransform;.............wh
2fa0 69 6c 65 20 28 76 61 6c 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 26 26 20 21 28 70 61 72 65 6e ile.(validLayoutGroup.&&.!(paren
2fc0 74 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 70 61 72 65 6e 74 2e 67 61 6d 65 4f 62 6a 65 63 74 20 3d t.==.null.||.parent.gameObject.=
2fe0 3d 20 6e 75 6c 6c 29 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 =.null)).............{..........
3000 20 20 20 20 20 20 20 76 61 6c 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 3d 20 66 61 6c 73 65 3b .......validLayoutGroup.=.false;
3020 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 61 72 65 6e 74 2e 47 65 74 43 6f 6d 70 6f .................parent.GetCompo
3040 6e 65 6e 74 73 28 74 79 70 65 6f 66 28 49 4c 61 79 6f 75 74 47 72 6f 75 70 29 2c 20 63 6f 6d 70 nents(typeof(ILayoutGroup),.comp
3060 73 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 20 s);..................for.(int.i.
3080 3d 20 30 3b 20 69 20 3c 20 63 6f 6d 70 73 2e 43 6f 75 6e 74 3b 20 2b 2b 69 29 0a 20 20 20 20 20 =.0;.i.<.comps.Count;.++i)......
30a0 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 20 20 20 ...........{....................
30c0 20 76 61 72 20 63 75 72 20 3d 20 63 6f 6d 70 73 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .var.cur.=.comps[i];............
30e0 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 20 21 3d 20 6e 75 6c 6c 20 26 26 20 63 75 72 20 .........if.(cur.!=.null.&&.cur.
3100 69 73 20 42 65 68 61 76 69 6f 75 72 20 26 26 20 28 28 42 65 68 61 76 69 6f 75 72 29 63 75 72 29 is.Behaviour.&&.((Behaviour)cur)
3120 2e 69 73 41 63 74 69 76 65 41 6e 64 45 6e 61 62 6c 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 .isActiveAndEnabled)............
3140 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 20 20 20 20 20 .........{......................
3160 20 20 20 76 61 6c 69 64 4c 61 79 6f 75 74 47 72 6f 75 70 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 ...validLayoutGroup.=.true;.....
3180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 79 6f 75 74 52 6f 6f 74 20 3d ....................layoutRoot.=
31a0 20 70 61 72 65 6e 74 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 .parent;........................
31c0 20 62 72 65 61 6b 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 .break;.....................}...
31e0 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 20 20 20 ..............}.................
3200 20 70 61 72 65 6e 74 20 3d 20 70 61 72 65 6e 74 2e 70 61 72 65 6e 74 20 61 73 20 52 65 63 74 54 .parent.=.parent.parent.as.RectT
3220 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 ransform;.............}.........
3240 20 20 20 20 20 2f 2f 20 57 65 20 6b 6e 6f 77 20 74 68 65 20 6c 61 79 6f 75 74 20 72 6f 6f 74 20 .....//.We.know.the.layout.root.
3260 69 73 20 76 61 6c 69 64 20 69 66 20 69 74 27 73 20 6e 6f 74 20 74 68 65 20 73 61 6d 65 20 61 73 is.valid.if.it's.not.the.same.as
3280 20 74 68 65 20 72 65 63 74 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 69 6e 63 65 20 .the.rect,.............//.since.
32a0 77 65 20 63 68 65 63 6b 65 64 20 74 68 61 74 20 61 62 6f 76 65 2e 20 42 75 74 20 69 66 20 74 68 we.checked.that.above..But.if.th
32c0 65 79 27 72 65 20 74 68 65 20 73 61 6d 65 20 77 65 20 73 74 69 6c 6c 20 6e 65 65 64 20 74 6f 20 ey're.the.same.we.still.need.to.
32e0 63 68 65 63 6b 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 61 79 6f 75 74 52 6f 6f check..............if.(layoutRoo
3300 74 20 3d 3d 20 72 65 63 74 20 26 26 20 21 56 61 6c 69 64 43 6f 6e 74 72 6f 6c 6c 65 72 28 6c 61 t.==.rect.&&.!ValidController(la
3320 79 6f 75 74 52 6f 6f 74 2c 20 63 6f 6d 70 73 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a youtRoot,.comps)).............{.
3340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4c 69 73 74 50 6f 6f 6c 3c 43 6f 6d 70 6f 6e 65 ................ListPool<Compone
3360 6e 74 3e 2e 52 65 6c 65 61 73 65 28 63 6f 6d 70 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 nt>.Release(comps);.............
3380 20 20 20 20 72 65 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 ....return;.............}.......
33a0 20 20 20 20 20 20 20 4d 61 72 6b 4c 61 79 6f 75 74 52 6f 6f 74 46 6f 72 52 65 62 75 69 6c 64 28 .......MarkLayoutRootForRebuild(
33c0 6c 61 79 6f 75 74 52 6f 6f 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 69 73 74 50 6f 6f layoutRoot);.............ListPoo
33e0 6c 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 2e 52 65 6c 65 61 73 65 28 63 6f 6d 70 73 29 3b 0a 20 20 20 l<Component>.Release(comps);....
3400 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 .....}..........private.static.b
3420 6f 6f 6c 20 56 61 6c 69 64 43 6f 6e 74 72 6f 6c 6c 65 72 28 52 65 63 74 54 72 61 6e 73 66 6f 72 ool.ValidController(RectTransfor
3440 6d 20 6c 61 79 6f 75 74 52 6f 6f 74 2c 20 4c 69 73 74 3c 43 6f 6d 70 6f 6e 65 6e 74 3e 20 63 6f m.layoutRoot,.List<Component>.co
3460 6d 70 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c mps).........{.............if.(l
3480 61 79 6f 75 74 52 6f 6f 74 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 6c 61 79 6f 75 74 52 6f 6f 74 2e ayoutRoot.==.null.||.layoutRoot.
34a0 67 61 6d 65 4f 62 6a 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 gameObject.==.null).............
34c0 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c ....return.false;..............l
34e0 61 79 6f 75 74 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 73 28 74 79 70 65 6f 66 28 49 ayoutRoot.GetComponents(typeof(I
3500 4c 61 79 6f 75 74 43 6f 6e 74 72 6f 6c 6c 65 72 29 2c 20 63 6f 6d 70 73 29 3b 0a 20 20 20 20 20 LayoutController),.comps);......
3520 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 63 6f 6d 70 73 .......for.(int.i.=.0;.i.<.comps
3540 2e 43 6f 75 6e 74 3b 20 2b 2b 69 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 .Count;.++i).............{......
3560 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 20 3d 20 63 6f 6d 70 73 5b 69 5d 3b 0a 20 ...........var.cur.=.comps[i];..
3580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 20 21 3d 20 6e 75 6c 6c 20 26 ...............if.(cur.!=.null.&
35a0 26 20 63 75 72 20 69 73 20 42 65 68 61 76 69 6f 75 72 20 26 26 20 28 28 42 65 68 61 76 69 6f 75 &.cur.is.Behaviour.&&.((Behaviou
35c0 72 29 63 75 72 29 2e 69 73 41 63 74 69 76 65 41 6e 64 45 6e 61 62 6c 65 64 29 0a 20 20 20 20 20 r)cur).isActiveAndEnabled)......
35e0 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 20 20 20 ...........{....................
3600 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a .return.true;.................}.
3620 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 72 65 74 75 72 ............}..............retur
3640 6e 20 66 61 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 n.false;.........}..........priv
3660 61 74 65 20 73 74 61 74 69 63 20 76 6f 69 64 20 4d 61 72 6b 4c 61 79 6f 75 74 52 6f 6f 74 46 6f ate.static.void.MarkLayoutRootFo
3680 72 52 65 62 75 69 6c 64 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 63 6f 6e 74 72 6f 6c 6c 65 rRebuild(RectTransform.controlle
36a0 72 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e r).........{.............if.(con
36c0 74 72 6f 6c 6c 65 72 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 troller.==.null)................
36e0 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 62 75 69 6c .return;..............var.rebuil
3700 64 65 72 20 3d 20 73 5f 52 65 62 75 69 6c 64 65 72 73 2e 47 65 74 28 29 3b 0a 20 20 20 20 20 20 der.=.s_Rebuilders.Get();.......
3720 20 20 20 20 20 20 72 65 62 75 69 6c 64 65 72 2e 49 6e 69 74 69 61 6c 69 7a 65 28 63 6f 6e 74 72 ......rebuilder.Initialize(contr
3740 6f 6c 6c 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 43 61 6e 76 61 73 55 oller);.............if.(!CanvasU
3760 70 64 61 74 65 52 65 67 69 73 74 72 79 2e 54 72 79 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 pdateRegistry.TryRegisterCanvasE
3780 6c 65 6d 65 6e 74 46 6f 72 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 28 72 65 62 75 69 6c 64 65 72 lementForLayoutRebuild(rebuilder
37a0 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 52 65 62 75 69 6c 64 65 72 73 2e )).................s_Rebuilders.
37c0 52 65 6c 65 61 73 65 28 72 65 62 75 69 6c 64 65 72 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 Release(rebuilder);.........}...
37e0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4c 61 79 6f 75 74 43 6f 6d 70 6c 65 74 .......public.void.LayoutComplet
3800 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 52 65 62 75 e().........{.............s_Rebu
3820 69 6c 64 65 72 73 2e 52 65 6c 65 61 73 65 28 74 68 69 73 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a ilders.Release(this);.........}.
3840 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 47 72 61 70 68 69 63 55 70 64 61 .........public.void.GraphicUpda
3860 74 65 43 6f 6d 70 6c 65 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b 7d 0a 0a 20 20 20 20 20 20 20 teComplete().........{}.........
3880 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 69 6e 74 20 47 65 74 48 61 73 68 43 6f 64 65 .public.override.int.GetHashCode
38a0 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 ().........{.............return.
38c0 6d 5f 43 61 63 68 65 64 48 61 73 68 46 72 6f 6d 54 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 m_CachedHashFromTransform;......
38e0 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 20 20 20 ...}..........///.<summary>.....
3900 20 20 20 20 2f 2f 2f 20 44 6f 65 73 20 74 68 65 20 70 61 73 73 65 64 20 72 65 62 75 69 6c 64 65 ....///.Does.the.passed.rebuilde
3920 72 20 70 6f 69 6e 74 20 74 6f 20 74 68 65 20 73 61 6d 65 20 43 61 6e 76 61 73 45 6c 65 6d 65 6e r.point.to.the.same.CanvasElemen
3940 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 20 t..........///.</summary>.......
3960 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6f 62 6a 22 3e 54 68 65 20 6f 74 68 65 ..///.<param.name="obj">The.othe
3980 72 20 6f 62 6a 65 63 74 20 74 6f 20 63 6f 6d 70 61 72 65 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 r.object.to.compare</param>.....
39a0 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 72 65 20 74 68 65 79 20 65 71 75 61 6c 3c ....///.<returns>Are.they.equal<
39c0 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 /returns>.........public.overrid
39e0 65 20 62 6f 6f 6c 20 45 71 75 61 6c 73 28 6f 62 6a 65 63 74 20 6f 62 6a 29 0a 20 20 20 20 20 20 e.bool.Equals(object.obj).......
3a00 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6f 62 6a 2e 47 65 74 48 61 ..{.............return.obj.GetHa
3a20 73 68 43 6f 64 65 28 29 20 3d 3d 20 47 65 74 48 61 73 68 43 6f 64 65 28 29 3b 0a 20 20 20 20 20 shCode().==.GetHashCode();......
3a40 20 20 20 7d 0a 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 73 74 ...}..........public.override.st
3a60 72 69 6e 67 20 54 6f 53 74 72 69 6e 67 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 ring.ToString().........{.......
3a80 20 20 20 20 20 20 72 65 74 75 72 6e 20 22 28 4c 61 79 6f 75 74 20 52 65 62 75 69 6c 64 65 72 20 ......return."(Layout.Rebuilder.
3aa0 66 6f 72 29 20 22 20 2b 20 6d 5f 54 6f 52 65 62 75 69 6c 64 3b 0a 20 20 20 20 20 20 20 20 7d 0a for).".+.m_ToRebuild;.........}.
3ac0 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 ....}.}.........................
3ae0 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 65 72 00 0e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e LayoutRebuilder.....UnityEngine.
3b00 55 49 00 00 UI..