summaryrefslogtreecommitdiff
path: root/Library/Artifacts/ed/ed4ce8bd29f5e75e0e3386698de68cb5
blob: 2fff76e9b2a6ffc6516f580cb16d70c13d35442a (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 51 a0 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......Q.............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 40 41 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 @A..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 0f 00 00 00 53 65 6c 65 63 74 61 62 6c 65 54 65 73 74 73 00 be 40 00 00 ............SelectableTests..@..
10a0 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 52 65 66 6c 65 63 74 69 6f 6e 3b 0a 75 73 69 6e 67 20 53 using.System.Reflection;.using.S
10c0 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 0a 75 73 69 6e 67 20 4e 55 6e 69 74 2e 46 ystem.Collections;.using.NUnit.F
10e0 72 61 6d 65 77 6f 72 6b 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 45 76 65 6e ramework;.using.UnityEngine.Even
1100 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 73 74 tSystems;.using.UnityEngine.Test
1120 54 6f 6f 6c 73 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 Tools;..namespace.UnityEngine.UI
1140 2e 54 65 73 74 73 0a 7b 0a 20 20 20 20 5b 54 65 73 74 46 69 78 74 75 72 65 5d 0a 20 20 20 20 63 .Tests.{.....[TestFixture].....c
1160 6c 61 73 73 20 53 65 6c 65 63 74 61 62 6c 65 54 65 73 74 73 0a 20 20 20 20 7b 0a 20 20 20 20 20 lass.SelectableTests.....{......
1180 20 20 20 70 72 69 76 61 74 65 20 63 6c 61 73 73 20 53 65 6c 65 63 74 61 62 6c 65 54 65 73 74 20 ...private.class.SelectableTest.
11a0 3a 20 53 65 6c 65 63 74 61 62 6c 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 :.Selectable.........{..........
11c0 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 20 7b 20 67 ...public.bool.isStateNormal.{.g
11e0 65 74 20 7b 20 72 65 74 75 72 6e 20 63 75 72 72 65 6e 74 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 et.{.return.currentSelectionStat
1200 65 20 3d 3d 20 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 2e 4e 6f 72 6d 61 6c 3b 20 7d 20 7d 0a e.==.SelectionState.Normal;.}.}.
1220 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 53 74 61 74 65 48 ............public.bool.isStateH
1240 69 67 68 6c 69 67 68 74 65 64 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 63 75 72 72 65 6e ighlighted.{.get.{.return.curren
1260 74 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 20 3d 3d 20 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 tSelectionState.==.SelectionStat
1280 65 2e 48 69 67 68 6c 69 67 68 74 65 64 3b 20 7d 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 e.Highlighted;.}.}.............p
12a0 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 53 74 61 74 65 53 65 6c 65 63 74 65 64 20 7b 20 67 65 74 ublic.bool.isStateSelected.{.get
12c0 20 7b 20 72 65 74 75 72 6e 20 63 75 72 72 65 6e 74 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 20 .{.return.currentSelectionState.
12e0 3d 3d 20 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 2e 53 65 6c 65 63 74 65 64 3b 20 7d 20 7d 0a ==.SelectionState.Selected;.}.}.
1300 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 53 74 61 74 65 50 ............public.bool.isStateP
1320 72 65 73 73 65 64 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 63 75 72 72 65 6e 74 53 65 6c ressed.{.get.{.return.currentSel
1340 65 63 74 69 6f 6e 53 74 61 74 65 20 3d 3d 20 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 2e 50 72 ectionState.==.SelectionState.Pr
1360 65 73 73 65 64 3b 20 7d 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f essed;.}.}.............public.bo
1380 6f 6c 20 69 73 53 74 61 74 65 44 69 73 61 62 6c 65 64 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 ol.isStateDisabled.{.get.{.retur
13a0 6e 20 63 75 72 72 65 6e 74 53 65 6c 65 63 74 69 6f 6e 53 74 61 74 65 20 3d 3d 20 53 65 6c 65 63 n.currentSelectionState.==.Selec
13c0 74 69 6f 6e 53 74 61 74 65 2e 44 69 73 61 62 6c 65 64 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 tionState.Disabled;.}.}.........
13e0 20 20 20 20 20 70 75 62 6c 69 63 20 53 65 6c 65 63 74 61 62 6c 65 20 47 65 74 53 65 6c 65 63 74 .....public.Selectable.GetSelect
1400 61 62 6c 65 41 74 49 6e 64 65 78 28 69 6e 74 20 69 6e 64 65 78 29 0a 20 20 20 20 20 20 20 20 20 ableAtIndex(int.index)..........
1420 20 20 20 7b 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 53 65 ...{.................return.s_Se
1440 6c 65 63 74 61 62 6c 65 73 5b 69 6e 64 65 78 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a lectables[index];.............}.
1460 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 47 65 74 53 65 6c 65 63 .............public.int.GetSelec
1480 74 61 62 6c 65 43 75 72 72 65 6e 74 49 6e 64 65 78 28 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 tableCurrentIndex().............
14a0 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 43 75 72 72 65 {.................return.m_Curre
14c0 6e 74 49 6e 64 65 78 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 ntIndex;.............}.........}
14e0 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 6c 65 63 74 61 62 6c 65 54 65 73 74 ..........private.SelectableTest
1500 20 73 65 6c 65 63 74 61 62 6c 65 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 43 61 .selectable;..........private.Ca
1520 6e 76 61 73 47 72 6f 75 70 20 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 70 54 6f nvasGroup.CreateAndParentGroupTo
1540 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 63 68 69 6c 64 29 0a (string.name,.GameObject.child).
1560 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 ........{.............GameObject
1580 20 63 61 6e 76 61 73 52 6f 6f 74 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 61 .canvasRoot.=.new.GameObject("Ca
15a0 6e 76 61 73 22 2c 20 74 79 70 65 6f 66 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 2c 20 74 79 nvas",.typeof(RectTransform),.ty
15c0 70 65 6f 66 28 43 61 6e 76 61 73 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f peof(Canvas));.............GameO
15e0 62 6a 65 63 74 20 67 72 6f 75 70 47 4f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 6e bject.groupGO.=.new.GameObject(n
1600 61 6d 65 2c 20 74 79 70 65 6f 66 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 2c 20 74 79 70 65 ame,.typeof(RectTransform),.type
1620 6f 66 28 43 61 6e 76 61 73 47 72 6f 75 70 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 72 of(CanvasGroup));.............gr
1640 6f 75 70 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 oupGO.transform.SetParent(canvas
1660 52 6f 6f 74 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 63 68 69 Root.transform);.............chi
1680 6c 64 2e 74 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 67 72 6f 75 70 47 4f 2e 74 ld.transform.SetParent(groupGO.t
16a0 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 67 72 ransform);.............return.gr
16c0 6f 75 70 47 4f 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 43 61 6e 76 61 73 47 72 6f 75 70 3e 28 oupGO.GetComponent<CanvasGroup>(
16e0 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 74 55 70 5d 0a 20 20 );.........}..........[SetUp]...
1700 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 54 65 73 74 53 65 74 75 70 28 29 0a 20 20 ......public.void.TestSetup()...
1720 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 53 79 73 74 65 6d 2e ......{.............EventSystem.
1740 63 75 72 72 65 6e 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 current.=.new.GameObject("EventS
1760 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 2e 47 65 74 ystem",.typeof(EventSystem)).Get
1780 43 6f 6d 70 6f 6e 65 6e 74 3c 45 76 65 6e 74 53 79 73 74 65 6d 3e 28 29 3b 0a 20 20 20 20 20 20 Component<EventSystem>();.......
17a0 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 20 63 61 6e 76 61 73 52 6f 6f 74 20 3d 20 6e 65 ......GameObject.canvasRoot.=.ne
17c0 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 43 61 6e 76 61 73 22 2c 20 74 79 70 65 6f 66 28 52 65 w.GameObject("Canvas",.typeof(Re
17e0 63 74 54 72 61 6e 73 66 6f 72 6d 29 2c 20 74 79 70 65 6f 66 28 43 61 6e 76 61 73 29 29 3b 0a 20 ctTransform),.typeof(Canvas));..
1800 20 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 20 53 65 6c 65 63 74 61 62 6c 65 ...........GameObject.Selectable
1820 47 4f 20 3d 20 6e 65 77 20 47 61 6d 65 4f 62 6a 65 63 74 28 22 53 65 6c 65 63 74 61 62 6c 65 22 GO.=.new.GameObject("Selectable"
1840 2c 20 74 79 70 65 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 ,.typeof(RectTransform),.typeof(
1860 43 61 6e 76 61 73 52 65 6e 64 65 72 65 72 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 CanvasRenderer));..............S
1880 65 6c 65 63 74 61 62 6c 65 47 4f 2e 74 72 61 6e 73 66 6f 72 6d 2e 53 65 74 50 61 72 65 6e 74 28 electableGO.transform.SetParent(
18a0 63 61 6e 76 61 73 52 6f 6f 74 2e 74 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 canvasRoot.transform);..........
18c0 20 20 20 73 65 6c 65 63 74 61 62 6c 65 20 3d 20 53 65 6c 65 63 74 61 62 6c 65 47 4f 2e 41 64 64 ...selectable.=.SelectableGO.Add
18e0 43 6f 6d 70 6f 6e 65 6e 74 3c 53 65 6c 65 63 74 61 62 6c 65 54 65 73 74 3e 28 29 3b 0a 20 20 20 Component<SelectableTest>();....
1900 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 74 61 72 67 65 74 47 72 61 70 68 69 .........selectable.targetGraphi
1920 63 20 3d 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 41 64 64 43 6f 6d c.=.selectable.gameObject.AddCom
1940 70 6f 6e 65 6e 74 3c 43 6f 6e 63 72 65 74 65 47 72 61 70 68 69 63 3e 28 29 3b 0a 20 20 20 20 20 ponent<ConcreteGraphic>();......
1960 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 20 20 20 20 20 20 20 ...}..........[TearDown]........
1980 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 20 20 20 20 20 20 20 .public.void.TearDown().........
19a0 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e {.............EventSystem.curren
19c0 74 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 t.=.null;.........}..........[Te
19e0 73 74 5d 20 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 31 31 36 30 30 35 34 0a 20 st].//.regression.test.1160054..
1a00 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 6c 65 63 74 61 62 6c 65 41 72 72 .......public.void.SelectableArr
1a20 61 79 52 65 6d 6f 76 65 73 52 65 66 65 72 65 6e 63 65 55 70 6f 6e 44 69 73 61 62 6c 65 28 29 0a ayRemovesReferenceUponDisable().
1a40 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 6f 72 69 67 69 6e ........{.............int.origin
1a60 61 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 20 3d 20 53 65 6c 65 63 74 61 62 6c 65 2e 61 alSelectableCount.=.Selectable.a
1a80 6c 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 llSelectableCount;..............
1aa0 73 65 6c 65 63 74 61 62 6c 65 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 selectable.enabled.=.false;.....
1ac0 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 6f 72 69 67 69 6e 61 .........Assert.AreEqual(origina
1ae0 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 20 2d 20 31 2c 20 53 65 6c 65 63 74 61 62 6c 65 lSelectableCount.-.1,.Selectable
1b00 2e 61 6c 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 2c 20 22 57 65 20 68 61 76 65 20 6d 6f .allSelectableCount,."We.have.mo
1b20 72 65 20 74 68 65 6e 20 6f 72 69 67 69 6e 61 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 20 re.then.originalSelectableCount.
1b40 2d 20 31 20 73 65 6c 65 63 74 61 62 6c 65 20 6f 62 6a 65 63 74 73 2e 22 29 3b 0a 20 20 20 20 20 -.1.selectable.objects.");......
1b60 20 20 20 20 20 20 20 2f 2f 65 6e 73 75 72 65 20 74 68 65 20 69 74 65 6d 20 61 73 20 74 68 65 20 .......//ensure.the.item.as.the.
1b80 6c 61 73 74 20 69 6e 64 65 78 20 69 73 20 6e 75 6c 6c 65 64 20 6f 75 74 20 61 73 20 69 74 20 72 last.index.is.nulled.out.as.it.r
1ba0 65 70 6c 61 63 65 64 20 74 68 65 20 69 74 65 6d 20 74 68 61 74 20 77 61 73 20 64 69 73 61 62 6c eplaced.the.item.that.was.disabl
1bc0 65 64 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 4e 75 6c 6c 28 73 65 ed..............Assert.IsNull(se
1be0 6c 65 63 74 61 62 6c 65 2e 47 65 74 53 65 6c 65 63 74 61 62 6c 65 41 74 49 6e 64 65 78 28 53 65 lectable.GetSelectableAtIndex(Se
1c00 6c 65 63 74 61 62 6c 65 2e 61 6c 6c 53 65 6c 65 63 74 61 62 6c 65 43 6f 75 6e 74 29 29 3b 0a 0a lectable.allSelectableCount));..
1c20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 65 6e 61 62 6c 65 64 20 3d ............selectable.enabled.=
1c40 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 23 72 65 67 69 6f .true;.........}..........#regio
1c60 6e 20 53 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 n.Selected.object..........[Test
1c80 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 74 69 6e 67 43 75 72 ].........public.void.SettingCur
1ca0 72 65 6e 74 53 65 6c 65 63 74 65 64 53 65 6c 65 63 74 61 62 6c 65 4e 6f 6e 49 6e 74 65 72 61 63 rentSelectedSelectableNonInterac
1cc0 74 61 62 6c 65 53 68 6f 75 6c 64 4e 75 6c 6c 69 66 79 43 75 72 72 65 6e 74 53 65 6c 65 63 74 65 tableShouldNullifyCurrentSelecte
1ce0 64 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 45 76 65 6e 74 53 d().........{.............EventS
1d00 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e 53 65 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a ystem.current.SetSelectedGameObj
1d20 65 63 74 28 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 ect(selectable.gameObject);.....
1d40 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 ........selectable.interactable.
1d60 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 74 20 73 68 6f 75 =.false;..............//.it.shou
1d80 6c 64 20 62 65 20 75 6e 73 65 6c 65 63 74 65 64 20 6e 6f 77 20 74 68 61 74 20 69 74 20 69 73 20 ld.be.unselected.now.that.it.is.
1da0 6e 6f 74 20 69 6e 74 65 72 61 63 74 61 62 6c 65 20 61 6e 79 6d 6f 72 65 0a 20 20 20 20 20 20 20 not.interactable.anymore........
1dc0 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 4e 75 6c 6c 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 .....Assert.IsNull(EventSystem.c
1de0 75 72 72 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 urrent.currentSelectedGameObject
1e00 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 20 20 20 );.........}..........[Test]....
1e20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 72 44 6f 77 .....public.void.PointerEnterDow
1e40 6e 53 68 6f 75 6c 64 4d 61 6b 65 49 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 28 nShouldMakeItSelectedGameObject(
1e60 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 ).........{.............Assert.I
1e80 73 4e 75 6c 6c 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 6e sNull(EventSystem.current.curren
1ea0 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 tSelectedGameObject);...........
1ec0 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e 74 65 ..selectable.InvokeOnPointerEnte
1ee0 72 28 6e 65 77 20 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 r(new.PointerEventData(EventSyst
1f00 65 6d 2e 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 em.current));.............select
1f20 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 able.InvokeOnPointerDown(new.Poi
1f40 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 72 65 6e nterEventData(EventSystem.curren
1f60 74 29 29 3b 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 75 61 6c t));.............Assert.AreEqual
1f80 28 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2c 20 45 76 65 6e 74 53 79 73 (selectable.gameObject,.EventSys
1fa0 74 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f tem.current.currentSelectedGameO
1fc0 62 6a 65 63 74 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 bject);.........}..........[Test
1fe0 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 53 65 6c 65 63 74 53 68 ].........public.void.OnSelectSh
2000 6f 75 6c 64 53 65 74 53 65 6c 65 63 74 65 64 53 74 61 74 65 28 29 0a 20 20 20 20 20 20 20 20 7b ouldSetSelectedState().........{
2020 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 73 65 6c 65 63 74 61 .............Assert.True(selecta
2040 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ble.isStateNormal);.............
2060 73 65 6c 65 63 74 61 62 6c 65 2e 4f 6e 53 65 6c 65 63 74 28 6e 65 77 20 42 61 73 65 45 76 65 6e selectable.OnSelect(new.BaseEven
2080 74 44 61 74 61 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 tData(EventSystem.current));....
20a0 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e .........Assert.True(selectable.
20c0 69 73 53 74 61 74 65 53 65 6c 65 63 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 isStateSelected);.........}.....
20e0 20 20 20 20 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 .....[Test].........public.void.
2100 4f 6e 44 65 73 65 6c 65 63 74 53 68 6f 75 6c 64 55 6e 73 65 74 53 65 6c 65 63 74 65 64 53 74 61 OnDeselectShouldUnsetSelectedSta
2120 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 41 73 73 65 72 te().........{.............Asser
2140 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 t.True(selectable.isStateNormal)
2160 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 4f 6e 53 65 6c 65 63 ;.............selectable.OnSelec
2180 74 28 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e 74 53 79 73 74 65 6d 2e t(new.BaseEventData(EventSystem.
21a0 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 current));.............Assert.Tr
21c0 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 53 65 6c 65 63 74 65 64 29 3b 0a ue(selectable.isStateSelected);.
21e0 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 4f 6e 44 65 73 65 6c 65 63 ............selectable.OnDeselec
2200 74 28 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e 74 53 79 73 74 65 6d 2e t(new.BaseEventData(EventSystem.
2220 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 current));.............Assert.Tr
2240 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 ue(selectable.isStateNormal);...
2260 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0a 0a 20 20 20 ......}..........#endregion.....
2280 20 20 20 20 20 23 72 65 67 69 6f 6e 20 49 6e 74 65 72 61 63 74 61 62 6c 65 0a 0a 20 20 20 20 20 .....#region.Interactable.......
22a0 20 20 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 53 65 ...[Test].........public.void.Se
22c0 74 74 69 6e 67 43 61 6e 76 61 73 47 72 6f 75 70 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 ttingCanvasGroupNotInteractableS
22e0 68 6f 75 6c 64 4d 61 6b 65 53 65 6c 65 63 74 61 62 6c 65 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 houldMakeSelectableNotInteractab
2300 6c 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 2f 2f 20 43 61 le().........{.............//.Ca
2320 6e 76 61 73 20 47 72 6f 75 70 20 6f 6e 20 73 61 6d 65 20 6f 62 6a 65 63 74 0a 20 20 20 20 20 20 nvas.Group.on.same.object.......
2340 20 20 20 20 20 20 76 61 72 20 67 72 6f 75 70 20 3d 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d ......var.group.=.selectable.gam
2360 65 4f 62 6a 65 63 74 2e 41 64 64 43 6f 6d 70 6f 6e 65 6e 74 3c 43 61 6e 76 61 73 47 72 6f 75 70 eObject.AddComponent<CanvasGroup
2380 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 >();.............Assert.IsTrue(s
23a0 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 0a 20 20 electable.IsInteractable());....
23c0 20 20 20 20 20 20 20 20 20 20 67 72 6f 75 70 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 ..........group.interactable.=.f
23e0 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 63 74 75 61 6c 20 63 61 6c 6c alse;.............//.actual.call
2400 20 68 61 70 70 65 6e 73 20 6f 6e 20 74 68 65 20 6e 61 74 69 76 65 20 73 69 64 65 2c 20 63 61 75 .happens.on.the.native.side,.cau
2420 73 65 20 62 79 20 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 0a 20 20 20 20 20 se.by.interactable.=.false......
2440 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 43 61 6e 76 61 73 .......selectable.InvokeOnCanvas
2460 47 72 6f 75 70 43 68 61 6e 67 65 64 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 GroupChanged();..............Ass
2480 65 72 74 2e 49 73 46 61 6c 73 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 65 72 61 63 ert.IsFalse(selectable.IsInterac
24a0 74 61 62 6c 65 28 29 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 table());.........}..........[Te
24c0 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 74 69 6e 67 50 st].........public.void.SettingP
24e0 61 72 65 6e 74 43 61 6e 76 61 73 47 72 6f 75 70 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 arentCanvasGroupNotInteractableS
2500 68 6f 75 6c 64 4d 61 6b 65 53 65 6c 65 63 74 61 62 6c 65 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 houldMakeSelectableNotInteractab
2520 6c 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 76 61 72 20 63 le().........{.............var.c
2540 61 6e 76 61 73 47 72 6f 75 70 20 3d 20 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 anvasGroup.=.CreateAndParentGrou
2560 70 54 6f 28 22 43 61 6e 76 61 73 47 72 6f 75 70 22 2c 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 pTo("CanvasGroup",.selectable.ga
2580 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 meObject);.............Assert.Is
25a0 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 True(selectable.IsInteractable()
25c0 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 47 72 6f 75 70 2e 69 6e 74 65 );..............canvasGroup.inte
25e0 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ractable.=.false;.............//
2600 20 61 63 74 75 61 6c 20 63 61 6c 6c 20 68 61 70 70 65 6e 73 20 6f 6e 20 74 68 65 20 6e 61 74 69 .actual.call.happens.on.the.nati
2620 76 65 20 73 69 64 65 2c 20 63 61 75 73 65 20 62 79 20 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d ve.side,.cause.by.interactable.=
2640 20 66 61 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e .false.............selectable.In
2660 76 6f 6b 65 4f 6e 43 61 6e 76 61 73 47 72 6f 75 70 43 68 61 6e 67 65 64 28 29 3b 0a 0a 20 20 20 vokeOnCanvasGroupChanged();.....
2680 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 46 61 6c 73 65 28 73 65 6c 65 63 74 61 62 .........Assert.IsFalse(selectab
26a0 6c 65 2e 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a le.IsInteractable());.........}.
26c0 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 6c 69 63 20 76 .........[Test].........public.v
26e0 6f 69 64 20 53 65 74 74 69 6e 67 50 61 72 65 6e 74 50 61 72 65 6e 74 43 61 6e 76 61 73 47 72 6f oid.SettingParentParentCanvasGro
2700 75 70 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 4d 61 6b 65 53 65 6c 65 63 upNotInteractableShouldMakeSelec
2720 74 61 62 6c 65 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 0a 20 20 20 20 20 20 20 20 7b tableNotInteractable().........{
2740 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 47 72 6f 75 70 31 20 3d 20 .............var.canvasGroup1.=.
2760 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 47 72 CreateAndParentGroupTo("CanvasGr
2780 6f 75 70 31 22 2c 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 oup1",.selectable.gameObject);..
27a0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 47 72 6f 75 70 32 20 3d 20 43 72 ...........var.canvasGroup2.=.Cr
27c0 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 47 72 6f 75 eateAndParentGroupTo("CanvasGrou
27e0 70 32 22 2c 20 63 61 6e 76 61 73 47 72 6f 75 70 31 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 p2",.canvasGroup1.gameObject);..
2800 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 65 6c 65 63 74 61 ...........Assert.IsTrue(selecta
2820 62 6c 65 2e 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 ble.IsInteractable());..........
2840 20 20 20 20 63 61 6e 76 61 73 47 72 6f 75 70 32 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 ....canvasGroup2.interactable.=.
2860 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 63 74 75 61 6c 20 63 61 6c false;.............//.actual.cal
2880 6c 20 68 61 70 70 65 6e 73 20 6f 6e 20 74 68 65 20 6e 61 74 69 76 65 20 73 69 64 65 2c 20 63 61 l.happens.on.the.native.side,.ca
28a0 75 73 65 20 62 79 20 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 0a 20 20 20 20 use.by.interactable.=.false.....
28c0 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 43 61 6e 76 61 ........selectable.InvokeOnCanva
28e0 73 47 72 6f 75 70 43 68 61 6e 67 65 64 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 sGroupChanged();..............As
2900 73 65 72 74 2e 49 73 46 61 6c 73 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 65 72 61 sert.IsFalse(selectable.IsIntera
2920 63 74 61 62 6c 65 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 ctable());.........}..........[T
2940 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 53 65 74 74 69 6e 67 est].........public.void.Setting
2960 50 61 72 65 6e 74 50 61 72 65 6e 74 43 61 6e 76 61 73 47 72 6f 75 70 49 6e 74 65 72 61 63 74 61 ParentParentCanvasGroupInteracta
2980 62 6c 65 53 68 6f 75 6c 64 4d 61 6b 65 53 65 6c 65 63 74 61 62 6c 65 49 6e 74 65 72 61 63 74 61 bleShouldMakeSelectableInteracta
29a0 62 6c 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 76 61 72 20 ble().........{.............var.
29c0 63 61 6e 76 61 73 47 72 6f 75 70 31 20 3d 20 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 canvasGroup1.=.CreateAndParentGr
29e0 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 47 72 6f 75 70 31 22 2c 20 73 65 6c 65 63 74 61 62 6c 65 oupTo("CanvasGroup1",.selectable
2a00 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 72 65 61 74 65 .gameObject);.............Create
2a20 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 47 72 6f 75 70 32 22 2c AndParentGroupTo("CanvasGroup2",
2a40 20 63 61 6e 76 61 73 47 72 6f 75 70 31 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 .canvasGroup1.gameObject);......
2a60 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e .......Assert.IsTrue(selectable.
2a80 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 IsInteractable());..............
2aa0 2f 2f 20 61 63 74 75 61 6c 20 63 61 6c 6c 20 68 61 70 70 65 6e 73 20 6f 6e 20 74 68 65 20 6e 61 //.actual.call.happens.on.the.na
2ac0 74 69 76 65 20 73 69 64 65 2c 20 63 61 75 73 65 20 62 79 20 69 6e 74 65 72 61 63 74 61 62 6c 65 tive.side,.cause.by.interactable
2ae0 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e .............selectable.InvokeOn
2b00 43 61 6e 76 61 73 47 72 6f 75 70 43 68 61 6e 67 65 64 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 CanvasGroupChanged();...........
2b20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e ...Assert.IsTrue(selectable.IsIn
2b40 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 teractable());.........}........
2b60 20 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 53 65 74 ..[Test].........public.void.Set
2b80 74 69 6e 67 50 61 72 65 6e 74 50 61 72 65 6e 74 43 61 6e 76 61 73 47 72 6f 75 70 4e 6f 74 49 6e tingParentParentCanvasGroupNotIn
2ba0 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 4e 6f 74 4d 61 6b 65 53 65 6c 65 63 74 61 62 6c teractableShouldNotMakeSelectabl
2bc0 65 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 49 66 49 67 6e 6f 72 65 50 61 72 65 6e 74 47 72 eNotInteractableIfIgnoreParentGr
2be0 6f 75 70 73 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 76 61 72 oups().........{.............var
2c00 20 63 61 6e 76 61 73 47 72 6f 75 70 31 20 3d 20 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 .canvasGroup1.=.CreateAndParentG
2c20 72 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 47 72 6f 75 70 31 22 2c 20 73 65 6c 65 63 74 61 62 6c roupTo("CanvasGroup1",.selectabl
2c40 65 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 e.gameObject);.............canva
2c60 73 47 72 6f 75 70 31 2e 69 67 6e 6f 72 65 50 61 72 65 6e 74 47 72 6f 75 70 73 20 3d 20 74 72 75 sGroup1.ignoreParentGroups.=.tru
2c80 65 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 72 6f 75 70 32 20 e;.............var.canvasGroup2.
2ca0 3d 20 43 72 65 61 74 65 41 6e 64 50 61 72 65 6e 74 47 72 6f 75 70 54 6f 28 22 43 61 6e 76 61 73 =.CreateAndParentGroupTo("Canvas
2cc0 47 72 6f 75 70 32 22 2c 20 63 61 6e 76 61 73 47 72 6f 75 70 31 2e 67 61 6d 65 4f 62 6a 65 63 74 Group2",.canvasGroup1.gameObject
2ce0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 65 6c );.............Assert.IsTrue(sel
2d00 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 0a 20 20 20 20 ectable.IsInteractable());......
2d20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 47 72 6f 75 70 32 2e 69 6e 74 65 72 61 63 74 61 62 6c ........canvasGroup2.interactabl
2d40 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 63 74 75 61 6c e.=.false;.............//.actual
2d60 20 63 61 6c 6c 20 68 61 70 70 65 6e 73 20 6f 6e 20 74 68 65 20 6e 61 74 69 76 65 20 73 69 64 65 .call.happens.on.the.native.side
2d80 2c 20 63 61 75 73 65 20 62 79 20 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 0a ,.cause.by.interactable.=.false.
2da0 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 43 ............selectable.InvokeOnC
2dc0 61 6e 76 61 73 47 72 6f 75 70 43 68 61 6e 67 65 64 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 anvasGroupChanged();............
2de0 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 49 73 49 6e 74 ..Assert.IsTrue(selectable.IsInt
2e00 65 72 61 63 74 61 62 6c 65 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 eractable());.........}.........
2e20 20 5b 54 65 73 74 5d 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 38 36 31 37 33 36 .[Test]//.regression.test.861736
2e40 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 .........public.void.PointerEnte
2e60 72 54 68 65 6e 53 65 74 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 54 68 65 6e 45 78 69 74 54 rThenSetNotInteractableThenExitT
2e80 68 65 6e 53 65 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 53 65 74 53 74 61 74 65 henSetInteractableShouldSetState
2ea0 54 6f 44 65 66 61 75 6c 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 ToDefault().........{...........
2ec0 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 ..Assert.True(selectable.isState
2ee0 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e Normal);.............selectable.
2f00 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 InvokeOnPointerEnter(null);.....
2f20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 ........Assert.True(selectable.i
2f40 73 53 74 61 74 65 48 69 67 68 6c 69 67 68 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 sStateHighlighted);.............
2f60 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b selectable.interactable.=.false;
2f80 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e .............selectable.InvokeOn
2fa0 50 6f 69 6e 74 65 72 45 78 69 74 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 PointerExit(null);.............s
2fc0 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 74 72 75 65 3b 0a 20 electable.interactable.=.true;..
2fe0 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 46 61 6c 73 65 28 73 65 6c 65 63 74 61 62 ...........Assert.False(selectab
3000 6c 65 2e 69 73 53 74 61 74 65 48 69 67 68 6c 69 67 68 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 le.isStateHighlighted);.........
3020 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 ....Assert.True(selectable.isSta
3040 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 teNormal);.........}..........[T
3060 65 73 74 5d 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 38 36 31 37 33 36 0a 20 20 est]//.regression.test.861736...
3080 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 72 54 68 ......public.void.PointerEnterTh
30a0 65 6e 53 65 74 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 54 68 65 6e 53 65 74 49 6e 74 65 72 enSetNotInteractableThenSetInter
30c0 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 53 74 61 79 48 69 67 68 6c 69 67 68 74 65 64 28 29 0a 20 actableShouldStayHighlighted()..
30e0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 .......{.............Assert.True
3100 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 (selectable.isStateNormal);.....
3120 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 ........selectable.InvokeOnPoint
3140 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 erEnter(null);.............Asser
3160 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 48 69 67 68 6c 69 67 t.True(selectable.isStateHighlig
3180 68 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e hted);.............selectable.in
31a0 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 teractable.=.false;.............
31c0 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 74 72 75 65 3b 0a selectable.interactable.=.true;.
31e0 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 ............Assert.True(selectab
3200 6c 65 2e 69 73 53 74 61 74 65 48 69 67 68 6c 69 67 68 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 le.isStateHighlighted);.........
3220 7d 0a 0a 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0a 0a 20 20 20 20 20 20 20 20 23 }..........#endregion..........#
3240 72 65 67 69 6f 6e 20 54 77 65 65 6e 69 6e 67 0a 0a 20 20 20 20 20 20 20 20 5b 55 6e 69 74 79 54 region.Tweening..........[UnityT
3260 65 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 est].........public.IEnumerator.
3280 53 65 74 74 69 6e 67 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 54 77 65 65 SettingNotInteractableShouldTwee
32a0 6e 54 6f 44 69 73 61 62 6c 65 64 43 6f 6c 6f 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 nToDisabledColor().........{....
32c0 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 52 65 6e 64 65 72 65 72 20 3d 20 73 65 .........var.canvasRenderer.=.se
32e0 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 lectable.gameObject.GetComponent
3300 3c 43 61 6e 76 61 73 52 65 6e 64 65 72 65 72 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 <CanvasRenderer>();.............
3320 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 45 6e 61 62 6c 65 28 29 3b 0a 20 20 20 selectable.InvokeOnEnable();....
3340 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 53 65 74 43 6f 6c 6f 72 .........canvasRenderer.SetColor
3360 28 73 65 6c 65 63 74 61 62 6c 65 2e 63 6f 6c 6f 72 73 2e 6e 6f 72 6d 61 6c 43 6f 6c 6f 72 29 3b (selectable.colors.normalColor);
3380 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 ..............selectable.interac
33a0 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c table.=.false;..............yiel
33c0 64 20 72 65 74 75 72 6e 20 6e 65 77 20 57 61 69 74 46 6f 72 53 65 63 6f 6e 64 73 28 31 29 3b 0a d.return.new.WaitForSeconds(1);.
33e0 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 75 61 6c 28 73 65 6c .............Assert.AreEqual(sel
3400 65 63 74 61 62 6c 65 2e 63 6f 6c 6f 72 73 2e 64 69 73 61 62 6c 65 64 43 6f 6c 6f 72 2c 20 63 61 ectable.colors.disabledColor,.ca
3420 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 47 65 74 43 6f 6c 6f 72 28 29 29 3b 0a 0a 20 20 20 20 20 nvasRenderer.GetColor());.......
3440 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d .......selectable.interactable.=
3460 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e .true;..............yield.return
3480 20 6e 65 77 20 57 61 69 74 46 6f 72 53 65 63 6f 6e 64 73 28 31 29 3b 0a 0a 20 20 20 20 20 20 20 .new.WaitForSeconds(1);.........
34a0 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 73 65 6c 65 63 74 61 62 6c 65 2e .....Assert.AreEqual(selectable.
34c0 63 6f 6c 6f 72 73 2e 6e 6f 72 6d 61 6c 43 6f 6c 6f 72 2c 20 63 61 6e 76 61 73 52 65 6e 64 65 72 colors.normalColor,.canvasRender
34e0 65 72 2e 47 65 74 43 6f 6c 6f 72 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 er.GetColor());.........}.......
3500 20 20 20 5b 55 6e 69 74 79 54 65 73 74 5d 5b 49 67 6e 6f 72 65 28 22 46 61 69 6c 73 22 29 5d 20 ...[UnityTest][Ignore("Fails")].
3520 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 37 34 32 31 34 30 0a 20 20 20 20 20 20 //.regression.test.742140.......
3540 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 53 65 74 74 69 6e 67 4e 6f 74 49 ..public.IEnumerator.SettingNotI
3560 6e 74 65 72 61 63 74 61 62 6c 65 54 68 65 6e 49 6e 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c nteractableThenInteractableShoul
3580 64 4e 6f 74 54 77 65 65 6e 54 6f 44 69 73 61 62 6c 65 64 43 6f 6c 6f 72 28 29 0a 20 20 20 20 20 dNotTweenToDisabledColor()......
35a0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 52 65 6e 64 65 ...{.............var.canvasRende
35c0 72 65 72 20 3d 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 47 65 74 43 rer.=.selectable.gameObject.GetC
35e0 6f 6d 70 6f 6e 65 6e 74 3c 43 61 6e 76 61 73 52 65 6e 64 65 72 65 72 3e 28 29 3b 0a 20 20 20 20 omponent<CanvasRenderer>();.....
3600 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c ........selectable.enabled.=.fal
3620 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 65 6e 61 62 6c se;.............selectable.enabl
3640 65 64 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 52 65 6e ed.=.true;.............canvasRen
3660 64 65 72 65 72 2e 53 65 74 43 6f 6c 6f 72 28 73 65 6c 65 63 74 61 62 6c 65 2e 63 6f 6c 6f 72 73 derer.SetColor(selectable.colors
3680 2e 6e 6f 72 6d 61 6c 43 6f 6c 6f 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 .normalColor);..............sele
36a0 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 ctable.interactable.=.false;....
36c0 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 .........selectable.interactable
36e0 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6c 6f 72 20 63 20 3d 20 63 .=.true;.............Color.c.=.c
3700 61 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 47 65 74 43 6f 6c 6f 72 28 29 3b 0a 0a 20 20 20 20 20 anvasRenderer.GetColor();.......
3720 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 33 30 3b 20 69 .......for.(int.i.=.0;.i.<.30;.i
3740 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 20 20 20 20 ++).............{...............
3760 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ..yield.return.null;............
3780 20 20 20 20 20 43 6f 6c 6f 72 20 63 32 20 3d 20 63 61 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 47 .....Color.c2.=.canvasRenderer.G
37a0 65 74 43 6f 6c 6f 72 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 etColor();.................Asser
37c0 74 2e 41 72 65 4e 6f 74 45 71 75 61 6c 28 63 32 2c 20 63 29 3b 0a 20 20 20 20 20 20 20 20 20 20 t.AreNotEqual(c2,.c);...........
37e0 20 20 7d 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 75 61 6c 28 ..}.............Assert.AreEqual(
3800 73 65 6c 65 63 74 61 62 6c 65 2e 63 6f 6c 6f 72 73 2e 6e 6f 72 6d 61 6c 43 6f 6c 6f 72 2c 20 63 selectable.colors.normalColor,.c
3820 61 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 47 65 74 43 6f 6c 6f 72 28 29 29 3b 0a 20 20 20 20 20 anvasRenderer.GetColor());......
3840 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 55 6e 69 74 79 54 65 73 74 5d 0a 20 20 20 20 20 20 ...}..........[UnityTest].......
3860 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 53 65 74 74 69 6e 67 49 6e 74 65 ..public.IEnumerator.SettingInte
3880 72 61 63 74 61 62 6c 65 54 6f 46 61 6c 73 65 54 72 75 65 46 61 6c 73 65 53 68 6f 75 6c 64 54 77 ractableToFalseTrueFalseShouldTw
38a0 65 65 6e 54 6f 44 69 73 61 62 6c 65 64 43 6f 6c 6f 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 eenToDisabledColor().........{..
38c0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6e 76 61 73 52 65 6e 64 65 72 65 72 20 3d 20 ...........var.canvasRenderer.=.
38e0 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 selectable.gameObject.GetCompone
3900 6e 74 3c 43 61 6e 76 61 73 52 65 6e 64 65 72 65 72 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 nt<CanvasRenderer>();...........
3920 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 45 6e 61 62 6c 65 28 29 3b 0a 20 ..selectable.InvokeOnEnable();..
3940 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 76 61 73 52 65 6e 64 65 72 65 72 2e 53 65 74 43 6f 6c ...........canvasRenderer.SetCol
3960 6f 72 28 73 65 6c 65 63 74 61 62 6c 65 2e 63 6f 6c 6f 72 73 2e 6e 6f 72 6d 61 6c 43 6f 6c 6f 72 or(selectable.colors.normalColor
3980 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 );..............selectable.inter
39a0 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c actable.=.false;.............sel
39c0 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 20 3d 20 74 72 75 65 3b 0a 20 20 20 ectable.interactable.=.true;....
39e0 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 61 62 6c 65 .........selectable.interactable
3a00 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 .=.false;..............yield.ret
3a20 75 72 6e 20 6e 65 77 20 57 61 69 74 46 6f 72 53 65 63 6f 6e 64 73 28 31 29 3b 0a 0a 20 20 20 20 urn.new.WaitForSeconds(1);......
3a40 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 73 65 6c 65 63 74 61 62 ........Assert.AreEqual(selectab
3a60 6c 65 2e 63 6f 6c 6f 72 73 2e 64 69 73 61 62 6c 65 64 43 6f 6c 6f 72 2c 20 63 61 6e 76 61 73 52 le.colors.disabledColor,.canvasR
3a80 65 6e 64 65 72 65 72 2e 47 65 74 43 6f 6c 6f 72 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a enderer.GetColor());.........}..
3aa0 23 69 66 20 50 41 43 4b 41 47 45 5f 41 4e 49 4d 41 54 49 4f 4e 0a 20 20 20 20 20 20 20 20 5b 54 #if.PACKAGE_ANIMATION.........[T
3ac0 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 54 72 69 67 67 65 72 est].........public.void.Trigger
3ae0 41 6e 69 6d 61 74 69 6f 6e 57 69 74 68 4e 6f 41 6e 69 6d 61 74 6f 72 28 29 0a 20 20 20 20 20 20 AnimationWithNoAnimator().......
3b00 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 4e 75 6c 6c 28 73 65 6c 65 ..{.............Assert.Null(sele
3b20 63 74 61 62 6c 65 2e 61 6e 69 6d 61 74 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 ctable.animator);.............As
3b40 73 65 72 74 2e 44 6f 65 73 4e 6f 74 54 68 72 6f 77 28 28 29 20 3d 3e 20 73 65 6c 65 63 74 61 62 sert.DoesNotThrow(().=>.selectab
3b60 6c 65 2e 49 6e 76 6f 6b 65 54 72 69 67 67 65 72 41 6e 69 6d 61 74 69 6f 6e 28 22 61 73 64 61 73 le.InvokeTriggerAnimation("asdas
3b80 64 22 29 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 d"));.........}..........[Test].
3ba0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 54 72 69 67 67 65 72 41 6e 69 6d 61 ........public.void.TriggerAnima
3bc0 74 69 6f 6e 57 69 74 68 44 69 73 61 62 6c 65 64 41 6e 69 6d 61 74 6f 72 28 29 0a 20 20 20 20 20 tionWithDisabledAnimator()......
3be0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 20 3d 20 73 65 6c 65 63 74 ...{.............var.an.=.select
3c00 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 41 64 64 43 6f 6d 70 6f 6e 65 6e 74 3c 41 6e 69 able.gameObject.AddComponent<Ani
3c20 6d 61 74 6f 72 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 2e 65 6e 61 62 6c 65 64 mator>();.............an.enabled
3c40 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 4e 6f 74 .=.false;.............Assert.Not
3c60 4e 75 6c 6c 28 73 65 6c 65 63 74 61 62 6c 65 2e 61 6e 69 6d 61 74 6f 72 29 3b 0a 20 20 20 20 20 Null(selectable.animator);......
3c80 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 44 6f 65 73 4e 6f 74 54 68 72 6f 77 28 28 29 20 3d 3e .......Assert.DoesNotThrow(().=>
3ca0 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 54 72 69 67 67 65 72 41 6e 69 6d 61 74 69 .selectable.InvokeTriggerAnimati
3cc0 6f 6e 28 22 61 73 64 61 73 64 22 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 on("asdasd"));.........}........
3ce0 20 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 54 72 69 ..[Test].........public.void.Tri
3d00 67 67 65 72 41 6e 69 6d 61 74 69 6f 6e 41 6e 69 6d 61 74 6f 72 57 69 74 68 4e 6f 52 75 6e 74 69 ggerAnimationAnimatorWithNoRunti
3d20 6d 65 43 6f 6e 74 72 6f 6c 6c 65 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 meController().........{........
3d40 20 20 20 20 20 76 61 72 20 61 6e 20 3d 20 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a .....var.an.=.selectable.gameObj
3d60 65 63 74 2e 41 64 64 43 6f 6d 70 6f 6e 65 6e 74 3c 41 6e 69 6d 61 74 6f 72 3e 28 29 3b 0a 20 20 ect.AddComponent<Animator>();...
3d80 20 20 20 20 20 20 20 20 20 20 61 6e 2e 72 75 6e 74 69 6d 65 41 6e 69 6d 61 74 6f 72 43 6f 6e 74 ..........an.runtimeAnimatorCont
3da0 72 6f 6c 6c 65 72 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 roller.=.null;.............Asser
3dc0 74 2e 4e 6f 74 4e 75 6c 6c 28 73 65 6c 65 63 74 61 62 6c 65 2e 61 6e 69 6d 61 74 6f 72 29 3b 0a t.NotNull(selectable.animator);.
3de0 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 44 6f 65 73 4e 6f 74 54 68 72 6f 77 28 ............Assert.DoesNotThrow(
3e00 28 29 20 3d 3e 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 54 72 69 67 67 65 72 41 6e ().=>.selectable.InvokeTriggerAn
3e20 69 6d 61 74 69 6f 6e 28 22 61 73 64 61 73 64 22 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 23 imation("asdasd"));.........}..#
3e40 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0a 0a 20 20 20 20 20 20 endif.........#endregion........
3e60 20 20 23 72 65 67 69 6f 6e 20 53 65 6c 65 63 74 69 6f 6e 20 73 74 61 74 65 20 61 6e 64 20 70 6f ..#region.Selection.state.and.po
3e80 69 6e 74 65 72 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 inter..........[Test].........pu
3ea0 62 6c 69 63 20 76 6f 69 64 20 53 65 6c 65 63 74 53 68 6f 75 6c 64 53 65 74 53 65 6c 65 63 74 65 blic.void.SelectShouldSetSelecte
3ec0 64 4f 62 6a 65 63 74 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 dObject().........{.............
3ee0 41 73 73 65 72 74 2e 4e 75 6c 6c 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e Assert.Null(EventSystem.current.
3f00 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 currentSelectedGameObject);.....
3f20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 53 65 6c 65 63 74 28 29 3b 0a 20 20 20 ........selectable.Select();....
3f40 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 73 65 6c 65 63 74 61 .........Assert.AreEqual(selecta
3f60 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2c 20 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 ble.gameObject,.EventSystem.curr
3f80 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 29 3b 0a ent.currentSelectedGameObject);.
3fa0 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 20 20 20 20 20 20 ........}..........[Test].......
3fc0 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 6c 65 63 74 57 68 65 6e 41 6c 72 65 61 64 79 53 ..public.void.SelectWhenAlreadyS
3fe0 65 6c 65 63 74 69 6e 67 53 68 6f 75 6c 64 4e 6f 74 53 65 74 53 65 6c 65 63 74 65 64 4f 62 6a 65 electingShouldNotSetSelectedObje
4000 63 74 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 41 73 73 65 72 ct().........{.............Asser
4020 74 2e 4e 75 6c 6c 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 t.Null(EventSystem.current.curre
4040 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 ntSelectedGameObject);..........
4060 20 20 20 76 61 72 20 66 69 65 6c 64 49 6e 66 6f 20 3d 20 74 79 70 65 6f 66 28 45 76 65 6e 74 53 ...var.fieldInfo.=.typeof(EventS
4080 79 73 74 65 6d 29 2e 47 65 74 46 69 65 6c 64 28 22 6d 5f 53 65 6c 65 63 74 69 6f 6e 47 75 61 72 ystem).GetField("m_SelectionGuar
40a0 64 22 2c 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 4e 6f 6e 50 75 62 6c 69 63 20 7c 20 42 69 6e d",.BindingFlags.NonPublic.|.Bin
40c0 64 69 6e 67 46 6c 61 67 73 2e 49 6e 73 74 61 6e 63 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 dingFlags.Instance);............
40e0 20 66 69 65 6c 64 49 6e 66 6f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 53 65 74 56 .fieldInfo..................SetV
4100 61 6c 75 65 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2c 20 74 72 75 65 29 3b alue(EventSystem.current,.true);
4120 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 53 65 6c 65 63 74 28 29 .............selectable.Select()
4140 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 4e 75 6c 6c 28 45 76 65 6e 74 53 ;.............Assert.Null(EventS
4160 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d ystem.current.currentSelectedGam
4180 65 4f 62 6a 65 63 74 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 eObject);.........}..........[Te
41a0 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 st].........public.void.PointerE
41c0 6e 74 65 72 53 68 6f 75 6c 64 48 69 67 68 6c 69 67 68 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a nterShouldHighlight().........{.
41e0 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 ............Assert.True(selectab
4200 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 le.isStateNormal);.............s
4220 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e 74 65 72 28 6e electable.InvokeOnPointerEnter(n
4240 75 6c 6c 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 73 65 ull);.............Assert.True(se
4260 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 48 69 67 68 6c 69 67 68 74 65 64 29 3b 0a 20 20 lectable.isStateHighlighted);...
4280 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 20 ......}..........[Test].........
42a0 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 72 41 6e 64 52 69 67 68 74 public.void.PointerEnterAndRight
42c0 43 6c 69 63 6b 53 68 6f 75 6c 64 48 69 67 68 6c 69 67 68 74 4e 6f 74 50 72 65 73 73 28 29 0a 20 ClickShouldHighlightNotPress()..
42e0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 .......{.............Assert.True
4300 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 (selectable.isStateNormal);.....
4320 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 ........selectable.InvokeOnPoint
4340 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 erEnter(null);.............selec
4360 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 50 6f table.InvokeOnPointerDown(new.Po
4380 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 72 65 interEventData(EventSystem.curre
43a0 6e 74 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 nt).............{...............
43c0 20 20 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 ..button.=.PointerEventData.Inpu
43e0 74 42 75 74 74 6f 6e 2e 52 69 67 68 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0a 20 20 tButton.Right.............});...
4400 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 ..........Assert.True(selectable
4420 2e 69 73 53 74 61 74 65 48 69 67 68 6c 69 67 68 74 65 64 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a .isStateHighlighted);.........}.
4440 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 6c 69 63 20 76 .........[Test].........public.v
4460 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 72 41 6e 64 52 69 67 68 74 43 6c 69 63 6b 53 68 6f oid.PointerEnterAndRightClickSho
4480 75 6c 64 50 72 65 73 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 uldPress().........{............
44a0 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e .Assert.True(selectable.isStateN
44c0 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 ormal);.............selectable.I
44e0 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 nvokeOnPointerEnter(null);......
4500 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 .......selectable.InvokeOnPointe
4520 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e 74 rDown(new.PointerEventData(Event
4540 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 System.current));.............As
4560 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 50 72 65 73 sert.True(selectable.isStatePres
4580 73 65 64 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 sed);.........}..........[Test].
45a0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 65 72 ........public.void.PointerEnter
45c0 4c 65 66 74 43 6c 69 63 6b 45 78 69 74 53 68 6f 75 6c 64 50 72 65 73 73 28 29 0a 20 20 20 20 20 LeftClickExitShouldPress()......
45e0 20 20 20 7b 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 73 65 6c ...{.............Assert.True(sel
4600 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 ectable.isStateNormal);.........
4620 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e ....selectable.InvokeOnPointerEn
4640 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c ter(null);.............selectabl
4660 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 6e 74 65 e.InvokeOnPointerDown(new.Pointe
4680 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 72 65 6e 74 29 29 rEventData(EventSystem.current))
46a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f ;.............selectable.InvokeO
46c0 6e 50 6f 69 6e 74 65 72 45 78 69 74 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 nPointerExit(null);.............
46e0 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 50 72 Assert.True(selectable.isStatePr
4700 65 73 73 65 64 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 essed);.........}..........[Test
4720 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 45 6e 74 ].........public.void.PointerEnt
4740 65 72 4c 65 66 74 43 6c 69 63 6b 45 78 69 74 52 65 6c 65 61 73 65 53 68 6f 75 6c 64 53 65 6c 65 erLeftClickExitReleaseShouldSele
4760 63 74 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 41 73 73 65 72 ct().........{.............Asser
4780 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 6d 61 6c 29 t.True(selectable.isStateNormal)
47a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f ;.............selectable.InvokeO
47c0 6e 50 6f 69 6e 74 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 nPointerEnter(null);............
47e0 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 .selectable.InvokeOnPointerDown(
4800 6e 65 77 20 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 new.PointerEventData(EventSystem
4820 2e 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 .current));.............selectab
4840 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 78 69 74 28 6e 75 6c 6c 29 3b 0a 20 20 le.InvokeOnPointerExit(null);...
4860 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 ..........selectable.InvokeOnPoi
4880 6e 74 65 72 55 70 28 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e nterUp(new.PointerEventData(Even
48a0 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 tSystem.current));.............A
48c0 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 53 65 6c ssert.True(selectable.isStateSel
48e0 65 63 74 65 64 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 ected);.........}..........[Test
4900 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 44 6f 77 ].........public.void.PointerDow
4920 6e 53 68 6f 75 6c 64 53 65 74 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 0a 20 20 20 20 20 nShouldSetSelectedObject()......
4940 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 4e 75 6c 6c 28 45 76 65 ...{.............Assert.Null(Eve
4960 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 ntSystem.current.currentSelected
4980 47 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 GameObject);.............selecta
49a0 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 6e ble.InvokeOnPointerDown(new.Poin
49c0 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 72 65 6e 74 terEventData(EventSystem.current
49e0 29 29 3b 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 75 61 6c 28 ));.............Assert.AreEqual(
4a00 73 65 6c 65 63 74 61 62 6c 65 2e 67 61 6d 65 4f 62 6a 65 63 74 2c 20 45 76 65 6e 74 53 79 73 74 selectable.gameObject,.EventSyst
4a20 65 6d 2e 63 75 72 72 65 6e 74 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 em.current.currentSelectedGameOb
4a40 6a 65 63 74 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 ject);.........}..........[Test]
4a60 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 69 6e 74 65 72 4c 65 66 74 .........public.void.PointerLeft
4a80 44 6f 77 6e 52 69 67 68 74 44 6f 77 6e 52 69 67 68 74 55 70 53 68 6f 75 6c 64 4e 6f 74 43 68 61 DownRightDownRightUpShouldNotCha
4aa0 6e 67 65 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 ngeState().........{............
4ac0 20 41 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e .Assert.True(selectable.isStateN
4ae0 6f 72 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 ormal);.............selectable.I
4b00 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 45 6e 74 65 72 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 nvokeOnPointerEnter(null);......
4b20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 .......selectable.InvokeOnPointe
4b40 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 45 76 65 6e 74 rDown(new.PointerEventData(Event
4b60 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 20 7b 20 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 System.current).{.button.=.Point
4b80 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 20 7d 29 3b erEventData.InputButton.Left.});
4ba0 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e .............selectable.InvokeOn
4bc0 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 PointerDown(new.PointerEventData
4be0 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 20 7b 20 62 75 74 74 6f 6e 20 3d (EventSystem.current).{.button.=
4c00 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 52 69 .PointerEventData.InputButton.Ri
4c20 67 68 74 20 7d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 49 ght.});.............selectable.I
4c40 6e 76 6f 6b 65 4f 6e 50 6f 69 6e 74 65 72 55 70 28 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e nvokeOnPointerUp(new.PointerEven
4c60 74 44 61 74 61 28 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 29 20 7b 20 62 75 74 tData(EventSystem.current).{.but
4c80 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 ton.=.PointerEventData.InputButt
4ca0 6f 6e 2e 52 69 67 68 74 20 7d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e on.Right.});.............Assert.
4cc0 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 50 72 65 73 73 65 64 29 3b True(selectable.isStatePressed);
4ce0 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 2c 20 49 67 6e 6f 72 .........}..........[Test,.Ignor
4d00 65 28 22 4e 6f 20 64 69 73 61 62 6c 65 64 20 73 74 61 74 65 20 61 73 73 69 67 6e 65 64 20 3f 20 e("No.disabled.state.assigned.?.
4d20 49 6e 76 65 73 74 69 67 61 74 65 22 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f Investigate")].........public.vo
4d40 69 64 20 53 65 74 74 69 6e 67 4e 6f 74 49 6e 74 65 72 61 63 74 61 62 6c 65 53 68 6f 75 6c 64 44 id.SettingNotInteractableShouldD
4d60 69 73 61 62 6c 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 41 isable().........{.............A
4d80 73 73 65 72 74 2e 54 72 75 65 28 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 4e 6f 72 ssert.True(selectable.isStateNor
4da0 6d 61 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 mal);.............selectable.int
4dc0 65 72 61 63 74 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 eractable.=.false;.............s
4de0 65 6c 65 63 74 61 62 6c 65 2e 49 6e 76 6f 6b 65 4f 6e 43 61 6e 76 61 73 47 72 6f 75 70 43 68 61 electable.InvokeOnCanvasGroupCha
4e00 6e 67 65 64 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 nged();.............Assert.True(
4e20 73 65 6c 65 63 74 61 62 6c 65 2e 69 73 53 74 61 74 65 44 69 73 61 62 6c 65 64 29 3b 0a 20 20 20 selectable.isStateDisabled);....
4e40 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0a 0a 20 20 20 20 .....}..........#endregion......
4e60 20 20 20 20 23 72 65 67 69 6f 6e 20 4e 6f 20 65 76 65 6e 74 20 73 79 73 74 65 6d 0a 0a 20 20 20 ....#region.No.event.system.....
4e80 20 20 20 20 20 5b 54 65 73 74 5d 20 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 37 .....[Test].//.regression.test.7
4ea0 38 37 35 36 33 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 74 69 6e 87563.........public.void.Settin
4ec0 67 49 6e 74 65 72 61 63 74 61 62 6c 65 57 69 74 68 4e 6f 45 76 65 6e 74 53 79 73 74 65 6d 53 68 gInteractableWithNoEventSystemSh
4ee0 6f 75 6c 64 4e 6f 74 43 72 61 73 68 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 ouldNotCrash().........{........
4f00 20 20 20 20 20 45 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 20 3d 20 6e 75 6c 6c 3b .....EventSystem.current.=.null;
4f20 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 69 6e 74 65 72 61 63 74 .............selectable.interact
4f40 61 62 6c 65 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 able.=.false;.........}.........
4f60 20 5b 54 65 73 74 5d 20 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 37 38 37 35 36 .[Test].//.regression.test.78756
4f80 33 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 50 6f 69 6e 74 65 72 44 3.........public.void.OnPointerD
4fa0 6f 77 6e 57 69 74 68 4e 6f 45 76 65 6e 74 53 79 73 74 65 6d 53 68 6f 75 6c 64 4e 6f 74 43 72 61 ownWithNoEventSystemShouldNotCra
4fc0 73 68 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 45 76 65 6e 74 sh().........{.............Event
4fe0 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 System.current.=.null;..........
5000 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 4f 6e 50 6f 69 6e 74 65 72 44 6f 77 6e 28 6e 65 77 20 ...selectable.OnPointerDown(new.
5020 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
5040 72 65 6e 74 29 20 7b 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 rent).{button.=.PointerEventData
5060 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 7d 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a .InputButton.Left});.........}..
5080 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 20 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 ........[Test].//.regression.tes
50a0 74 20 37 38 37 35 36 33 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 6c t.787563.........public.void.Sel
50c0 65 63 74 57 69 74 68 4e 6f 45 76 65 6e 74 53 79 73 74 65 6d 53 68 6f 75 6c 64 4e 6f 74 43 72 61 ectWithNoEventSystemShouldNotCra
50e0 73 68 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 45 76 65 6e 74 sh().........{.............Event
5100 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 System.current.=.null;..........
5120 20 20 20 73 65 6c 65 63 74 61 62 6c 65 2e 53 65 6c 65 63 74 28 29 3b 0a 20 20 20 20 20 20 20 20 ...selectable.Select();.........
5140 7d 0a 0a 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0a 20 20 20 20 7d 0a 7d 0a 00 00 }..........#endregion.....}.}...
5160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 53 65 6c 65 63 74 61 62 ........................Selectab
5180 6c 65 54 65 73 74 73 00 14 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 2e 54 65 73 74 73 leTests.....UnityEngine.UI.Tests