summaryrefslogtreecommitdiff
path: root/Library/Artifacts/59/59103e67d13fefa8f4a88e2de7a32d78
blob: 0c01b6d95ef94c7ab3e56794c613835abc20d411 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 2b 94 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 34 1b 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4...............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 0c 00 00 00 47 72 61 70 68 69 63 54 65 73 74 73 c5 1a 00 00 75 73 69 6e ............GraphicTests....usin
10a0 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 3b 0a 75 73 g.System.Collections.Generic;.us
10c0 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0a 75 73 69 6e 67 20 4e 55 6e 69 74 2e 46 72 61 6d 65 ing.System.IO;.using.NUnit.Frame
10e0 77 6f 72 6b 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0a 75 73 69 6e 67 20 55 work;.using.UnityEditor;.using.U
1100 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 45 76 nityEngine;.using.UnityEngine.Ev
1120 65 6e 74 53 79 73 74 65 6d 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 entSystems;.using.UnityEngine.Te
1140 73 74 54 6f 6f 6c 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 3b 0a 75 stTools;.using.UnityEngine.UI;.u
1160 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 2e 54 65 73 74 73 3b 0a 0a 6e 61 6d 65 sing.UnityEngine.UI.Tests;..name
1180 73 70 61 63 65 20 47 72 61 70 68 69 63 73 0a 7b 0a 20 20 20 20 63 6c 61 73 73 20 47 72 61 70 68 space.Graphics.{.....class.Graph
11a0 69 63 54 65 73 74 73 20 3a 20 49 50 72 65 62 75 69 6c 64 53 65 74 75 70 0a 20 20 20 20 7b 0a 20 icTests.:.IPrebuildSetup.....{..
11c0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 47 61 6d 65 4f 62 6a 65 63 74 20 6d 5f 50 72 65 66 .......private.GameObject.m_Pref
11e0 61 62 52 6f 6f 74 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 43 6f 6e 63 72 65 74 65 abRoot;.........private.Concrete
1200 47 72 61 70 68 69 63 20 6d 5f 67 72 61 70 68 69 63 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 Graphic.m_graphic;.........priva
1220 74 65 20 43 61 6e 76 61 73 20 6d 5f 63 61 6e 76 61 73 3b 0a 0a 20 20 20 20 20 20 20 20 63 6f 6e te.Canvas.m_canvas;..........con
1240 73 74 20 73 74 72 69 6e 67 20 6b 50 72 65 66 61 62 50 61 74 68 20 3d 20 22 41 73 73 65 74 73 2f st.string.kPrefabPath.=."Assets/
1260 52 65 73 6f 75 72 63 65 73 2f 47 72 61 70 68 69 63 54 65 73 74 73 50 72 65 66 61 62 2e 70 72 65 Resources/GraphicTestsPrefab.pre
1280 66 61 62 22 3b 0a 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 64 69 72 74 79 56 65 72 74 3b fab";..........bool.m_dirtyVert;
12a0 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 64 69 72 74 79 4c 61 79 6f 75 74 3b 0a 20 20 20 .........bool.m_dirtyLayout;....
12c0 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 64 69 72 74 79 4d 61 74 65 72 69 61 6c 3b 0a 0a 20 20 20 20 .....bool.m_dirtyMaterial;......
12e0 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 75 70 28 29 0a 20 20 20 20 20 20 20 20 ....public.void.Setup().........
1300 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 {.#if.UNITY_EDITOR.............v
1320 61 72 20 72 6f 6f 74 47 4f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 72 6f 6f 74 ar.rootGO.=.new.GameObject("root
1340 47 6f 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 47 4f 20 3d Go");.............var.canvasGO.=
1360 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 61 6e 76 61 73 52 6f 6f 74 22 2c 20 74 79 .new.GameObject("CanvasRoot",.ty
1380 70 65 6f 66 28 43 61 6e 76 61 73 29 2c 20 74 79 70 65 6f 66 28 47 72 61 70 68 69 63 52 61 79 63 peof(Canvas),.typeof(GraphicRayc
13a0 61 73 74 65 72 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 47 4f 2e 74 72 aster));.............canvasGO.tr
13c0 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 72 6f 6f 74 47 4f 2e 74 72 61 6e 73 66 6f ansform.SetParent(rootGO.transfo
13e0 72 6d 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 72 61 70 68 69 63 47 4f 20 rm);..............var.graphicGO.
1400 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 47 72 61 70 68 69 63 22 2c 20 74 79 70 65 =.new.GameObject("Graphic",.type
1420 6f 66 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 2c 20 74 79 70 65 6f 66 28 43 6f 6e 63 72 65 of(RectTransform),.typeof(Concre
1440 74 65 47 72 61 70 68 69 63 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 69 63 teGraphic));.............graphic
1460 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 63 61 6e 76 61 73 47 4f 2e GO.transform.SetParent(canvasGO.
1480 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 61 6d transform);..............var.gam
14a0 65 4f 62 6a 65 63 74 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 45 76 65 6e 74 53 eObject.=.new.GameObject("EventS
14c0 79 73 74 65 6d 22 2c 20 74 79 70 65 6f 66 28 45 76 65 6e 74 53 79 73 74 65 6d 29 29 3b 0a 20 20 ystem",.typeof(EventSystem));...
14e0 20 20 20 20 20 20 20 20 20 20 67 61 6d 65 4f 62 6a 65 63 74 2e 74 72 61 6e 73 66 6f 72 6d 2e 53 ..........gameObject.transform.S
1500 65 74 50 61 72 65 6e 74 28 72 6f 6f 74 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 0a 20 20 20 etParent(rootGO.transform);.....
1520 20 20 20 20 20 20 20 20 20 69 66 20 28 21 44 69 72 65 63 74 6f 72 79 2e 45 78 69 73 74 73 28 22 .........if.(!Directory.Exists("
1540 41 73 73 65 74 73 2f 52 65 73 6f 75 72 63 65 73 2f 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 Assets/Resources/"))............
1560 20 20 20 20 20 44 69 72 65 63 74 6f 72 79 2e 43 72 65 61 74 65 44 69 72 65 63 74 6f 72 79 28 22 .....Directory.CreateDirectory("
1580 41 73 73 65 74 73 2f 52 65 73 6f 75 72 63 65 73 2f 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 Assets/Resources/");............
15a0 20 20 50 72 65 66 61 62 55 74 69 6c 69 74 79 2e 53 61 76 65 41 73 50 72 65 66 61 62 41 73 73 65 ..PrefabUtility.SaveAsPrefabAsse
15c0 74 28 72 6f 6f 74 47 4f 2c 20 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 0a 20 20 20 20 20 20 20 t(rootGO,.kPrefabPath);.........
15e0 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 49 6d 6d 65 64 69 61 74 65 .....GameObject.DestroyImmediate
1600 28 72 6f 6f 74 47 4f 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 (rootGO);.#endif.........}......
1620 20 20 20 20 5b 53 65 74 55 70 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 ....[SetUp].........public.void.
1640 54 65 73 74 53 65 74 75 70 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 TestSetup().........{...........
1660 20 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 20 3d 20 4f 62 6a 65 63 74 2e 49 6e 73 74 61 6e 74 69 ..m_PrefabRoot.=.Object.Instanti
1680 61 74 65 28 52 65 73 6f 75 72 63 65 73 2e 4c 6f 61 64 28 22 47 72 61 70 68 69 63 54 65 73 74 73 ate(Resources.Load("GraphicTests
16a0 50 72 65 66 61 62 22 29 29 20 61 73 20 47 61 6d 65 4f 62 6a 65 63 74 3b 0a 0a 20 20 20 20 20 20 Prefab")).as.GameObject;........
16c0 20 20 20 20 20 20 6d 5f 63 61 6e 76 61 73 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 ......m_canvas.=.m_PrefabRoot.Ge
16e0 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 43 61 6e 76 61 73 3e 28 29 3b 0a tComponentInChildren<Canvas>();.
1700 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 20 3d 20 6d 5f 50 72 65 66 61 62 ............m_graphic.=.m_Prefab
1720 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 43 6f 6e 63 Root.GetComponentInChildren<Conc
1740 72 65 74 65 47 72 61 70 68 69 63 3e 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 reteGraphic>();..............m_g
1760 72 61 70 68 69 63 2e 52 65 67 69 73 74 65 72 44 69 72 74 79 56 65 72 74 69 63 65 73 43 61 6c 6c raphic.RegisterDirtyVerticesCall
1780 62 61 63 6b 28 28 29 20 3d 3e 20 6d 5f 64 69 72 74 79 56 65 72 74 20 3d 20 74 72 75 65 29 3b 0a back(().=>.m_dirtyVert.=.true);.
17a0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 52 65 67 69 73 74 65 72 44 69 ............m_graphic.RegisterDi
17c0 72 74 79 4c 61 79 6f 75 74 43 61 6c 6c 62 61 63 6b 28 28 29 20 3d 3e 20 6d 5f 64 69 72 74 79 4c rtyLayoutCallback(().=>.m_dirtyL
17e0 61 79 6f 75 74 20 3d 20 74 72 75 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 ayout.=.true);.............m_gra
1800 70 68 69 63 2e 52 65 67 69 73 74 65 72 44 69 72 74 79 4d 61 74 65 72 69 61 6c 43 61 6c 6c 62 61 phic.RegisterDirtyMaterialCallba
1820 63 6b 28 28 29 20 3d 3e 20 6d 5f 64 69 72 74 79 4d 61 74 65 72 69 61 6c 20 3d 20 74 72 75 65 29 ck(().=>.m_dirtyMaterial.=.true)
1840 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 73 65 74 44 69 72 74 79 46 6c 61 67 73 28 29 ;..............ResetDirtyFlags()
1860 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 61 72 44 6f 77 6e 5d 0a ;.........}..........[TearDown].
1880 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 54 65 61 72 44 6f 77 6e 28 29 0a 20 ........public.void.TearDown()..
18a0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 20 3d .......{.............m_graphic.=
18c0 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 63 61 6e 76 61 73 20 3d 20 6e 75 .null;.............m_canvas.=.nu
18e0 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 2e 44 65 73 74 72 ll;.............GameObject.Destr
1900 6f 79 49 6d 6d 65 64 69 61 74 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 29 3b 0a 20 20 20 20 20 oyImmediate(m_PrefabRoot);......
1920 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 4f 6e 65 54 69 6d 65 54 65 61 72 44 6f 77 6e 5d 0a ...}..........[OneTimeTearDown].
1940 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 65 54 69 6d 65 54 65 61 72 44 ........public.void.OneTimeTearD
1960 6f 77 6e 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 own().........{.#if.UNITY_EDITOR
1980 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 44 65 6c 65 74 .............AssetDatabase.Delet
19a0 65 41 73 73 65 74 28 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 eAsset(kPrefabPath);.#endif.....
19c0 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 52 65 73 65 ....}..........private.void.Rese
19e0 74 44 69 72 74 79 46 6c 61 67 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 tDirtyFlags().........{.........
1a00 20 20 20 20 6d 5f 64 69 72 74 79 56 65 72 74 20 3d 20 6d 5f 64 69 72 74 79 4c 61 79 6f 75 74 20 ....m_dirtyVert.=.m_dirtyLayout.
1a20 3d 20 6d 5f 64 69 72 74 79 4d 61 74 65 72 69 61 6c 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 =.m_dirtyMaterial.=.false;......
1a40 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 ...}..........[Test].........pub
1a60 6c 69 63 20 76 6f 69 64 20 53 65 74 74 69 6e 67 44 69 72 74 79 4f 6e 41 63 74 69 76 65 47 72 61 lic.void.SettingDirtyOnActiveGra
1a80 70 68 69 63 43 61 6c 6c 73 43 61 6c 6c 62 61 63 6b 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 phicCallsCallbacks().........{..
1aa0 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c 65 64 20 3d 20 66 ...........m_graphic.enabled.=.f
1ac0 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 alse;.............m_graphic.enab
1ae0 6c 65 64 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 led.=.true;.............m_graphi
1b00 63 2e 53 65 74 41 6c 6c 44 69 72 74 79 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 c.SetAllDirty();..............As
1b20 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 56 65 72 74 2c 20 22 56 65 72 74 69 63 65 73 sert.True(m_dirtyVert,."Vertices
1b40 20 68 61 76 65 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 20 20 20 20 20 20 .have.not.been.dirtied");.......
1b60 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 4c 61 79 6f 75 74 2c ......Assert.True(m_dirtyLayout,
1b80 20 22 4c 61 79 6f 75 74 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b ."Layout.has.not.been.dirtied");
1ba0 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 .............Assert.True(m_dirty
1bc0 4d 61 74 65 72 69 61 6c 2c 20 22 4d 61 74 65 72 69 61 6c 20 68 61 73 20 6e 6f 74 20 62 65 65 6e Material,."Material.has.not.been
1be0 20 64 69 72 74 69 65 64 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 73 65 74 44 69 .dirtied");..............ResetDi
1c00 72 74 79 46 6c 61 67 73 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 rtyFlags();..............m_graph
1c20 69 63 2e 53 65 74 4c 61 79 6f 75 74 44 69 72 74 79 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ic.SetLayoutDirty();............
1c40 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 4c 61 79 6f 75 74 2c 20 22 4c 61 79 .Assert.True(m_dirtyLayout,."Lay
1c60 6f 75 74 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 0a 20 20 20 out.has.not.been.dirtied");.....
1c80 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 53 65 74 56 65 72 74 69 63 65 73 44 69 .........m_graphic.SetVerticesDi
1ca0 72 74 79 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d rty();.............Assert.True(m
1cc0 5f 64 69 72 74 79 56 65 72 74 2c 20 22 56 65 72 74 69 63 65 73 20 68 61 76 65 20 6e 6f 74 20 62 _dirtyVert,."Vertices.have.not.b
1ce0 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 een.dirtied");..............m_gr
1d00 61 70 68 69 63 2e 53 65 74 4d 61 74 65 72 69 61 6c 44 69 72 74 79 28 29 3b 0a 20 20 20 20 20 20 aphic.SetMaterialDirty();.......
1d20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 4d 61 74 65 72 69 61 ......Assert.True(m_dirtyMateria
1d40 6c 2c 20 22 4d 61 74 65 72 69 61 6c 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 l,."Material.has.not.been.dirtie
1d60 64 22 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 d");.........}..........private.
1d80 62 6f 6f 6c 20 43 6f 6e 74 61 69 6e 73 47 72 61 70 68 69 63 28 49 4c 69 73 74 3c 47 72 61 70 68 bool.ContainsGraphic(IList<Graph
1da0 69 63 3e 20 61 72 72 61 79 2c 20 69 6e 74 20 73 69 7a 65 2c 20 47 72 61 70 68 69 63 20 65 6c 65 ic>.array,.int.size,.Graphic.ele
1dc0 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 66 6f 72 20 ment).........{.............for.
1de0 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 73 69 7a 65 3b 20 2b 2b 69 29 0a 20 20 20 20 20 (int.i.=.0;.i.<.size;.++i)......
1e00 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 72 72 .......{.................if.(arr
1e20 61 79 5b 69 5d 20 3d 3d 20 65 6c 65 6d 65 6e 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ay[i].==.element)...............
1e40 20 20 20 20 20 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 7d ......return.true;.............}
1e60 0a 0a 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 20 20 20 20 ..............return.false;.....
1e80 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 52 65 66 72 ....}..........private.void.Refr
1ea0 65 73 68 47 72 61 70 68 69 63 42 79 52 61 79 63 61 73 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a eshGraphicByRaycast().........{.
1ec0 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 66 6f 72 63 65 20 72 65 66 72 65 73 68 20 62 79 20 ............//.force.refresh.by.
1ee0 72 61 79 63 61 73 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 69 73 74 3c 52 61 79 63 61 73 74 raycast.............List<Raycast
1f00 52 65 73 75 6c 74 3e 20 72 61 79 63 61 73 74 52 65 73 75 6c 74 43 61 63 68 65 20 3d 20 6e 65 77 Result>.raycastResultCache.=.new
1f20 20 4c 69 73 74 3c 52 61 79 63 61 73 74 52 65 73 75 6c 74 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 .List<RaycastResult>();.........
1f40 20 20 20 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 64 61 74 61 20 3d 20 6e 65 77 20 ....PointerEventData.data.=.new.
1f60 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 PointerEventData(EventSystem.cur
1f80 72 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 61 79 63 61 73 74 65 72 rent);.............var.raycaster
1fa0 20 3d 20 6d 5f 63 61 6e 76 61 73 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 47 72 61 70 68 69 63 .=.m_canvas.GetComponent<Graphic
1fc0 52 61 79 63 61 73 74 65 72 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 61 79 63 61 73 Raycaster>();.............raycas
1fe0 74 65 72 2e 52 61 79 63 61 73 74 28 64 61 74 61 2c 20 72 61 79 63 61 73 74 52 65 73 75 6c 74 43 ter.Raycast(data,.raycastResultC
2000 61 63 68 65 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 ache);.........}..........privat
2020 65 20 62 6f 6f 6c 20 43 68 65 63 6b 47 72 61 70 68 69 63 41 64 64 65 64 54 6f 47 72 61 70 68 69 e.bool.CheckGraphicAddedToGraphi
2040 63 52 61 79 63 61 73 74 65 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 cRaycaster().........{..........
2060 20 20 20 2f 2f 20 63 68 65 63 6b 20 74 68 61 74 20 47 72 61 70 68 69 63 20 69 73 20 72 65 6d 6f ...//.check.that.Graphic.is.remo
2080 76 65 64 20 66 72 6f 6d 20 6d 5f 43 61 6e 76 61 73 47 72 61 70 68 69 63 73 0a 20 20 20 20 20 20 ved.from.m_CanvasGraphics.......
20a0 20 20 20 20 20 20 76 61 72 20 72 61 79 63 61 73 74 65 72 20 3d 20 6d 5f 63 61 6e 76 61 73 2e 47 ......var.raycaster.=.m_canvas.G
20c0 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 47 72 61 70 68 69 63 52 61 79 63 61 73 74 65 72 3e 28 29 3b etComponent<GraphicRaycaster>();
20e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 72 61 70 68 69 63 4c 69 73 74 20 3d 20 47 .............var.graphicList.=.G
2100 72 61 70 68 69 63 52 65 67 69 73 74 72 79 2e 47 65 74 47 72 61 70 68 69 63 73 46 6f 72 43 61 6e raphicRegistry.GetGraphicsForCan
2120 76 61 73 28 6d 5f 63 61 6e 76 61 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 vas(m_canvas);.............var.g
2140 72 61 70 68 69 63 4c 69 73 74 53 69 7a 65 20 3d 20 67 72 61 70 68 69 63 4c 69 73 74 2e 43 6f 75 raphicListSize.=.graphicList.Cou
2160 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 43 6f 6e 74 61 69 6e 73 47 nt;.............return.ContainsG
2180 72 61 70 68 69 63 28 67 72 61 70 68 69 63 4c 69 73 74 2c 20 67 72 61 70 68 69 63 4c 69 73 74 53 raphic(graphicList,.graphicListS
21a0 69 7a 65 2c 20 6d 5f 67 72 61 70 68 69 63 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ize,.m_graphic);.........}......
21c0 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 43 68 65 63 6b 47 72 61 70 68 69 63 52 61 79 ....private.void.CheckGraphicRay
21e0 63 61 73 74 44 69 73 61 62 6c 65 56 61 6c 69 64 69 74 79 28 29 0a 20 20 20 20 20 20 20 20 7b 0a castDisableValidity().........{.
2200 20 20 20 20 20 20 20 20 20 20 20 20 52 65 66 72 65 73 68 47 72 61 70 68 69 63 42 79 52 61 79 63 ............RefreshGraphicByRayc
2220 61 73 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 46 61 6c 73 65 28 ast();.............Assert.False(
2240 43 68 65 63 6b 47 72 61 70 68 69 63 41 64 64 65 64 54 6f 47 72 61 70 68 69 63 52 61 79 63 61 73 CheckGraphicAddedToGraphicRaycas
2260 74 65 72 28 29 2c 20 22 47 72 61 70 68 69 63 20 73 68 6f 75 6c 64 20 6e 6f 20 6c 6f 6e 67 65 72 ter(),."Graphic.should.no.longer
2280 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 69 6e 20 6d 5f 43 61 6e 76 61 73 47 72 61 70 68 69 .be.registered.in.m_CanvasGraphi
22a0 63 73 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a cs");.........}..........[Test].
22c0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 4c 65 61 76 ........public.void.OnEnableLeav
22e0 65 73 47 72 61 70 68 69 63 49 6e 45 78 70 65 63 74 65 64 53 74 61 74 65 28 29 0a 20 20 20 20 20 esGraphicInExpectedState()......
2300 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c ...{.............m_graphic.enabl
2320 65 64 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 ed.=.false;.............m_graphi
2340 63 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 20 2f 2f 20 6f 6e 20 65 6e 61 62 6c 65 20 69 c.enabled.=.true;.//.on.enable.i
2360 73 20 63 61 6c 6c 65 64 20 64 69 72 65 63 74 6c 79 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 s.called.directly..............A
2380 73 73 65 72 74 2e 54 72 75 65 28 43 68 65 63 6b 47 72 61 70 68 69 63 41 64 64 65 64 54 6f 47 72 ssert.True(CheckGraphicAddedToGr
23a0 61 70 68 69 63 52 61 79 63 61 73 74 65 72 28 29 2c 20 22 47 72 61 70 68 69 63 20 73 68 6f 75 6c aphicRaycaster(),."Graphic.shoul
23c0 64 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 69 6e 20 6d 5f 43 61 6e 76 61 73 47 72 61 70 68 d.be.registered.in.m_CanvasGraph
23e0 69 63 73 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 ics");..............Assert.AreEq
2400 75 61 6c 28 54 65 78 74 75 72 65 32 44 2e 77 68 69 74 65 54 65 78 74 75 72 65 2c 20 6d 5f 67 72 ual(Texture2D.whiteTexture,.m_gr
2420 61 70 68 69 63 2e 6d 61 69 6e 54 65 78 74 75 72 65 2c 20 22 6d 61 69 6e 54 65 78 74 75 72 65 20 aphic.mainTexture,."mainTexture.
2440 73 68 6f 75 6c 64 20 62 65 20 54 65 78 74 75 72 65 32 44 2e 77 68 69 74 65 54 65 78 74 75 72 65 should.be.Texture2D.whiteTexture
2460 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 4e 6f 74 4e 75 6c 6c 28 ");..............Assert.NotNull(
2480 6d 5f 67 72 61 70 68 69 63 2e 63 61 6e 76 61 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 m_graphic.canvas);..............
24a0 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 56 65 72 74 2c 20 22 56 65 72 74 69 63 Assert.True(m_dirtyVert,."Vertic
24c0 65 73 20 68 61 76 65 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 20 20 20 20 es.have.not.been.dirtied");.....
24e0 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 4c 61 79 6f 75 ........Assert.True(m_dirtyLayou
2500 74 2c 20 22 4c 61 79 6f 75 74 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 t,."Layout.has.not.been.dirtied"
2520 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 );.............Assert.True(m_dir
2540 74 79 4d 61 74 65 72 69 61 6c 2c 20 22 4d 61 74 65 72 69 61 6c 20 68 61 73 20 6e 6f 74 20 62 65 tyMaterial,."Material.has.not.be
2560 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 en.dirtied");.........}.........
2580 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 45 6e .[Test].........public.void.OnEn
25a0 61 62 6c 65 54 77 69 63 65 4c 65 61 76 65 73 47 72 61 70 68 69 63 49 6e 45 78 70 65 63 74 65 64 ableTwiceLeavesGraphicInExpected
25c0 53 74 61 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f State().........{.............m_
25e0 67 72 61 70 68 69 63 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 graphic.enabled.=.true;.........
2600 20 20 20 20 20 2f 2f 20 66 6f 72 63 65 20 6f 6e 45 6e 61 62 6c 65 20 62 79 20 72 65 66 6c 65 63 .....//.force.onEnable.by.reflec
2620 74 69 6f 6e 20 74 6f 20 63 61 6c 6c 20 69 74 20 73 65 63 6f 6e 64 20 74 69 6d 65 0a 20 20 20 20 tion.to.call.it.second.time.....
2640 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 49 6e 76 6f 6b 65 4f 6e 45 6e 61 62 6c 65 ........m_graphic.InvokeOnEnable
2660 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c ();..............m_graphic.enabl
2680 65 64 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 68 65 63 6b 47 72 ed.=.false;..............CheckGr
26a0 61 70 68 69 63 52 61 79 63 61 73 74 44 69 73 61 62 6c 65 56 61 6c 69 64 69 74 79 28 29 3b 0a 20 aphicRaycastDisableValidity();..
26c0 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 .......}..........[Test]........
26e0 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 44 69 73 61 62 6c 65 4c 65 61 76 65 73 47 72 61 70 .public.void.OnDisableLeavesGrap
2700 68 69 63 49 6e 45 78 70 65 63 74 65 64 53 74 61 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 hicInExpectedState().........{..
2720 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c 65 64 20 3d 20 74 ...........m_graphic.enabled.=.t
2740 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c rue;.............m_graphic.enabl
2760 65 64 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 68 65 63 6b 47 72 ed.=.false;..............CheckGr
2780 61 70 68 69 63 52 61 79 63 61 73 74 44 69 73 61 62 6c 65 56 61 6c 69 64 69 74 79 28 29 3b 0a 20 aphicRaycastDisableValidity();..
27a0 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 .......}..........[Test]........
27c0 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 50 6f 70 75 6c 61 74 65 4d 65 73 68 57 6f 72 6b 73 .public.void.OnPopulateMeshWorks
27e0 41 73 45 78 70 65 63 74 65 64 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 AsExpected().........{..........
2800 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 61 6e 63 68 6f ...m_graphic.rectTransform.ancho
2820 72 65 64 50 6f 73 69 74 69 6f 6e 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 31 30 30 2c 20 31 redPosition.=.new.Vector2(100,.1
2840 30 30 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 72 65 63 74 54 00);.............m_graphic.rectT
2860 72 61 6e 73 66 6f 72 6d 2e 73 69 7a 65 44 65 6c 74 61 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 ransform.sizeDelta.=.new.Vector2
2880 28 31 35 30 2c 20 37 34 32 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 (150,.742);.............m_graphi
28a0 63 2e 63 6f 6c 6f 72 20 3d 20 6e 65 77 20 43 6f 6c 6f 72 28 35 30 2c 20 31 30 30 2c 20 31 35 30 c.color.=.new.Color(50,.100,.150
28c0 2c 20 32 30 30 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 72 74 65 78 48 65 6c 70 65 ,.200);..............VertexHelpe
28e0 72 20 76 68 20 3d 20 6e 65 77 20 56 65 72 74 65 78 48 65 6c 70 65 72 28 29 3b 0a 20 20 20 20 20 r.vh.=.new.VertexHelper();......
2900 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 70 75 6c 61 74 .......m_graphic.InvokeOnPopulat
2920 65 4d 65 73 68 28 76 68 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 54 eMesh(vh);..............GraphicT
2940 65 73 74 48 65 6c 70 65 72 2e 54 65 73 74 4f 6e 50 6f 70 75 6c 61 74 65 4d 65 73 68 44 65 66 61 estHelper.TestOnPopulateMeshDefa
2960 75 6c 74 42 65 68 61 76 69 6f 72 28 6d 5f 67 72 61 70 68 69 63 2c 20 76 68 29 3b 0a 20 20 20 20 ultBehavior(m_graphic,.vh);.....
2980 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 ....}..........[Test].........pu
29a0 62 6c 69 63 20 76 6f 69 64 20 4f 6e 44 69 64 41 70 70 6c 79 41 6e 69 6d 61 74 69 6f 6e 50 72 6f blic.void.OnDidApplyAnimationPro
29c0 70 65 72 74 69 65 73 53 65 74 73 41 6c 6c 44 69 72 74 79 28 29 0a 20 20 20 20 20 20 20 20 7b 0a pertiesSetsAllDirty().........{.
29e0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 65 6e 61 62 6c 65 64 20 3d 20 ............m_graphic.enabled.=.
2a00 74 72 75 65 3b 20 2f 2f 20 55 73 75 61 6c 6c 79 20 73 65 74 20 74 68 72 6f 75 67 68 20 53 65 74 true;.//.Usually.set.through.Set
2a20 45 6e 61 62 6c 65 64 2c 20 66 72 6f 6d 20 42 65 68 61 76 69 6f 72 0a 0a 20 20 20 20 20 20 20 20 Enabled,.from.Behavior..........
2a40 20 20 20 20 6d 5f 67 72 61 70 68 69 63 2e 49 6e 76 6f 6b 65 4f 6e 44 69 64 41 70 70 6c 79 41 6e ....m_graphic.InvokeOnDidApplyAn
2a60 69 6d 61 74 69 6f 6e 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 imationProperties();............
2a80 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 56 65 72 74 2c 20 22 56 65 72 74 69 .Assert.True(m_dirtyVert,."Verti
2aa0 63 65 73 20 68 61 76 65 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 20 20 20 ces.have.not.been.dirtied");....
2ac0 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 72 74 79 4c 61 79 6f .........Assert.True(m_dirtyLayo
2ae0 75 74 2c 20 22 4c 61 79 6f 75 74 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 64 69 72 74 69 65 64 ut,."Layout.has.not.been.dirtied
2b00 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 6d 5f 64 69 ");.............Assert.True(m_di
2b20 72 74 79 4d 61 74 65 72 69 61 6c 2c 20 22 4d 61 74 65 72 69 61 6c 20 68 61 73 20 6e 6f 74 20 62 rtyMaterial,."Material.has.not.b
2b40 65 65 6e 20 64 69 72 74 69 65 64 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d een.dirtied");.........}.....}.}
2b60 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 47 72 61 70 ............................Grap
2b80 68 69 63 54 65 73 74 73 08 00 00 00 47 72 61 70 68 69 63 73 hicTests....Graphics