summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e1/e12623ee4468c48608a004a8ebaee603
blob: 45a8ebe3f1abcfc134f358255cb287756db786e4 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 47 cc 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......G.............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 6c 37 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 l7..............................
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 14 00 00 00 43 61 6e 76 61 73 55 70 64 61 74 65 52 65 67 69 73 74 72 79 ............CanvasUpdateRegistry
10a0 e8 36 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 .6..using.System;.using.System.C
10c0 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 ollections.Generic;.using.UnityE
10e0 6e 67 69 6e 65 2e 55 49 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 ngine.UI.Collections;..namespace
1100 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 3c 73 75 6d 6d 61 .UnityEngine.UI.{.....///.<summa
1120 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 56 61 6c 75 65 73 20 6f 66 20 27 75 70 64 61 74 65 27 20 63 ry>.....///.Values.of.'update'.c
1140 61 6c 6c 65 64 20 6f 6e 20 61 20 43 61 6e 76 61 73 20 75 70 64 61 74 65 2e 0a 20 20 20 20 2f 2f alled.on.a.Canvas.update......//
1160 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 20 49 /.</summary>.....///.<remarks>.I
1180 66 20 6d 6f 64 69 66 79 69 6e 67 20 61 6c 73 6f 20 6d 6f 64 69 66 79 20 6d 5f 43 61 6e 76 61 73 f.modifying.also.modify.m_Canvas
11a0 55 70 64 61 74 65 50 72 6f 66 69 6c 65 72 53 74 72 69 6e 67 73 20 74 6f 20 6d 61 74 63 68 2e 3c UpdateProfilerStrings.to.match.<
11c0 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 43 61 6e 76 61 73 /remarks>.....public.enum.Canvas
11e0 55 70 64 61 74 65 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 Update.....{.........///.<summar
1200 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 62 65 66 6f 72 65 20 6c 61 79 y>.........///.Called.before.lay
1220 6f 75 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 out..........///.</summary>.....
1240 20 20 20 20 50 72 65 6c 61 79 6f 75 74 20 3d 20 30 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ....Prelayout.=.0,.........///.<
1260 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 66 6f 72 20 summary>.........///.Called.for.
1280 6c 61 79 6f 75 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 layout..........///.</summary>..
12a0 20 20 20 20 20 20 20 4c 61 79 6f 75 74 20 3d 20 31 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c .......Layout.=.1,.........///.<
12c0 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 61 66 74 65 summary>.........///.Called.afte
12e0 72 20 6c 61 79 6f 75 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 r.layout..........///.</summary>
1300 0a 20 20 20 20 20 20 20 20 50 6f 73 74 4c 61 79 6f 75 74 20 3d 20 32 2c 0a 20 20 20 20 20 20 20 .........PostLayout.=.2,........
1320 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 6c 6c 65 .///.<summary>.........///.Calle
1340 64 20 62 65 66 6f 72 65 20 72 65 6e 64 65 72 69 6e 67 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 d.before.rendering..........///.
1360 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 50 72 65 52 65 6e 64 65 72 20 3d 20 33 </summary>.........PreRender.=.3
1380 2c 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 ,.........///.<summary>.........
13a0 2f 2f 2f 20 43 61 6c 6c 65 64 20 6c 61 74 65 2c 20 62 65 66 6f 72 65 20 72 65 6e 64 65 72 2e 0a ///.Called.late,.before.render..
13c0 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 4c ........///.</summary>.........L
13e0 61 74 65 50 72 65 52 65 6e 64 65 72 20 3d 20 34 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 atePreRender.=.4,.........///.<s
1400 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 61 78 20 65 6e 75 6d 20 76 61 6c ummary>.........///.Max.enum.val
1420 75 65 2e 20 41 6c 77 61 79 73 20 6c 61 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 ue..Always.last..........///.</s
1440 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 4d 61 78 55 70 64 61 74 65 56 61 6c 75 65 20 3d ummary>.........MaxUpdateValue.=
1460 20 35 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 .5.....}......///.<summary>.....
1480 2f 2f 2f 20 54 68 69 73 20 69 73 20 61 6e 20 65 6c 65 6d 65 6e 74 20 74 68 61 74 20 63 61 6e 20 ///.This.is.an.element.that.can.
14a0 6c 69 76 65 20 6f 6e 20 61 20 43 61 6e 76 61 73 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d live.on.a.Canvas......///.</summ
14c0 61 72 79 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 65 72 66 61 63 65 20 49 43 61 6e 76 61 ary>.....public.interface.ICanva
14e0 73 45 6c 65 6d 65 6e 74 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d sElement.....{.........///.<summ
1500 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 62 75 69 6c 64 20 74 68 65 20 65 6c 65 ary>.........///.Rebuild.the.ele
1520 6d 65 6e 74 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 73 74 61 67 65 2e 0a 20 20 20 20 20 20 ment.for.the.given.stage........
1540 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 70 61 ..///.</summary>.........///.<pa
1560 72 61 6d 20 6e 61 6d 65 3d 22 65 78 65 63 75 74 69 6e 67 22 3e 54 68 65 20 63 75 72 72 65 6e 74 ram.name="executing">The.current
1580 20 43 61 6e 76 61 73 55 70 64 61 74 65 20 73 74 61 67 65 20 62 65 69 6e 67 20 72 65 62 75 69 6c .CanvasUpdate.stage.being.rebuil
15a0 64 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 52 65 62 75 69 6c 64 28 d.</param>.........void.Rebuild(
15c0 43 61 6e 76 61 73 55 70 64 61 74 65 20 65 78 65 63 75 74 69 6e 67 29 3b 0a 0a 20 20 20 20 20 20 CanvasUpdate.executing);........
15e0 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 47 65 74 20 ..///.<summary>.........///.Get.
1600 74 68 65 20 74 72 61 6e 73 66 6f 72 6d 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 the.transform.associated.with.th
1620 65 20 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f e.ICanvasElement..........///.</
1640 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 54 72 61 6e 73 66 6f 72 6d 20 74 72 61 6e 73 summary>.........Transform.trans
1660 66 6f 72 6d 20 7b 20 67 65 74 3b 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d form.{.get;.}..........///.<summ
1680 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 62 61 63 6b 20 73 65 6e 74 20 77 ary>.........///.Callback.sent.w
16a0 68 65 6e 20 74 68 69 73 20 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 68 61 73 20 63 6f 6d 70 hen.this.ICanvasElement.has.comp
16c0 6c 65 74 65 64 20 6c 61 79 6f 75 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d leted.layout..........///.</summ
16e0 61 72 79 3e 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 4c 61 79 6f 75 74 43 6f 6d 70 6c 65 74 65 ary>.........void.LayoutComplete
1700 28 29 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 20 20 20 ();..........///.<summary>......
1720 20 20 20 2f 2f 2f 20 43 61 6c 6c 62 61 63 6b 20 73 65 6e 74 20 77 68 65 6e 20 74 68 69 73 20 49 ...///.Callback.sent.when.this.I
1740 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 68 61 73 20 63 6f 6d 70 6c 65 74 65 64 20 47 72 61 70 CanvasElement.has.completed.Grap
1760 68 69 63 20 72 65 62 75 69 6c 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 hic.rebuild..........///.</summa
1780 72 79 3e 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 47 72 61 70 68 69 63 55 70 64 61 74 65 43 6f ry>.........void.GraphicUpdateCo
17a0 6d 70 6c 65 74 65 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e mplete();..........///.<summary>
17c0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 64 20 69 66 20 74 68 65 20 6e 61 74 69 76 65 20 .........///.Used.if.the.native.
17e0 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 68 61 73 20 62 65 65 6e 20 64 65 73 74 72 6f 79 65 representation.has.been.destroye
1800 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 d..........///.</summary>.......
1820 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 52 65 74 75 72 6e 20 74 72 75 65 20 69 66 20 74 68 ..///.<returns>Return.true.if.th
1840 65 20 65 6c 65 6d 65 6e 74 20 69 73 20 63 6f 6e 73 69 64 65 72 65 64 20 64 65 73 74 72 6f 79 65 e.element.is.considered.destroye
1860 64 2e 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 49 73 44 65 73 74 d.</returns>.........bool.IsDest
1880 72 6f 79 65 64 28 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 royed();.....}......///.<summary
18a0 3e 0a 20 20 20 20 2f 2f 2f 20 41 20 70 6c 61 63 65 20 77 68 65 72 65 20 43 61 6e 76 61 73 45 6c >.....///.A.place.where.CanvasEl
18c0 65 6d 65 6e 74 73 20 63 61 6e 20 72 65 67 69 73 74 65 72 20 74 68 65 6d 73 65 6c 76 65 73 20 66 ements.can.register.themselves.f
18e0 6f 72 20 72 65 62 75 69 6c 64 69 6e 67 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 or.rebuilding......///.</summary
1900 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 43 61 6e 76 61 73 55 70 64 61 74 65 52 >.....public.class.CanvasUpdateR
1920 65 67 69 73 74 72 79 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 egistry.....{.........private.st
1940 61 74 69 63 20 43 61 6e 76 61 73 55 70 64 61 74 65 52 65 67 69 73 74 72 79 20 73 5f 49 6e 73 74 atic.CanvasUpdateRegistry.s_Inst
1960 61 6e 63 65 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 50 65 ance;..........private.bool.m_Pe
1980 72 66 6f 72 6d 69 6e 67 4c 61 79 6f 75 74 55 70 64 61 74 65 3b 0a 20 20 20 20 20 20 20 20 70 72 rformingLayoutUpdate;.........pr
19a0 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 69 63 55 70 ivate.bool.m_PerformingGraphicUp
19c0 64 61 74 65 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 54 68 69 73 20 6c 69 73 74 20 6d 61 74 63 date;..........//.This.list.matc
19e0 68 65 73 20 74 68 65 20 43 61 6e 76 61 73 55 70 64 61 74 65 20 65 6e 75 6d 20 61 62 6f 76 65 2e hes.the.CanvasUpdate.enum.above.
1a00 20 4b 65 65 70 20 69 6e 20 73 79 6e 63 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 .Keep.in.sync.........private.st
1a20 72 69 6e 67 5b 5d 20 6d 5f 43 61 6e 76 61 73 55 70 64 61 74 65 50 72 6f 66 69 6c 65 72 53 74 72 ring[].m_CanvasUpdateProfilerStr
1a40 69 6e 67 73 20 3d 20 6e 65 77 20 73 74 72 69 6e 67 5b 5d 20 7b 20 22 43 61 6e 76 61 73 55 70 64 ings.=.new.string[].{."CanvasUpd
1a60 61 74 65 2e 50 72 65 6c 61 79 6f 75 74 22 2c 20 22 43 61 6e 76 61 73 55 70 64 61 74 65 2e 4c 61 ate.Prelayout",."CanvasUpdate.La
1a80 79 6f 75 74 22 2c 20 22 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 6f 73 74 4c 61 79 6f 75 74 22 yout",."CanvasUpdate.PostLayout"
1aa0 2c 20 22 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 72 65 52 65 6e 64 65 72 22 2c 20 22 43 61 6e ,."CanvasUpdate.PreRender",."Can
1ac0 76 61 73 55 70 64 61 74 65 2e 4c 61 74 65 50 72 65 52 65 6e 64 65 72 22 20 7d 3b 0a 20 20 20 20 vasUpdate.LatePreRender".};.....
1ae0 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6d 5f 43 75 6c 6c 69 ....private.const.string.m_Culli
1b00 6e 67 55 70 64 61 74 65 50 72 6f 66 69 6c 65 72 53 74 72 69 6e 67 20 3d 20 22 43 6c 69 70 70 65 ngUpdateProfilerString.=."Clippe
1b20 72 52 65 67 69 73 74 72 79 2e 43 75 6c 6c 22 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 rRegistry.Cull";..........privat
1b40 65 20 72 65 61 64 6f 6e 6c 79 20 49 6e 64 65 78 65 64 53 65 74 3c 49 43 61 6e 76 61 73 45 6c 65 e.readonly.IndexedSet<ICanvasEle
1b60 6d 65 6e 74 3e 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 75 65 20 3d 20 6e 65 77 ment>.m_LayoutRebuildQueue.=.new
1b80 20 49 6e 64 65 78 65 64 53 65 74 3c 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 3e 28 29 3b 0a 20 .IndexedSet<ICanvasElement>();..
1ba0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 49 6e 64 65 78 65 64 53 .......private.readonly.IndexedS
1bc0 65 74 3c 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 3e 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 et<ICanvasElement>.m_GraphicRebu
1be0 69 6c 64 51 75 65 75 65 20 3d 20 6e 65 77 20 49 6e 64 65 78 65 64 53 65 74 3c 49 43 61 6e 76 61 ildQueue.=.new.IndexedSet<ICanva
1c00 73 45 6c 65 6d 65 6e 74 3e 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 sElement>();..........protected.
1c20 43 61 6e 76 61 73 55 70 64 61 74 65 52 65 67 69 73 74 72 79 28 29 0a 20 20 20 20 20 20 20 20 7b CanvasUpdateRegistry().........{
1c40 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 61 6e 76 61 73 2e 77 69 6c 6c 52 65 6e 64 65 72 43 61 .............Canvas.willRenderCa
1c60 6e 76 61 73 65 73 20 2b 3d 20 50 65 72 66 6f 72 6d 55 70 64 61 74 65 3b 0a 20 20 20 20 20 20 20 nvases.+=.PerformUpdate;........
1c80 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 20 20 .}..........///.<summary>.......
1ca0 20 20 2f 2f 2f 20 47 65 74 20 74 68 65 20 73 69 6e 67 6c 65 74 6f 6e 20 72 65 67 69 73 74 72 79 ..///.Get.the.singleton.registry
1cc0 20 69 6e 73 74 61 6e 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 .instance..........///.</summary
1ce0 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 43 61 6e 76 61 73 55 70 >.........public.static.CanvasUp
1d00 64 61 74 65 52 65 67 69 73 74 72 79 20 69 6e 73 74 61 6e 63 65 0a 20 20 20 20 20 20 20 20 7b 0a dateRegistry.instance.........{.
1d20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 ............get.............{...
1d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 49 6e 73 74 61 6e 63 65 20 3d 3d 20 ..............if.(s_Instance.==.
1d60 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 49 6e 73 74 null).....................s_Inst
1d80 61 6e 63 65 20 3d 20 6e 65 77 20 43 61 6e 76 61 73 55 70 64 61 74 65 52 65 67 69 73 74 72 79 28 ance.=.new.CanvasUpdateRegistry(
1da0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 5f 49 6e 73 74 );.................return.s_Inst
1dc0 61 6e 63 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 ance;.............}.........}...
1de0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 4f 62 6a 65 63 74 56 61 6c 69 64 46 .......private.bool.ObjectValidF
1e00 6f 72 55 70 64 61 74 65 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 29 orUpdate(ICanvasElement.element)
1e20 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 69 64 .........{.............var.valid
1e40 20 3d 20 65 6c 65 6d 65 6e 74 20 21 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 .=.element.!=.null;.............
1e60 20 76 61 72 20 69 73 55 6e 69 74 79 4f 62 6a 65 63 74 20 3d 20 65 6c 65 6d 65 6e 74 20 69 73 20 .var.isUnityObject.=.element.is.
1e80 4f 62 6a 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 73 55 6e 69 74 79 4f Object;.............if.(isUnityO
1ea0 62 6a 65 63 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 69 64 20 3d 20 28 bject).................valid.=.(
1ec0 65 6c 65 6d 65 6e 74 20 61 73 20 4f 62 6a 65 63 74 29 20 21 3d 20 6e 75 6c 6c 3b 20 2f 2f 48 65 element.as.Object).!=.null;.//He
1ee0 72 65 20 77 65 20 6d 61 6b 65 20 75 73 65 20 6f 66 20 74 68 65 20 6f 76 65 72 6c 6f 61 64 65 64 re.we.make.use.of.the.overloaded
1f00 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 20 3d 3d 20 6e 75 6c 6c 2c 20 74 68 61 .UnityEngine.Object.==.null,.tha
1f20 74 20 63 68 65 63 6b 73 20 69 66 20 74 68 65 20 6e 61 74 69 76 65 20 6f 62 6a 65 63 74 20 69 73 t.checks.if.the.native.object.is
1f40 20 61 6c 69 76 65 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 76 61 6c 69 .alive...............return.vali
1f60 64 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f d;.........}..........private.vo
1f80 69 64 20 43 6c 65 61 6e 49 6e 76 61 6c 69 64 49 74 65 6d 73 28 29 0a 20 20 20 20 20 20 20 20 7b id.CleanInvalidItems().........{
1fa0 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6f 20 4d 42 27 73 20 6f 76 65 72 72 69 64 65 .............//.So.MB's.override
1fc0 20 74 68 65 20 3d 3d 20 6f 70 65 72 61 74 6f 72 20 66 6f 72 20 6e 75 6c 6c 20 65 71 75 61 6c 69 .the.==.operator.for.null.equali
1fe0 74 79 2c 20 77 68 69 63 68 20 63 68 65 63 6b 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ty,.which.checks.............//.
2000 69 66 20 74 68 65 79 20 61 72 65 20 64 65 73 74 72 6f 79 65 64 2e 20 54 68 69 73 20 69 73 20 66 if.they.are.destroyed..This.is.f
2020 69 6e 65 20 69 66 20 79 6f 75 20 61 72 65 20 6c 6f 6f 6b 69 6e 67 20 61 74 20 61 20 63 6f 6e 63 ine.if.you.are.looking.at.a.conc
2040 72 65 74 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6d 62 2c 20 62 75 74 20 69 6e 20 74 rete.............//.mb,.but.in.t
2060 68 69 73 20 63 61 73 65 20 77 65 20 61 72 65 20 6c 6f 6f 6b 69 6e 67 20 61 74 20 61 20 6c 69 73 his.case.we.are.looking.at.a.lis
2080 74 20 6f 66 20 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 t.of.ICanvasElement.............
20a0 2f 2f 20 74 68 69 73 20 77 6f 6e 27 74 20 66 6f 72 77 61 72 64 20 74 68 65 20 3d 3d 20 6f 70 65 //.this.won't.forward.the.==.ope
20c0 72 61 74 6f 72 20 74 6f 20 74 68 65 20 4d 42 2c 20 62 75 74 20 6a 75 73 74 20 63 68 65 63 6b 20 rator.to.the.MB,.but.just.check.
20e0 69 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 6e 74 65 72 66 61 63 65 20 if.the.............//.interface.
2100 69 73 20 6e 75 6c 6c 2e 20 49 73 44 65 73 74 72 6f 79 65 64 20 77 69 6c 6c 20 72 65 74 75 72 6e is.null..IsDestroyed.will.return
2120 20 69 66 20 74 68 65 20 62 61 63 6b 65 6e 64 20 69 73 20 64 65 73 74 72 6f 79 65 64 2e 0a 0a 20 .if.the.backend.is.destroyed....
2140 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 6d 5f 4c 61 79 6f 75 74 ...........for.(int.i.=.m_Layout
2160 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 20 2d 20 31 3b 20 69 20 3e 3d 20 30 3b 20 RebuildQueue.Count.-.1;.i.>=.0;.
2180 2d 2d 69 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 20 20 20 --i).............{..............
21a0 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 ...var.item.=.m_LayoutRebuildQue
21c0 75 65 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d 20 ue[i];.................if.(item.
21e0 3d 3d 20 6e 75 6c 6c 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 ==.null).................{......
2200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 ...............m_LayoutRebuildQu
2220 65 75 65 2e 52 65 6d 6f 76 65 41 74 28 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 eue.RemoveAt(i);................
2240 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d .....continue;.................}
2260 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d 2e 49 73 44 65 73 ..................if.(item.IsDes
2280 74 72 6f 79 65 64 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 troyed()).................{.....
22a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 ................m_LayoutRebuildQ
22c0 75 65 75 65 2e 52 65 6d 6f 76 65 41 74 28 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ueue.RemoveAt(i);...............
22e0 20 20 20 20 20 20 69 74 65 6d 2e 4c 61 79 6f 75 74 43 6f 6d 70 6c 65 74 65 28 29 3b 0a 20 20 20 ......item.LayoutComplete();....
2300 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 7d 0a 0a 20 20 .............}.............}....
2320 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 6d 5f 47 72 61 70 68 69 63 ..........for.(int.i.=.m_Graphic
2340 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 20 2d 20 31 3b 20 69 20 3e 3d 20 30 3b 20 RebuildQueue.Count.-.1;.i.>=.0;.
2360 2d 2d 69 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 20 20 20 --i).............{..............
2380 20 20 20 76 61 72 20 69 74 65 6d 20 3d 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 ...var.item.=.m_GraphicRebuildQu
23a0 65 75 65 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d eue[i];.................if.(item
23c0 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 20 7b 0a 20 20 20 20 .==.null).................{.....
23e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 ................m_GraphicRebuild
2400 51 75 65 75 65 2e 52 65 6d 6f 76 65 41 74 28 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 Queue.RemoveAt(i);..............
2420 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......continue;................
2440 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 74 65 6d 2e 49 73 44 .}..................if.(item.IsD
2460 65 73 74 72 6f 79 65 64 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 estroyed()).................{...
2480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 ..................m_GraphicRebui
24a0 6c 64 51 75 65 75 65 2e 52 65 6d 6f 76 65 41 74 28 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ldQueue.RemoveAt(i);............
24c0 20 20 20 20 20 20 20 20 20 69 74 65 6d 2e 47 72 61 70 68 69 63 55 70 64 61 74 65 43 6f 6d 70 6c .........item.GraphicUpdateCompl
24e0 65 74 65 28 29 3b 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 20 ete();.................}........
2500 20 20 20 20 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 .....}.........}..........privat
2520 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 43 6f 6d 70 61 72 69 73 6f 6e 3c 49 43 61 e.static.readonly.Comparison<ICa
2540 6e 76 61 73 45 6c 65 6d 65 6e 74 3e 20 73 5f 53 6f 72 74 4c 61 79 6f 75 74 46 75 6e 63 74 69 6f nvasElement>.s_SortLayoutFunctio
2560 6e 20 3d 20 53 6f 72 74 4c 61 79 6f 75 74 4c 69 73 74 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 n.=.SortLayoutList;.........priv
2580 61 74 65 20 76 6f 69 64 20 50 65 72 66 6f 72 6d 55 70 64 61 74 65 28 29 0a 20 20 20 20 20 20 20 ate.void.PerformUpdate()........
25a0 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 49 53 79 73 74 65 6d 50 72 6f 66 69 6c 65 72 41 .{.............UISystemProfilerA
25c0 70 69 2e 42 65 67 69 6e 53 61 6d 70 6c 65 28 55 49 53 79 73 74 65 6d 50 72 6f 66 69 6c 65 72 41 pi.BeginSample(UISystemProfilerA
25e0 70 69 2e 53 61 6d 70 6c 65 54 79 70 65 2e 4c 61 79 6f 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 pi.SampleType.Layout);..........
2600 20 20 20 43 6c 65 61 6e 49 6e 76 61 6c 69 64 49 74 65 6d 73 28 29 3b 0a 0a 20 20 20 20 20 20 20 ...CleanInvalidItems();.........
2620 20 20 20 20 20 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 4c 61 79 6f 75 74 55 70 64 61 74 65 20 3d 20 .....m_PerformingLayoutUpdate.=.
2640 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 true;..............m_LayoutRebui
2660 6c 64 51 75 65 75 65 2e 53 6f 72 74 28 73 5f 53 6f 72 74 4c 61 79 6f 75 74 46 75 6e 63 74 69 6f ldQueue.Sort(s_SortLayoutFunctio
2680 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 n);.............for.(int.i.=.0;.
26a0 69 20 3c 3d 20 28 69 6e 74 29 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 6f 73 74 4c 61 79 6f 75 i.<=.(int)CanvasUpdate.PostLayou
26c0 74 3b 20 69 2b 2b 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 t;.i++).............{...........
26e0 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 6f 66 ......UnityEngine.Profiling.Prof
2700 69 6c 65 72 2e 42 65 67 69 6e 53 61 6d 70 6c 65 28 6d 5f 43 61 6e 76 61 73 55 70 64 61 74 65 50 iler.BeginSample(m_CanvasUpdateP
2720 72 6f 66 69 6c 65 72 53 74 72 69 6e 67 73 5b 69 5d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 rofilerStrings[i]);.............
2740 20 20 20 20 66 6f 72 20 28 69 6e 74 20 6a 20 3d 20 30 3b 20 6a 20 3c 20 6d 5f 4c 61 79 6f 75 74 ....for.(int.j.=.0;.j.<.m_Layout
2760 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 3b 20 6a 2b 2b 29 0a 20 20 20 20 20 20 20 RebuildQueue.Count;.j++)........
2780 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 76 .........{.....................v
27a0 61 72 20 72 65 62 75 69 6c 64 20 3d 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 4c 61 79 6f 75 74 52 65 ar.rebuild.=.instance.m_LayoutRe
27c0 62 75 69 6c 64 51 75 65 75 65 5b 6a 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 buildQueue[j];..................
27e0 20 20 20 74 72 79 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 ...try.....................{....
2800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 4f 62 6a 65 63 74 56 .....................if.(ObjectV
2820 61 6c 69 64 46 6f 72 55 70 64 61 74 65 28 72 65 62 75 69 6c 64 29 29 0a 20 20 20 20 20 20 20 20 alidForUpdate(rebuild)).........
2840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 62 75 69 6c 64 2e 52 65 62 75 ....................rebuild.Rebu
2860 69 6c 64 28 28 43 61 6e 76 61 73 55 70 64 61 74 65 29 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 ild((CanvasUpdate)i);...........
2880 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 20 20 20 ..........}.....................
28a0 63 61 74 63 68 20 28 45 78 63 65 70 74 69 6f 6e 20 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 catch.(Exception.e).............
28c0 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 20 ........{.......................
28e0 20 20 44 65 62 75 67 2e 4c 6f 67 45 78 63 65 70 74 69 6f 6e 28 65 2c 20 72 65 62 75 69 6c 64 2e ..Debug.LogException(e,.rebuild.
2900 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 transform);.....................
2920 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 20 20 20 20 20 20 }.................}.............
2940 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 6f 66 69 6c ....UnityEngine.Profiling.Profil
2960 65 72 2e 45 6e 64 53 61 6d 70 6c 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 er.EndSample();.............}...
2980 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 3c 20 6d ...........for.(int.i.=.0;.i.<.m
29a0 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 3b 20 2b 2b 69 29 0a _LayoutRebuildQueue.Count;.++i).
29c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 ................m_LayoutRebuildQ
29e0 75 65 75 65 5b 69 5d 2e 4c 61 79 6f 75 74 43 6f 6d 70 6c 65 74 65 28 29 3b 0a 0a 20 20 20 20 20 ueue[i].LayoutComplete();.......
2a00 20 20 20 20 20 20 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 .......instance.m_LayoutRebuildQ
2a20 75 65 75 65 2e 43 6c 65 61 72 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 65 72 66 ueue.Clear();.............m_Perf
2a40 6f 72 6d 69 6e 67 4c 61 79 6f 75 74 55 70 64 61 74 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 ormingLayoutUpdate.=.false;.....
2a60 20 20 20 20 20 20 20 20 55 49 53 79 73 74 65 6d 50 72 6f 66 69 6c 65 72 41 70 69 2e 45 6e 64 53 ........UISystemProfilerApi.EndS
2a80 61 6d 70 6c 65 28 55 49 53 79 73 74 65 6d 50 72 6f 66 69 6c 65 72 41 70 69 2e 53 61 6d 70 6c 65 ample(UISystemProfilerApi.Sample
2aa0 54 79 70 65 2e 4c 61 79 6f 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 49 53 79 73 74 Type.Layout);.............UISyst
2ac0 65 6d 50 72 6f 66 69 6c 65 72 41 70 69 2e 42 65 67 69 6e 53 61 6d 70 6c 65 28 55 49 53 79 73 74 emProfilerApi.BeginSample(UISyst
2ae0 65 6d 50 72 6f 66 69 6c 65 72 41 70 69 2e 53 61 6d 70 6c 65 54 79 70 65 2e 52 65 6e 64 65 72 29 emProfilerApi.SampleType.Render)
2b00 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6e 6f 77 20 6c 61 79 6f 75 74 20 69 73 20 ;..............//.now.layout.is.
2b20 63 6f 6d 70 6c 65 74 65 20 64 6f 20 63 75 6c 6c 69 6e 67 2e 2e 2e 0a 20 20 20 20 20 20 20 20 20 complete.do.culling.............
2b40 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 6f 66 69 6c 65 ...UnityEngine.Profiling.Profile
2b60 72 2e 42 65 67 69 6e 53 61 6d 70 6c 65 28 6d 5f 43 75 6c 6c 69 6e 67 55 70 64 61 74 65 50 72 6f r.BeginSample(m_CullingUpdatePro
2b80 66 69 6c 65 72 53 74 72 69 6e 67 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6c 69 70 70 65 filerString);.............Clippe
2ba0 72 52 65 67 69 73 74 72 79 2e 69 6e 73 74 61 6e 63 65 2e 43 75 6c 6c 28 29 3b 0a 20 20 20 20 20 rRegistry.instance.Cull();......
2bc0 20 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 6f .......UnityEngine.Profiling.Pro
2be0 66 69 6c 65 72 2e 45 6e 64 53 61 6d 70 6c 65 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 filer.EndSample();..............
2c00 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 69 63 55 70 64 61 74 65 20 3d 20 74 72 75 65 m_PerformingGraphicUpdate.=.true
2c20 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 28 69 6e 74 29 ;.............for.(var.i.=.(int)
2c40 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 72 65 52 65 6e 64 65 72 3b 20 69 20 3c 20 28 69 6e 74 CanvasUpdate.PreRender;.i.<.(int
2c60 29 43 61 6e 76 61 73 55 70 64 61 74 65 2e 4d 61 78 55 70 64 61 74 65 56 61 6c 75 65 3b 20 69 2b )CanvasUpdate.MaxUpdateValue;.i+
2c80 2b 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 20 20 20 20 20 +).............{................
2ca0 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 6f 66 69 6c 65 72 2e .UnityEngine.Profiling.Profiler.
2cc0 42 65 67 69 6e 53 61 6d 70 6c 65 28 6d 5f 43 61 6e 76 61 73 55 70 64 61 74 65 50 72 6f 66 69 6c BeginSample(m_CanvasUpdateProfil
2ce0 65 72 53 74 72 69 6e 67 73 5b 69 5d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 erStrings[i]);.................f
2d00 6f 72 20 28 76 61 72 20 6b 20 3d 20 30 3b 20 6b 20 3c 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 47 72 or.(var.k.=.0;.k.<.instance.m_Gr
2d20 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 3b 20 6b 2b 2b 29 0a 20 20 aphicRebuildQueue.Count;.k++)...
2d40 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 ..............{.................
2d60 20 20 20 20 74 72 79 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 ....try.....................{...
2d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 6c 65 6d 65 6e ......................var.elemen
2da0 74 20 3d 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 t.=.instance.m_GraphicRebuildQue
2dc0 75 65 5b 6b 5d 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 69 ue[k];.........................i
2de0 66 20 28 4f 62 6a 65 63 74 56 61 6c 69 64 46 6f 72 55 70 64 61 74 65 28 65 6c 65 6d 65 6e 74 29 f.(ObjectValidForUpdate(element)
2e00 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c ).............................el
2e20 65 6d 65 6e 74 2e 52 65 62 75 69 6c 64 28 28 43 61 6e 76 61 73 55 70 64 61 74 65 29 69 29 3b 0a ement.Rebuild((CanvasUpdate)i);.
2e40 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 20 20 20 20 ....................}...........
2e60 20 20 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28 45 78 63 65 70 74 69 6f 6e 20 65 29 0a 20 20 ..........catch.(Exception.e)...
2e80 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 20 20 20 20 20 20 20 ..................{.............
2ea0 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 78 63 65 70 74 69 6f 6e 28 65 ............Debug.LogException(e
2ec0 2c 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 75 65 ,.instance.m_GraphicRebuildQueue
2ee0 5b 6b 5d 2e 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 [k].transform);.................
2f00 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 20 20 ....}.................}.........
2f20 20 20 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 72 6f 66 69 6c 69 6e 67 2e 50 72 ........UnityEngine.Profiling.Pr
2f40 6f 66 69 6c 65 72 2e 45 6e 64 53 61 6d 70 6c 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ofiler.EndSample();.............
2f60 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 }..............for.(int.i.=.0;.i
2f80 20 3c 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 75 6e 74 3b 20 .<.m_GraphicRebuildQueue.Count;.
2fa0 2b 2b 69 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 72 61 70 68 69 63 52 65 ++i).................m_GraphicRe
2fc0 62 75 69 6c 64 51 75 65 75 65 5b 69 5d 2e 47 72 61 70 68 69 63 55 70 64 61 74 65 43 6f 6d 70 6c buildQueue[i].GraphicUpdateCompl
2fe0 65 74 65 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 47 ete();..............instance.m_G
3000 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6c 65 61 72 28 29 3b 0a 20 20 20 20 raphicRebuildQueue.Clear();.....
3020 20 20 20 20 20 20 20 20 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 69 63 55 70 64 61 74 ........m_PerformingGraphicUpdat
3040 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 49 53 79 73 74 65 6d 50 e.=.false;.............UISystemP
3060 72 6f 66 69 6c 65 72 41 70 69 2e 45 6e 64 53 61 6d 70 6c 65 28 55 49 53 79 73 74 65 6d 50 72 6f rofilerApi.EndSample(UISystemPro
3080 66 69 6c 65 72 41 70 69 2e 53 61 6d 70 6c 65 54 79 70 65 2e 52 65 6e 64 65 72 29 3b 0a 20 20 20 filerApi.SampleType.Render);....
30a0 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 69 .....}..........private.static.i
30c0 6e 74 20 50 61 72 65 6e 74 43 6f 75 6e 74 28 54 72 61 6e 73 66 6f 72 6d 20 63 68 69 6c 64 29 0a nt.ParentCount(Transform.child).
30e0 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 68 69 6c 64 20 ........{.............if.(child.
3100 3d 3d 20 6e 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 20 ==.null).................return.
3120 30 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 65 6e 74 20 3d 20 63 68 69 0;..............var.parent.=.chi
3140 6c 64 2e 70 61 72 65 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 63 6f 75 6e 74 ld.parent;.............int.count
3160 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 28 70 61 72 65 6e 74 20 .=.0;.............while.(parent.
3180 21 3d 20 6e 75 6c 6c 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).............{..........
31a0 20 20 20 20 20 20 20 63 6f 75 6e 74 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......count++;.................
31c0 70 61 72 65 6e 74 20 3d 20 70 61 72 65 6e 74 2e 70 61 72 65 6e 74 3b 0a 20 20 20 20 20 20 20 20 parent.=.parent.parent;.........
31e0 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 6f 75 6e 74 3b 0a ....}.............return.count;.
3200 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 73 74 61 74 69 ........}..........private.stati
3220 63 20 69 6e 74 20 53 6f 72 74 4c 61 79 6f 75 74 4c 69 73 74 28 49 43 61 6e 76 61 73 45 6c 65 6d c.int.SortLayoutList(ICanvasElem
3240 65 6e 74 20 78 2c 20 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 79 29 0a 20 20 20 20 20 20 20 ent.x,.ICanvasElement.y)........
3260 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 66 6f 72 6d 20 74 31 20 3d 20 78 2e .{.............Transform.t1.=.x.
3280 74 72 61 6e 73 66 6f 72 6d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 66 6f 72 6d transform;.............Transform
32a0 20 74 32 20 3d 20 79 2e 74 72 61 6e 73 66 6f 72 6d 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 .t2.=.y.transform;..............
32c0 72 65 74 75 72 6e 20 50 61 72 65 6e 74 43 6f 75 6e 74 28 74 31 29 20 2d 20 50 61 72 65 6e 74 43 return.ParentCount(t1).-.ParentC
32e0 6f 75 6e 74 28 74 32 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 ount(t2);.........}..........///
3300 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 72 79 20 61 6e 64 20 61 .<summary>.........///.Try.and.a
3320 64 64 20 74 68 65 20 67 69 76 65 6e 20 65 6c 65 6d 65 6e 74 20 74 6f 20 74 68 65 20 6c 61 79 6f dd.the.given.element.to.the.layo
3340 75 74 20 72 65 62 75 69 6c 64 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 69 6c ut.rebuild.list..........///.Wil
3360 6c 20 6e 6f 74 20 72 65 74 75 72 6e 20 69 66 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 61 64 64 l.not.return.if.successfully.add
3380 65 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 ed..........///.</summary>......
33a0 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 65 6c 65 6d 65 6e 74 22 3e 54 68 65 ...///.<param.name="element">The
33c0 20 65 6c 65 6d 65 6e 74 20 74 68 61 74 20 69 73 20 6e 65 65 64 69 6e 67 20 72 65 62 75 69 6c 74 .element.that.is.needing.rebuilt
33e0 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 20 .</param>.........public.static.
3400 76 6f 69 64 20 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 4c 61 79 void.RegisterCanvasElementForLay
3420 6f 75 74 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e outRebuild(ICanvasElement.elemen
3440 74 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 6e 73 74 61 6e 63 t).........{.............instanc
3460 65 2e 49 6e 74 65 72 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 e.InternalRegisterCanvasElementF
3480 6f 72 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 orLayoutRebuild(element);.......
34a0 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 20 ..}..........///.<summary>......
34c0 20 20 20 2f 2f 2f 20 54 72 79 20 61 6e 64 20 61 64 64 20 74 68 65 20 67 69 76 65 6e 20 65 6c 65 ...///.Try.and.add.the.given.ele
34e0 6d 65 6e 74 20 74 6f 20 74 68 65 20 6c 61 79 6f 75 74 20 72 65 62 75 69 6c 64 20 6c 69 73 74 2e ment.to.the.layout.rebuild.list.
3500 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 20 .........///.</summary>.........
3520 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 65 6c 65 6d 65 6e 74 22 3e 54 68 65 20 65 6c ///.<param.name="element">The.el
3540 65 6d 65 6e 74 20 74 68 61 74 20 69 73 20 6e 65 65 64 69 6e 67 20 72 65 62 75 69 6c 74 2e 3c 2f ement.that.is.needing.rebuilt.</
3560 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 0a 20 20 20 param>.........///.<returns>....
3580 20 20 20 20 20 2f 2f 2f 20 54 72 75 65 20 69 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 20 77 61 73 .....///.True.if.the.element.was
35a0 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 72 65 62 75 69 .successfully.added.to.the.rebui
35c0 6c 74 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 61 6c 73 65 20 69 66 20 65 69 lt.list..........///.False.if.ei
35e0 74 68 65 72 20 61 6c 72 65 61 64 79 20 69 6e 73 69 64 65 20 61 20 47 72 61 70 68 69 63 20 55 70 ther.already.inside.a.Graphic.Up
3600 64 61 74 65 20 6c 6f 6f 70 20 4f 52 20 68 61 73 20 61 6c 72 65 61 64 79 20 62 65 65 6e 20 61 64 date.loop.OR.has.already.been.ad
3620 64 65 64 20 74 6f 20 74 68 65 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 ded.to.the.list..........///.</r
3640 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f eturns>.........public.static.bo
3660 6f 6c 20 54 72 79 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 4c 61 ol.TryRegisterCanvasElementForLa
3680 79 6f 75 74 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 youtRebuild(ICanvasElement.eleme
36a0 6e 74 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 nt).........{.............return
36c0 20 69 6e 73 74 61 6e 63 65 2e 49 6e 74 65 72 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 .instance.InternalRegisterCanvas
36e0 45 6c 65 6d 65 6e 74 46 6f 72 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 6e 74 29 ElementForLayoutRebuild(element)
3700 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 62 6f 6f ;.........}..........private.boo
3720 6c 20 49 6e 74 65 72 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 l.InternalRegisterCanvasElementF
3740 6f 72 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 orLayoutRebuild(ICanvasElement.e
3760 6c 65 6d 65 6e 74 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 lement).........{.............if
3780 20 28 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 75 65 2e 43 6f 6e 74 61 69 6e 73 28 .(m_LayoutRebuildQueue.Contains(
37a0 65 6c 65 6d 65 6e 74 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e element)).................return
37c0 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 54 4f 44 4f 3a 20 74 68 .false;............../*.TODO:.th
37e0 69 73 20 6c 69 6b 65 6c 79 20 73 68 6f 75 6c 64 20 62 65 20 68 65 72 65 20 62 75 74 20 63 61 75 is.likely.should.be.here.but.cau
3800 73 65 73 20 74 68 65 20 65 72 72 6f 72 20 74 6f 20 73 68 6f 77 20 6a 75 73 74 20 72 65 73 69 7a ses.the.error.to.show.just.resiz
3820 69 6e 67 20 74 68 65 20 67 61 6d 65 20 76 69 65 77 20 28 63 61 73 65 20 37 33 39 33 37 36 29 0a ing.the.game.view.(case.739376).
3840 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 4c 61 79 6f ............if.(m_PerformingLayo
3860 75 74 55 70 64 61 74 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 utUpdate).............{.........
3880 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 72 72 6f 72 28 73 74 72 69 6e 67 2e 46 6f ........Debug.LogError(string.Fo
38a0 72 6d 61 74 28 22 54 72 79 69 6e 67 20 74 6f 20 61 64 64 20 7b 30 7d 20 66 6f 72 20 6c 61 79 6f rmat("Trying.to.add.{0}.for.layo
38c0 75 74 20 72 65 62 75 69 6c 64 20 77 68 69 6c 65 20 77 65 20 61 72 65 20 61 6c 72 65 61 64 79 20 ut.rebuild.while.we.are.already.
38e0 69 6e 73 69 64 65 20 61 20 6c 61 79 6f 75 74 20 72 65 62 75 69 6c 64 20 6c 6f 6f 70 2e 20 54 68 inside.a.layout.rebuild.loop..Th
3900 69 73 20 69 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 2e 22 2c 20 65 6c 65 6d 65 6e 74 29 29 is.is.not.supported.",.element))
3920 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a ;.................return.false;.
3940 20 20 20 20 20 20 20 20 20 20 20 20 7d 2a 2f 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 ............}*/..............ret
3960 75 72 6e 20 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 75 65 2e 41 64 64 55 6e 69 71 urn.m_LayoutRebuildQueue.AddUniq
3980 75 65 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 ue(element);.........}..........
39a0 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 72 79 20 61 6e ///.<summary>.........///.Try.an
39c0 64 20 61 64 64 20 74 68 65 20 67 69 76 65 6e 20 65 6c 65 6d 65 6e 74 20 74 6f 20 74 68 65 20 72 d.add.the.given.element.to.the.r
39e0 65 62 75 69 6c 64 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 69 6c 6c 20 6e 6f ebuild.list..........///.Will.no
3a00 74 20 72 65 74 75 72 6e 20 69 66 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 61 64 64 65 64 2e 0a t.return.if.successfully.added..
3a20 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>........./
3a40 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 65 6c 65 6d 65 6e 74 22 3e 54 68 65 20 65 6c 65 //.<param.name="element">The.ele
3a60 6d 65 6e 74 20 74 68 61 74 20 69 73 20 6e 65 65 64 69 6e 67 20 72 65 62 75 69 6c 74 2e 3c 2f 70 ment.that.is.needing.rebuilt.</p
3a80 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 20 76 6f 69 64 aram>.........public.static.void
3aa0 20 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 72 61 70 68 69 63 .RegisterCanvasElementForGraphic
3ac0 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 29 0a Rebuild(ICanvasElement.element).
3ae0 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 73 74 61 6e 63 65 2e 49 ........{.............instance.I
3b00 6e 74 65 72 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 nternalRegisterCanvasElementForG
3b20 72 61 70 68 69 63 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 raphicRebuild(element);.........
3b40 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 20 20 20 }..........///.<summary>........
3b60 20 2f 2f 2f 20 54 72 79 20 61 6e 64 20 61 64 64 20 74 68 65 20 67 69 76 65 6e 20 65 6c 65 6d 65 .///.Try.and.add.the.given.eleme
3b80 6e 74 20 74 6f 20 74 68 65 20 72 65 62 75 69 6c 64 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 nt.to.the.rebuild.list..........
3ba0 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 70 61 72 61 ///.</summary>.........///.<para
3bc0 6d 20 6e 61 6d 65 3d 22 65 6c 65 6d 65 6e 74 22 3e 54 68 65 20 65 6c 65 6d 65 6e 74 20 74 68 61 m.name="element">The.element.tha
3be0 74 20 69 73 20 6e 65 65 64 69 6e 67 20 72 65 62 75 69 6c 74 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 t.is.needing.rebuilt.</param>...
3c00 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ......///.<returns>.........///.
3c20 54 72 75 65 20 69 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 20 77 61 73 20 73 75 63 63 65 73 73 66 True.if.the.element.was.successf
3c40 75 6c 6c 79 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 72 65 62 75 69 6c 74 20 6c 69 73 74 2e 0a ully.added.to.the.rebuilt.list..
3c60 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 61 6c 73 65 20 69 66 20 65 69 74 68 65 72 20 61 6c 72 65 ........///.False.if.either.alre
3c80 61 64 79 20 69 6e 73 69 64 65 20 61 20 47 72 61 70 68 69 63 20 55 70 64 61 74 65 20 6c 6f 6f 70 ady.inside.a.Graphic.Update.loop
3ca0 20 4f 52 20 68 61 73 20 61 6c 72 65 61 64 79 20 62 65 65 6e 20 61 64 64 65 64 20 74 6f 20 74 68 .OR.has.already.been.added.to.th
3cc0 65 20 6c 69 73 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 e.list..........///.</returns>..
3ce0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 54 72 79 52 65 67 .......public.static.bool.TryReg
3d00 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 72 61 70 68 69 63 52 65 62 75 isterCanvasElementForGraphicRebu
3d20 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 29 0a 20 20 20 20 ild(ICanvasElement.element).....
3d40 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 69 6e 73 74 61 6e 63 ....{.............return.instanc
3d60 65 2e 49 6e 74 65 72 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 e.InternalRegisterCanvasElementF
3d80 6f 72 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 orGraphicRebuild(element);......
3da0 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 49 6e 74 65 72 ...}..........private.bool.Inter
3dc0 6e 61 6c 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 72 61 70 68 nalRegisterCanvasElementForGraph
3de0 69 63 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 icRebuild(ICanvasElement.element
3e00 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 6d 5f 50 65 ).........{.............if.(m_Pe
3e20 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 69 63 55 70 64 61 74 65 29 0a 20 20 20 20 20 20 20 20 20 rformingGraphicUpdate)..........
3e40 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 72 ...{.................Debug.LogEr
3e60 72 6f 72 28 73 74 72 69 6e 67 2e 46 6f 72 6d 61 74 28 22 54 72 79 69 6e 67 20 74 6f 20 61 64 64 ror(string.Format("Trying.to.add
3e80 20 7b 30 7d 20 66 6f 72 20 67 72 61 70 68 69 63 20 72 65 62 75 69 6c 64 20 77 68 69 6c 65 20 77 .{0}.for.graphic.rebuild.while.w
3ea0 65 20 61 72 65 20 61 6c 72 65 61 64 79 20 69 6e 73 69 64 65 20 61 20 67 72 61 70 68 69 63 20 72 e.are.already.inside.a.graphic.r
3ec0 65 62 75 69 6c 64 20 6c 6f 6f 70 2e 20 54 68 69 73 20 69 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 ebuild.loop..This.is.not.support
3ee0 65 64 2e 22 2c 20 65 6c 65 6d 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ed.",.element));................
3f00 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 .return.false;.............}....
3f20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c ..........return.m_GraphicRebuil
3f40 64 51 75 65 75 65 2e 41 64 64 55 6e 69 71 75 65 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 dQueue.AddUnique(element);......
3f60 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>.....
3f80 20 20 20 20 2f 2f 2f 20 52 65 6d 6f 76 65 20 74 68 65 20 67 69 76 65 6e 20 65 6c 65 6d 65 6e 74 ....///.Remove.the.given.element
3fa0 20 66 72 6f 6d 20 62 6f 74 68 20 74 68 65 20 67 72 61 70 68 69 63 20 61 6e 64 20 74 68 65 20 6c .from.both.the.graphic.and.the.l
3fc0 61 79 6f 75 74 20 72 65 62 75 69 6c 64 20 6c 69 73 74 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f ayout.rebuild.lists..........///
3fe0 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 70 61 72 61 6d 20 6e .</summary>.........///.<param.n
4000 61 6d 65 3d 22 65 6c 65 6d 65 6e 74 22 3e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 ame="element"></param>.........p
4020 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 55 6e 52 65 67 69 73 74 65 72 43 61 6e 76 ublic.static.void.UnRegisterCanv
4040 61 73 45 6c 65 6d 65 6e 74 46 6f 72 52 65 62 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 asElementForRebuild(ICanvasEleme
4060 6e 74 20 65 6c 65 6d 65 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 nt.element).........{...........
4080 20 20 69 6e 73 74 61 6e 63 65 2e 49 6e 74 65 72 6e 61 6c 55 6e 52 65 67 69 73 74 65 72 43 61 6e ..instance.InternalUnRegisterCan
40a0 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 vasElementForLayoutRebuild(eleme
40c0 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 73 74 61 6e 63 65 2e 49 6e 74 65 72 6e nt);.............instance.Intern
40e0 61 6c 55 6e 52 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 72 61 70 alUnRegisterCanvasElementForGrap
4100 68 69 63 52 65 62 75 69 6c 64 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a hicRebuild(element);.........}..
4120 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 49 6e 74 65 72 6e 61 6c 55 6e 52 ........private.void.InternalUnR
4140 65 67 69 73 74 65 72 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 4c 61 79 6f 75 74 52 65 62 egisterCanvasElementForLayoutReb
4160 75 69 6c 64 28 49 43 61 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 29 0a 20 20 20 uild(ICanvasElement.element)....
4180 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 50 65 72 66 6f 72 6d .....{.............if.(m_Perform
41a0 69 6e 67 4c 61 79 6f 75 74 55 70 64 61 74 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 ingLayoutUpdate).............{..
41c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 72 72 6f 72 28 73 74 ...............Debug.LogError(st
41e0 72 69 6e 67 2e 46 6f 72 6d 61 74 28 22 54 72 79 69 6e 67 20 74 6f 20 72 65 6d 6f 76 65 20 7b 30 ring.Format("Trying.to.remove.{0
4200 7d 20 66 72 6f 6d 20 72 65 62 75 69 6c 64 20 6c 69 73 74 20 77 68 69 6c 65 20 77 65 20 61 72 65 }.from.rebuild.list.while.we.are
4220 20 61 6c 72 65 61 64 79 20 69 6e 73 69 64 65 20 61 20 72 65 62 75 69 6c 64 20 6c 6f 6f 70 2e 20 .already.inside.a.rebuild.loop..
4240 54 68 69 73 20 69 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 2e 22 2c 20 65 6c 65 6d 65 6e 74 This.is.not.supported.",.element
4260 29 29 3b 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 20 20 20 20 ));.................return;.....
4280 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 2e 4c ........}..............element.L
42a0 61 79 6f 75 74 43 6f 6d 70 6c 65 74 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 73 ayoutComplete();.............ins
42c0 74 61 6e 63 65 2e 6d 5f 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 51 75 65 75 65 2e 52 65 6d 6f 76 tance.m_LayoutRebuildQueue.Remov
42e0 65 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 e(element);.........}..........p
4300 72 69 76 61 74 65 20 76 6f 69 64 20 49 6e 74 65 72 6e 61 6c 55 6e 52 65 67 69 73 74 65 72 43 61 rivate.void.InternalUnRegisterCa
4320 6e 76 61 73 45 6c 65 6d 65 6e 74 46 6f 72 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 28 49 43 61 nvasElementForGraphicRebuild(ICa
4340 6e 76 61 73 45 6c 65 6d 65 6e 74 20 65 6c 65 6d 65 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 nvasElement.element).........{..
4360 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 50 65 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 ...........if.(m_PerformingGraph
4380 69 63 55 70 64 61 74 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 icUpdate).............{.........
43a0 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 72 72 6f 72 28 73 74 72 69 6e 67 2e 46 6f ........Debug.LogError(string.Fo
43c0 72 6d 61 74 28 22 54 72 79 69 6e 67 20 74 6f 20 72 65 6d 6f 76 65 20 7b 30 7d 20 66 72 6f 6d 20 rmat("Trying.to.remove.{0}.from.
43e0 72 65 62 75 69 6c 64 20 6c 69 73 74 20 77 68 69 6c 65 20 77 65 20 61 72 65 20 61 6c 72 65 61 64 rebuild.list.while.we.are.alread
4400 79 20 69 6e 73 69 64 65 20 61 20 72 65 62 75 69 6c 64 20 6c 6f 6f 70 2e 20 54 68 69 73 20 69 73 y.inside.a.rebuild.loop..This.is
4420 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 2e 22 2c 20 65 6c 65 6d 65 6e 74 29 29 3b 0a 20 20 20 .not.supported.",.element));....
4440 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .............return;............
4460 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 2e 47 72 61 70 68 69 63 55 70 .}.............element.GraphicUp
4480 64 61 74 65 43 6f 6d 70 6c 65 74 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 73 74 dateComplete();.............inst
44a0 61 6e 63 65 2e 6d 5f 47 72 61 70 68 69 63 52 65 62 75 69 6c 64 51 75 65 75 65 2e 52 65 6d 6f 76 ance.m_GraphicRebuildQueue.Remov
44c0 65 28 65 6c 65 6d 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f e(element);.........}........../
44e0 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 41 72 65 20 67 72 61 //.<summary>.........///.Are.gra
4500 70 68 69 63 73 20 6c 61 79 6f 75 74 73 20 63 75 72 72 65 6e 74 6c 79 20 62 65 69 6e 67 20 63 61 phics.layouts.currently.being.ca
4520 6c 63 75 6c 61 74 65 64 2e 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 lculated...........///.</summary
4540 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 >.........///.<returns>True.if.t
4560 68 65 20 72 65 62 75 69 6c 64 20 6c 6f 6f 70 20 69 73 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e he.rebuild.loop.is.CanvasUpdate.
4580 50 72 65 6c 61 79 6f 75 74 2c 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e 4c 61 79 6f 75 74 20 6f Prelayout,.CanvasUpdate.Layout.o
45a0 72 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 6f 73 74 6c 61 79 6f 75 74 3c 2f 72 65 74 75 72 r.CanvasUpdate.Postlayout</retur
45c0 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 49 ns>.........public.static.bool.I
45e0 73 52 65 62 75 69 6c 64 69 6e 67 4c 61 79 6f 75 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 sRebuildingLayout().........{...
4600 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 6e 73 74 61 6e 63 65 2e 6d 5f 50 65 72 66 ..........return.instance.m_Perf
4620 6f 72 6d 69 6e 67 4c 61 79 6f 75 74 55 70 64 61 74 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 ormingLayoutUpdate;.........}...
4640 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f .......///.<summary>.........///
4660 20 41 72 65 20 67 72 61 70 68 69 63 73 20 63 75 72 72 65 6e 74 6c 79 20 62 65 69 6e 67 20 72 65 .Are.graphics.currently.being.re
4680 62 75 69 6c 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 build..........///.</summary>...
46a0 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 72 ......///.<returns>True.if.the.r
46c0 65 62 75 69 6c 64 20 6c 6f 6f 70 20 69 73 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e 50 72 65 52 ebuild.loop.is.CanvasUpdate.PreR
46e0 65 6e 64 65 72 20 6f 72 20 43 61 6e 76 61 73 55 70 64 61 74 65 2e 52 65 6e 64 65 72 3c 2f 72 65 ender.or.CanvasUpdate.Render</re
4700 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f turns>.........public.static.boo
4720 6c 20 49 73 52 65 62 75 69 6c 64 69 6e 67 47 72 61 70 68 69 63 73 28 29 0a 20 20 20 20 20 20 20 l.IsRebuildingGraphics()........
4740 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 69 6e 73 74 61 6e 63 65 2e 6d .{.............return.instance.m
4760 5f 50 65 72 66 6f 72 6d 69 6e 67 47 72 61 70 68 69 63 55 70 64 61 74 65 3b 0a 20 20 20 20 20 20 _PerformingGraphicUpdate;.......
4780 20 20 7d 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 00 00 00 00 ..}.....}.}.....................
47a0 14 00 00 00 43 61 6e 76 61 73 55 70 64 61 74 65 52 65 67 69 73 74 72 79 0e 00 00 00 55 6e 69 74 ....CanvasUpdateRegistry....Unit
47c0 79 45 6e 67 69 6e 65 2e 55 49 00 00 yEngine.UI..