summaryrefslogtreecommitdiff
path: root/Library/Artifacts/d5/d5da471936c81f5be2b63fb630742106
blob: 56962ae687d45082508804eb2d507fd6244b354d (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 38 d8 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......8.............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 78 28 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 x(..............................
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 16 00 00 00 54 72 61 63 6b 65 64 44 65 76 69 63 65 52 61 79 63 61 73 74 ............TrackedDeviceRaycast
10a0 65 72 00 00 dd 27 00 00 23 69 66 20 50 41 43 4b 41 47 45 5f 44 4f 43 53 5f 47 45 4e 45 52 41 54 er...'..#if.PACKAGE_DOCS_GENERAT
10c0 49 4f 4e 20 7c 7c 20 28 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d 5f 45 4e 41 42 4c ION.||.(UNITY_INPUT_SYSTEM_ENABL
10e0 45 5f 55 49 20 26 26 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d 5f 45 4e 41 42 4c E_UI.&&.UNITY_INPUT_SYSTEM_ENABL
1100 45 5f 58 52 29 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 E_XR)..using.System;..using.Syst
1120 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 em.Collections.Generic;..using.U
1140 6e 69 74 79 45 6e 67 69 6e 65 2e 45 76 65 6e 74 53 79 73 74 65 6d 73 3b 0d 0a 75 73 69 6e 67 20 nityEngine.EventSystems;..using.
1160 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 UnityEngine.InputSystem.Utilitie
1180 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 53 65 72 69 61 6c 69 7a 61 74 s;..using.UnityEngine.Serializat
11a0 69 6f 6e 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 3b 0d 0a 0d 0a 6e ion;..using.UnityEngine.UI;....n
11c0 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d amespace.UnityEngine.InputSystem
11e0 2e 55 49 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f .UI..{......///.<summary>....../
1200 2f 2f 20 52 61 79 63 61 73 74 69 6e 67 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 //.Raycasting.implementation.for
1220 20 75 73 65 20 77 69 74 68 20 3c 73 65 65 20 63 72 65 66 3d 22 54 72 61 63 6b 65 64 44 65 76 69 .use.with.<see.cref="TrackedDevi
1240 63 65 22 2f 3e 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 ce"/>s.......///.</summary>.....
1260 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 63 6f 6d .///.<remarks>......///.This.com
1280 70 6f 6e 65 6e 74 20 6e 65 65 64 73 20 74 6f 20 62 65 20 61 64 64 65 64 20 61 6c 6f 6e 67 73 69 ponent.needs.to.be.added.alongsi
12a0 64 65 20 74 68 65 20 3c 63 3e 43 61 6e 76 61 73 3c 2f 63 3e 20 63 6f 6d 70 6f 6e 65 6e 74 2e 20 de.the.<c>Canvas</c>.component..
12c0 55 73 75 61 6c 6c 79 2c 20 72 61 79 63 61 73 74 69 6e 67 20 69 73 0d 0a 20 20 20 20 2f 2f 2f 20 Usually,.raycasting.is......///.
12e0 70 65 72 66 6f 72 6d 65 64 20 62 79 20 74 68 65 20 3c 63 3e 47 72 61 70 68 69 63 52 61 79 63 61 performed.by.the.<c>GraphicRayca
1300 73 74 65 72 3c 2f 63 3e 20 63 6f 6d 70 6f 6e 65 6e 74 20 66 6f 75 6e 64 20 74 68 65 72 65 20 62 ster</c>.component.found.there.b
1320 75 74 20 66 6f 72 20 33 44 20 72 61 79 63 61 73 74 69 6e 67 20 6e 65 63 65 73 73 61 72 79 20 66 ut.for.3D.raycasting.necessary.f
1340 6f 72 0d 0a 20 20 20 20 2f 2f 2f 20 74 72 61 63 6b 65 64 20 64 65 76 69 63 65 73 2c 20 74 68 69 or......///.tracked.devices,.thi
1360 73 20 63 6f 6d 70 6f 6e 65 6e 74 20 69 73 20 72 65 71 75 69 72 65 64 2e 0d 0a 20 20 20 20 2f 2f s.component.is.required.......//
1380 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 5b 41 64 64 43 6f 6d 70 6f 6e 65 6e 74 4d /.</remarks>......[AddComponentM
13a0 65 6e 75 28 22 45 76 65 6e 74 2f 54 72 61 63 6b 65 64 20 44 65 76 69 63 65 20 52 61 79 63 61 73 enu("Event/Tracked.Device.Raycas
13c0 74 65 72 22 29 5d 0d 0a 20 20 20 20 5b 52 65 71 75 69 72 65 43 6f 6d 70 6f 6e 65 6e 74 28 74 79 ter")]......[RequireComponent(ty
13e0 70 65 6f 66 28 43 61 6e 76 61 73 29 29 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 peof(Canvas))]......public.class
1400 20 54 72 61 63 6b 65 64 44 65 76 69 63 65 52 61 79 63 61 73 74 65 72 20 3a 20 42 61 73 65 52 61 .TrackedDeviceRaycaster.:.BaseRa
1420 79 63 61 73 74 65 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 ycaster......{..........private.
1440 73 74 72 75 63 74 20 52 61 79 63 61 73 74 48 69 74 44 61 74 61 0d 0a 20 20 20 20 20 20 20 20 7b struct.RaycastHitData..........{
1460 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 61 79 63 61 73 74 48 69 74 44 ..............public.RaycastHitD
1480 61 74 61 28 47 72 61 70 68 69 63 20 67 72 61 70 68 69 63 2c 20 56 65 63 74 6f 72 33 20 77 6f 72 ata(Graphic.graphic,.Vector3.wor
14a0 6c 64 48 69 74 50 6f 73 69 74 69 6f 6e 2c 20 56 65 63 74 6f 72 32 20 73 63 72 65 65 6e 50 6f 73 ldHitPosition,.Vector2.screenPos
14c0 69 74 69 6f 6e 2c 20 66 6c 6f 61 74 20 64 69 73 74 61 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 ition,.float.distance)..........
14e0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 67 72 61 70 ....{..................this.grap
1500 68 69 63 20 3d 20 67 72 61 70 68 69 63 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 hic.=.graphic;..................
1520 74 68 69 73 2e 77 6f 72 6c 64 48 69 74 50 6f 73 69 74 69 6f 6e 20 3d 20 77 6f 72 6c 64 48 69 74 this.worldHitPosition.=.worldHit
1540 50 6f 73 69 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e Position;..................this.
1560 73 63 72 65 65 6e 50 6f 73 69 74 69 6f 6e 20 3d 20 73 63 72 65 65 6e 50 6f 73 69 74 69 6f 6e 3b screenPosition.=.screenPosition;
1580 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 64 69 73 74 61 6e 63 65 20 ..................this.distance.
15a0 3d 20 64 69 73 74 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 =.distance;..............}......
15c0 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 47 72 61 70 68 69 63 20 67 72 61 70 68 69 63 ..........public.Graphic.graphic
15e0 20 7b 20 67 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 .{.get;.}..............public.Ve
1600 63 74 6f 72 33 20 77 6f 72 6c 64 48 69 74 50 6f 73 69 74 69 6f 6e 20 7b 20 67 65 74 3b 20 7d 0d ctor3.worldHitPosition.{.get;.}.
1620 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 32 20 73 63 72 65 .............public.Vector2.scre
1640 65 6e 50 6f 73 69 74 69 6f 6e 20 7b 20 67 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 enPosition.{.get;.}.............
1660 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 64 69 73 74 61 6e 63 65 20 7b 20 67 65 74 3b 20 7d 0d .public.float.distance.{.get;.}.
1680 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 .........}............public.ove
16a0 72 72 69 64 65 20 43 61 6d 65 72 61 20 65 76 65 6e 74 43 61 6d 65 72 61 0d 0a 20 20 20 20 20 20 rride.Camera.eventCamera........
16c0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 ..{..............get............
16e0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 79 43 61 6e 76 61 ..{..................var.myCanva
1700 73 20 3d 20 63 61 6e 76 61 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 s.=.canvas;..................ret
1720 75 72 6e 20 6d 79 43 61 6e 76 61 73 20 21 3d 20 6e 75 6c 6c 20 3f 20 6d 79 43 61 6e 76 61 73 2e urn.myCanvas.!=.null.?.myCanvas.
1740 77 6f 72 6c 64 43 61 6d 65 72 61 20 3a 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 worldCamera.:.null;.............
1760 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 .}..........}............public.
1780 4c 61 79 65 72 4d 61 73 6b 20 62 6c 6f 63 6b 69 6e 67 4d 61 73 6b 0d 0a 20 20 20 20 20 20 20 20 LayerMask.blockingMask..........
17a0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 3d 3e 20 6d 5f 42 6c 6f 63 6b 69 6e 67 {..............get.=>.m_Blocking
17c0 4d 61 73 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 42 6c 6f 63 Mask;..............set.=>.m_Bloc
17e0 6b 69 6e 67 4d 61 73 6b 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a kingMask.=.value;..........}....
1800 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 65 63 6b 46 6f 72 33 44 4f 63 ........public.bool.checkFor3DOc
1820 63 6c 75 73 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 clusion..........{..............
1840 67 65 74 20 3d 3e 20 6d 5f 43 68 65 63 6b 46 6f 72 33 44 4f 63 63 6c 75 73 69 6f 6e 3b 0d 0a 20 get.=>.m_CheckFor3DOcclusion;...
1860 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 43 68 65 63 6b 46 6f 72 33 44 4f 63 ...........set.=>.m_CheckFor3DOc
1880 63 6c 75 73 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 clusion.=.value;..........}.....
18a0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 63 68 65 63 6b 46 6f 72 32 44 4f 63 63 .......public.bool.checkFor2DOcc
18c0 6c 75 73 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 lusion..........{..............g
18e0 65 74 20 3d 3e 20 6d 5f 43 68 65 63 6b 46 6f 72 32 44 4f 63 63 6c 75 73 69 6f 6e 3b 0d 0a 20 20 et.=>.m_CheckFor2DOcclusion;....
1900 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 43 68 65 63 6b 46 6f 72 32 44 4f 63 63 ..........set.=>.m_CheckFor2DOcc
1920 6c 75 73 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 lusion.=.value;..........}......
1940 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 67 6e 6f 72 65 52 65 76 65 72 73 65 64 ......public.bool.ignoreReversed
1960 47 72 61 70 68 69 63 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 Graphics..........{.............
1980 20 67 65 74 20 3d 3e 20 6d 5f 49 67 6e 6f 72 65 52 65 76 65 72 73 65 64 47 72 61 70 68 69 63 73 .get.=>.m_IgnoreReversedGraphics
19a0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 3d 3e 20 6d 5f 49 67 6e 6f 72 65 52 65 ;..............set.=>.m_IgnoreRe
19c0 76 65 72 73 65 64 47 72 61 70 68 69 63 73 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 versedGraphics.=.value;.........
19e0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 6d 61 78 44 69 .}............public.float.maxDi
1a00 73 74 61 6e 63 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 stance..........{..............g
1a20 65 74 20 3d 3e 20 6d 5f 4d 61 78 44 69 73 74 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 et.=>.m_MaxDistance;............
1a40 20 20 73 65 74 20 3d 3e 20 6d 5f 4d 61 78 44 69 73 74 61 6e 63 65 20 3d 20 76 61 6c 75 65 3b 0d ..set.=>.m_MaxDistance.=.value;.
1a60 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 .........}............protected.
1a80 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 override.void.OnEnable()........
1aa0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 4f 6e 45 6e 61 62 6c 65 28 29 ..{..............base.OnEnable()
1ac0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 49 6e 73 74 61 6e 63 65 73 2e 41 70 70 65 6e ;..............s_Instances.Appen
1ae0 64 57 69 74 68 43 61 70 61 63 69 74 79 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d dWithCapacity(this);..........}.
1b00 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f ...........protected.override.vo
1b20 69 64 20 4f 6e 44 69 73 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 id.OnDisable()..........{.......
1b40 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 73 5f 49 6e 73 74 61 6e 63 65 73 2e 49 .......var.index.=.s_Instances.I
1b60 6e 64 65 78 4f 66 52 65 66 65 72 65 6e 63 65 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 ndexOfReference(this);..........
1b80 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ....if.(index.!=.-1)............
1ba0 20 20 20 20 20 20 73 5f 49 6e 73 74 61 6e 63 65 73 2e 52 65 6d 6f 76 65 41 74 42 79 4d 6f 76 69 ......s_Instances.RemoveAtByMovi
1bc0 6e 67 54 61 69 6c 57 69 74 68 43 61 70 61 63 69 74 79 28 69 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 ngTailWithCapacity(index);......
1be0 20 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 4f 6e 44 69 73 61 62 6c 65 28 29 3b 0d 0a 20 20 20 ..........base.OnDisable();.....
1c00 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 .....}............public.overrid
1c20 65 20 76 6f 69 64 20 52 61 79 63 61 73 74 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 e.void.Raycast(PointerEventData.
1c40 65 76 65 6e 74 44 61 74 61 2c 20 4c 69 73 74 3c 52 61 79 63 61 73 74 52 65 73 75 6c 74 3e 20 72 eventData,.List<RaycastResult>.r
1c60 65 73 75 6c 74 41 70 70 65 6e 64 4c 69 73 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 esultAppendList)..........{.....
1c80 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 44 61 74 61 20 69 73 20 45 78 74 65 6e 64 .........if.(eventData.is.Extend
1ca0 65 64 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 74 72 61 63 6b 65 64 45 76 65 6e 74 44 edPointerEventData.trackedEventD
1cc0 61 74 61 20 26 26 20 74 72 61 63 6b 65 64 45 76 65 6e 74 44 61 74 61 2e 70 6f 69 6e 74 65 72 54 ata.&&.trackedEventData.pointerT
1ce0 79 70 65 20 3d 3d 20 55 49 50 6f 69 6e 74 65 72 54 79 70 65 2e 54 72 61 63 6b 65 64 29 0d 0a 20 ype.==.UIPointerType.Tracked)...
1d00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f 72 6d 52 61 79 63 61 73 74 28 74 72 ...............PerformRaycast(tr
1d20 61 63 6b 65 64 45 76 65 6e 74 44 61 74 61 2c 20 72 65 73 75 6c 74 41 70 70 65 6e 64 4c 69 73 74 ackedEventData,.resultAppendList
1d40 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 55 73 65 20 );..........}............//.Use.
1d60 74 68 69 73 20 6c 69 73 74 20 6f 6e 20 65 61 63 68 20 72 61 79 63 61 73 74 20 74 6f 20 61 76 6f this.list.on.each.raycast.to.avo
1d80 69 64 20 63 6f 6e 74 69 6e 75 61 6c 6c 79 20 61 6c 6c 6f 63 61 74 69 6e 67 2e 0d 0a 20 20 20 20 id.continually.allocating.......
1da0 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 7a 65 64 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 ....[NonSerialized]..........pri
1dc0 76 61 74 65 20 4c 69 73 74 3c 52 61 79 63 61 73 74 48 69 74 44 61 74 61 3e 20 6d 5f 52 61 79 63 vate.List<RaycastHitData>.m_Rayc
1de0 61 73 74 52 65 73 75 6c 74 73 43 61 63 68 65 20 3d 20 6e 65 77 20 4c 69 73 74 3c 52 61 79 63 61 astResultsCache.=.new.List<Rayca
1e00 73 74 48 69 74 44 61 74 61 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 stHitData>();............interna
1e20 6c 20 76 6f 69 64 20 50 65 72 66 6f 72 6d 52 61 79 63 61 73 74 28 45 78 74 65 6e 64 65 64 50 6f l.void.PerformRaycast(ExtendedPo
1e40 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 65 76 65 6e 74 44 61 74 61 2c 20 4c 69 73 74 3c 52 interEventData.eventData,.List<R
1e60 61 79 63 61 73 74 52 65 73 75 6c 74 3e 20 72 65 73 75 6c 74 41 70 70 65 6e 64 4c 69 73 74 29 0d aycastResult>.resultAppendList).
1e80 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 61 6e 76 .........{..............if.(canv
1ea0 61 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 as.==.null)..................ret
1ec0 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 43 61 6d urn;................if.(eventCam
1ee0 65 72 61 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 era.==.null)..................re
1f00 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 61 79 20 3d 20 6e turn;................var.ray.=.n
1f20 65 77 20 52 61 79 28 65 76 65 6e 74 44 61 74 61 2e 74 72 61 63 6b 65 64 44 65 76 69 63 65 50 6f ew.Ray(eventData.trackedDevicePo
1f40 73 69 74 69 6f 6e 2c 20 65 76 65 6e 74 44 61 74 61 2e 74 72 61 63 6b 65 64 44 65 76 69 63 65 4f sition,.eventData.trackedDeviceO
1f60 72 69 65 6e 74 61 74 69 6f 6e 20 2a 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 64 29 3b 0d 0a rientation.*.Vector3.forward);..
1f80 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 69 74 44 69 73 74 61 6e 63 65 20 3d 20 6d 5f ............var.hitDistance.=.m_
1fa0 4d 61 78 44 69 73 74 61 6e 63 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 69 66 20 MaxDistance;................#if.
1fc0 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d 5f 45 4e 41 42 4c 45 5f 50 48 59 53 49 43 UNITY_INPUT_SYSTEM_ENABLE_PHYSIC
1fe0 53 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 68 65 63 6b 46 6f 72 33 44 4f S..............if.(m_CheckFor3DO
2000 63 63 6c 75 73 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 cclusion)..............{........
2020 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 69 74 73 20 3d 20 50 68 79 73 69 63 73 2e 52 61 79 ..........var.hits.=.Physics.Ray
2040 63 61 73 74 41 6c 6c 28 72 61 79 2c 20 68 69 74 44 69 73 74 61 6e 63 65 2c 20 6d 5f 42 6c 6f 63 castAll(ray,.hitDistance,.m_Bloc
2060 6b 69 6e 67 4d 61 73 6b 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 kingMask);....................if
2080 20 28 68 69 74 73 2e 4c 65 6e 67 74 68 20 3e 20 30 20 26 26 20 68 69 74 73 5b 30 5d 2e 64 69 73 .(hits.Length.>.0.&&.hits[0].dis
20a0 74 61 6e 63 65 20 3c 20 68 69 74 44 69 73 74 61 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 tance.<.hitDistance)............
20c0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 69 74 ......{......................hit
20e0 44 69 73 74 61 6e 63 65 20 3d 20 68 69 74 73 5b 30 5d 2e 64 69 73 74 61 6e 63 65 3b 0d 0a 20 20 Distance.=.hits[0].distance;....
2100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a ..............}..............}..
2120 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 69 66 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 ............#endif..............
2140 20 20 23 69 66 20 55 4e 49 54 59 5f 49 4e 50 55 54 5f 53 59 53 54 45 4d 5f 45 4e 41 42 4c 45 5f ..#if.UNITY_INPUT_SYSTEM_ENABLE_
2160 50 48 59 53 49 43 53 32 44 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 68 65 PHYSICS2D..............if.(m_Che
2180 63 6b 46 6f 72 32 44 4f 63 63 6c 75 73 69 6f 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b ckFor2DOcclusion)..............{
21a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 61 79 63 61 73 74 44 69 73 ..................var.raycastDis
21c0 74 61 6e 63 65 20 3d 20 68 69 74 44 69 73 74 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 tance.=.hitDistance;............
21e0 20 20 20 20 20 20 76 61 72 20 68 69 74 73 20 3d 20 50 68 79 73 69 63 73 32 44 2e 47 65 74 52 61 ......var.hits.=.Physics2D.GetRa
2200 79 49 6e 74 65 72 73 65 63 74 69 6f 6e 41 6c 6c 28 72 61 79 2c 20 72 61 79 63 61 73 74 44 69 73 yIntersectionAll(ray,.raycastDis
2220 74 61 6e 63 65 2c 20 6d 5f 42 6c 6f 63 6b 69 6e 67 4d 61 73 6b 29 3b 0d 0a 0d 0a 20 20 20 20 20 tance,.m_BlockingMask);.........
2240 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 69 74 73 2e 4c 65 6e 67 74 68 20 3e 20 30 20 26 ...........if.(hits.Length.>.0.&
2260 26 20 68 69 74 73 5b 30 5d 2e 66 72 61 63 74 69 6f 6e 20 2a 20 72 61 79 63 61 73 74 44 69 73 74 &.hits[0].fraction.*.raycastDist
2280 61 6e 63 65 20 3c 20 68 69 74 44 69 73 74 61 6e 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ance.<.hitDistance).............
22a0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 69 74 44 .....{......................hitD
22c0 69 73 74 61 6e 63 65 20 3d 20 68 69 74 73 5b 30 5d 2e 66 72 61 63 74 69 6f 6e 20 2a 20 72 61 79 istance.=.hits[0].fraction.*.ray
22e0 63 61 73 74 44 69 73 74 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d castDistance;..................}
2300 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e ..............}..............#en
2320 64 69 66 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 61 79 63 61 73 74 52 65 73 75 dif................m_RaycastResu
2340 6c 74 73 43 61 63 68 65 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 ltsCache.Clear();..............S
2360 6f 72 74 65 64 52 61 79 63 61 73 74 47 72 61 70 68 69 63 73 28 63 61 6e 76 61 73 2c 20 72 61 79 ortedRaycastGraphics(canvas,.ray
2380 2c 20 6d 5f 52 61 79 63 61 73 74 52 65 73 75 6c 74 73 43 61 63 68 65 29 3b 0d 0a 0d 0a 20 20 20 ,.m_RaycastResultsCache);.......
23a0 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 6f 77 20 74 68 61 74 20 77 65 20 68 61 76 65 20 61 20 6c .........//.Now.that.we.have.a.l
23c0 69 73 74 20 6f 66 20 73 6f 72 74 65 64 20 68 69 74 73 2c 20 70 72 6f 63 65 73 73 20 61 6e 79 20 ist.of.sorted.hits,.process.any.
23e0 65 78 74 72 61 20 73 65 74 74 69 6e 67 73 20 61 6e 64 20 66 69 6c 74 65 72 73 2e 0d 0a 20 20 20 extra.settings.and.filters......
2400 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 52 .........for.(var.i.=.0;.i.<.m_R
2420 61 79 63 61 73 74 52 65 73 75 6c 74 73 43 61 63 68 65 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a aycastResultsCache.Count;.i++)..
2440 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 ............{..................v
2460 61 72 20 76 61 6c 69 64 48 69 74 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ar.validHit.=.true;.............
2480 20 20 20 20 20 20 20 76 61 72 20 68 69 74 44 61 74 61 20 3d 20 6d 5f 52 61 79 63 61 73 74 52 65 .......var.hitData.=.m_RaycastRe
24a0 73 75 6c 74 73 43 61 63 68 65 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 sultsCache[i];..................
24c0 20 20 76 61 72 20 67 6f 20 3d 20 68 69 74 44 61 74 61 2e 67 72 61 70 68 69 63 2e 67 61 6d 65 4f ..var.go.=.hitData.graphic.gameO
24e0 62 6a 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 67 bject;..................if.(m_Ig
2500 6e 6f 72 65 52 65 76 65 72 73 65 64 47 72 61 70 68 69 63 73 29 0d 0a 20 20 20 20 20 20 20 20 20 noreReversedGraphics)...........
2520 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 .......{......................va
2540 72 20 66 6f 72 77 61 72 64 20 3d 20 72 61 79 2e 64 69 72 65 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 r.forward.=.ray.direction;......
2560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 67 6f 44 69 72 65 63 74 69 6f 6e 20 ................var.goDirection.
2580 3d 20 67 6f 2e 74 72 61 6e 73 66 6f 72 6d 2e 72 6f 74 61 74 69 6f 6e 20 2a 20 56 65 63 74 6f 72 =.go.transform.rotation.*.Vector
25a0 33 2e 66 6f 72 77 61 72 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3.forward;......................
25c0 76 61 6c 69 64 48 69 74 20 3d 20 56 65 63 74 6f 72 33 2e 44 6f 74 28 66 6f 72 77 61 72 64 2c 20 validHit.=.Vector3.Dot(forward,.
25e0 67 6f 44 69 72 65 63 74 69 6f 6e 29 20 3e 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 goDirection).>.0;...............
2600 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 69 64 48 69 74 ...}....................validHit
2620 20 26 3d 20 68 69 74 44 61 74 61 2e 64 69 73 74 61 6e 63 65 20 3c 20 68 69 74 44 69 73 74 61 6e .&=.hitData.distance.<.hitDistan
2640 63 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 6c 69 64 ce;....................if.(valid
2660 48 69 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 Hit)..................{.........
2680 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 73 74 52 65 73 75 6c 74 20 3d 20 6e 65 .............var.castResult.=.ne
26a0 77 20 52 61 79 63 61 73 74 52 65 73 75 6c 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 w.RaycastResult.................
26c0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....{..........................
26e0 67 61 6d 65 4f 62 6a 65 63 74 20 3d 20 67 6f 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 gameObject.=.go,................
2700 20 20 20 20 20 20 20 20 20 20 6d 6f 64 75 6c 65 20 3d 20 74 68 69 73 2c 0d 0a 20 20 20 20 20 20 ..........module.=.this,........
2720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 69 73 74 61 6e 63 65 20 3d 20 68 69 74 ..................distance.=.hit
2740 44 61 74 61 2e 64 69 73 74 61 6e 63 65 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Data.distance,..................
2760 20 20 20 20 20 20 20 20 69 6e 64 65 78 20 3d 20 72 65 73 75 6c 74 41 70 70 65 6e 64 4c 69 73 74 ........index.=.resultAppendList
2780 2e 43 6f 75 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Count,.........................
27a0 20 64 65 70 74 68 20 3d 20 68 69 74 44 61 74 61 2e 67 72 61 70 68 69 63 2e 64 65 70 74 68 2c 0d .depth.=.hitData.graphic.depth,.
27c0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 6f 72 6c 64 ...........................world
27e0 50 6f 73 69 74 69 6f 6e 20 3d 20 68 69 74 44 61 74 61 2e 77 6f 72 6c 64 48 69 74 50 6f 73 69 74 Position.=.hitData.worldHitPosit
2800 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 63 ion,..........................sc
2820 72 65 65 6e 50 6f 73 69 74 69 6f 6e 20 3d 20 68 69 74 44 61 74 61 2e 73 63 72 65 65 6e 50 6f 73 reenPosition.=.hitData.screenPos
2840 69 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a ition,......................};..
2860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 41 70 70 65 6e 64 ....................resultAppend
2880 4c 69 73 74 2e 41 64 64 28 63 61 73 74 52 65 73 75 6c 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 List.Add(castResult);...........
28a0 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 .......}..............}.........
28c0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 49 6e .}............internal.static.In
28e0 6c 69 6e 65 64 41 72 72 61 79 3c 54 72 61 63 6b 65 64 44 65 76 69 63 65 52 61 79 63 61 73 74 65 linedArray<TrackedDeviceRaycaste
2900 72 3e 20 73 5f 49 6e 73 74 61 6e 63 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 r>.s_Instances;............stati
2920 63 20 72 65 61 64 6f 6e 6c 79 20 4c 69 73 74 3c 52 61 79 63 61 73 74 48 69 74 44 61 74 61 3e 20 c.readonly.List<RaycastHitData>.
2940 73 5f 53 6f 72 74 65 64 47 72 61 70 68 69 63 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 52 61 79 63 s_SortedGraphics.=.new.List<Rayc
2960 61 73 74 48 69 74 44 61 74 61 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 astHitData>();..........private.
2980 76 6f 69 64 20 53 6f 72 74 65 64 52 61 79 63 61 73 74 47 72 61 70 68 69 63 73 28 43 61 6e 76 61 void.SortedRaycastGraphics(Canva
29a0 73 20 63 61 6e 76 61 73 2c 20 52 61 79 20 72 61 79 2c 20 4c 69 73 74 3c 52 61 79 63 61 73 74 48 s.canvas,.Ray.ray,.List<RaycastH
29c0 69 74 44 61 74 61 3e 20 72 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 itData>.results)..........{.....
29e0 20 20 20 20 20 20 20 20 20 76 61 72 20 67 72 61 70 68 69 63 73 20 3d 20 47 72 61 70 68 69 63 52 .........var.graphics.=.GraphicR
2a00 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 76 61 73 28 63 61 6e egistry.GetGraphicsForCanvas(can
2a20 76 61 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 53 6f 72 74 65 64 47 72 61 vas);................s_SortedGra
2a40 70 68 69 63 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 phics.Clear();..............for.
2a60 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 67 72 61 70 68 69 63 73 2e 43 6f 75 6e 74 3b 20 (var.i.=.0;.i.<.graphics.Count;.
2a80 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ++i)..............{.............
2aa0 20 20 20 20 20 76 61 72 20 67 72 61 70 68 69 63 20 3d 20 67 72 61 70 68 69 63 73 5b 69 5d 3b 0d .....var.graphic.=.graphics[i];.
2ac0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 67 72 61 70 68 69 63 2e 64 ...................if.(graphic.d
2ae0 65 70 74 68 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 epth.==.-1).....................
2b00 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 56 65 .continue;....................Ve
2b20 63 74 6f 72 33 20 77 6f 72 6c 64 50 6f 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ctor3.worldPos;.................
2b40 20 66 6c 6f 61 74 20 64 69 73 74 61 6e 63 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .float.distance;................
2b60 20 20 69 66 20 28 52 61 79 49 6e 74 65 72 73 65 63 74 73 52 65 63 74 54 72 61 6e 73 66 6f 72 6d ..if.(RayIntersectsRectTransform
2b80 28 67 72 61 70 68 69 63 2e 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2c 20 72 61 79 2c 20 6f 75 74 (graphic.rectTransform,.ray,.out
2ba0 20 77 6f 72 6c 64 50 6f 73 2c 20 6f 75 74 20 64 69 73 74 61 6e 63 65 29 29 0d 0a 20 20 20 20 20 .worldPos,.out.distance)).......
2bc0 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........{....................
2be0 20 20 56 65 63 74 6f 72 32 20 73 63 72 65 65 6e 50 6f 73 20 3d 20 65 76 65 6e 74 43 61 6d 65 72 ..Vector2.screenPos.=.eventCamer
2c00 61 2e 57 6f 72 6c 64 54 6f 53 63 72 65 65 6e 50 6f 69 6e 74 28 77 6f 72 6c 64 50 6f 73 29 3b 0d a.WorldToScreenPoint(worldPos);.
2c20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6d 61 73 6b 2f 69 6d 61 .....................//.mask/ima
2c40 67 65 20 69 6e 74 65 72 73 65 63 74 69 6f 6e 20 2d 20 53 65 65 20 55 6e 69 74 79 20 64 6f 63 73 ge.intersection.-.See.Unity.docs
2c60 20 6f 6e 20 65 76 65 6e 74 41 6c 70 68 61 54 68 72 65 73 68 6f 6c 64 20 66 6f 72 20 77 68 65 6e .on.eventAlphaThreshold.for.when
2c80 20 74 68 69 73 20 64 6f 65 73 20 61 6e 79 74 68 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .this.does.anything.............
2ca0 20 20 20 20 20 20 20 20 20 69 66 20 28 67 72 61 70 68 69 63 2e 52 61 79 63 61 73 74 28 73 63 72 .........if.(graphic.Raycast(scr
2cc0 65 65 6e 50 6f 73 2c 20 65 76 65 6e 74 43 61 6d 65 72 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 eenPos,.eventCamera))...........
2ce0 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........{....................
2d00 20 20 20 20 20 20 73 5f 53 6f 72 74 65 64 47 72 61 70 68 69 63 73 2e 41 64 64 28 6e 65 77 20 52 ......s_SortedGraphics.Add(new.R
2d20 61 79 63 61 73 74 48 69 74 44 61 74 61 28 67 72 61 70 68 69 63 2c 20 77 6f 72 6c 64 50 6f 73 2c aycastHitData(graphic,.worldPos,
2d40 20 73 63 72 65 65 6e 50 6f 73 2c 20 64 69 73 74 61 6e 63 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 .screenPos,.distance));.........
2d60 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............}..................
2d80 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 }..............}................
2da0 73 5f 53 6f 72 74 65 64 47 72 61 70 68 69 63 73 2e 53 6f 72 74 28 28 67 31 2c 20 67 32 29 20 3d s_SortedGraphics.Sort((g1,.g2).=
2dc0 3e 20 67 32 2e 67 72 61 70 68 69 63 2e 64 65 70 74 68 2e 43 6f 6d 70 61 72 65 54 6f 28 67 31 2e >.g2.graphic.depth.CompareTo(g1.
2de0 67 72 61 70 68 69 63 2e 64 65 70 74 68 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 graphic.depth));................
2e00 72 65 73 75 6c 74 73 2e 41 64 64 52 61 6e 67 65 28 73 5f 53 6f 72 74 65 64 47 72 61 70 68 69 63 results.AddRange(s_SortedGraphic
2e20 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 s);..........}............privat
2e40 65 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 52 61 79 49 6e 74 65 72 73 65 63 74 73 52 65 63 74 54 e.static.bool.RayIntersectsRectT
2e60 72 61 6e 73 66 6f 72 6d 28 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 20 74 72 61 6e 73 66 6f 72 6d ransform(RectTransform.transform
2e80 2c 20 52 61 79 20 72 61 79 2c 20 6f 75 74 20 56 65 63 74 6f 72 33 20 77 6f 72 6c 64 50 6f 73 69 ,.Ray.ray,.out.Vector3.worldPosi
2ea0 74 69 6f 6e 2c 20 6f 75 74 20 66 6c 6f 61 74 20 64 69 73 74 61 6e 63 65 29 0d 0a 20 20 20 20 20 tion,.out.float.distance).......
2ec0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 72 6e 65 72 73 20 3d 20 ...{..............var.corners.=.
2ee0 6e 65 77 20 56 65 63 74 6f 72 33 5b 34 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 new.Vector3[4];..............tra
2f00 6e 73 66 6f 72 6d 2e 47 65 74 57 6f 72 6c 64 43 6f 72 6e 65 72 73 28 63 6f 72 6e 65 72 73 29 3b nsform.GetWorldCorners(corners);
2f20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6c 61 6e 65 20 3d 20 6e 65 77 20 50 6c ..............var.plane.=.new.Pl
2f40 61 6e 65 28 63 6f 72 6e 65 72 73 5b 30 5d 2c 20 63 6f 72 6e 65 72 73 5b 31 5d 2c 20 63 6f 72 6e ane(corners[0],.corners[1],.corn
2f60 65 72 73 5b 32 5d 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 65 6e ers[2]);................float.en
2f80 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6c 61 6e 65 2e 52 61 79 63 ter;..............if.(plane.Rayc
2fa0 61 73 74 28 72 61 79 2c 20 6f 75 74 20 65 6e 74 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ast(ray,.out.enter))............
2fc0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 74 65 72 73 65 ..{..................var.interse
2fe0 63 74 69 6f 6e 20 3d 20 72 61 79 2e 47 65 74 50 6f 69 6e 74 28 65 6e 74 65 72 29 3b 0d 0a 0d 0a ction.=.ray.GetPoint(enter);....
3000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 6f 74 74 6f 6d 45 64 67 65 20 3d ................var.bottomEdge.=
3020 20 63 6f 72 6e 65 72 73 5b 33 5d 20 2d 20 63 6f 72 6e 65 72 73 5b 30 5d 3b 0d 0a 20 20 20 20 20 .corners[3].-.corners[0];.......
3040 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 65 66 74 45 64 67 65 20 3d 20 63 6f 72 6e 65 72 ...........var.leftEdge.=.corner
3060 73 5b 31 5d 20 2d 20 63 6f 72 6e 65 72 73 5b 30 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 s[1].-.corners[0];..............
3080 20 20 20 20 76 61 72 20 62 6f 74 74 6f 6d 44 6f 74 20 3d 20 56 65 63 74 6f 72 33 2e 44 6f 74 28 ....var.bottomDot.=.Vector3.Dot(
30a0 69 6e 74 65 72 73 65 63 74 69 6f 6e 20 2d 20 63 6f 72 6e 65 72 73 5b 30 5d 2c 20 62 6f 74 74 6f intersection.-.corners[0],.botto
30c0 6d 45 64 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 65 66 mEdge);..................var.lef
30e0 74 44 6f 74 20 3d 20 56 65 63 74 6f 72 33 2e 44 6f 74 28 69 6e 74 65 72 73 65 63 74 69 6f 6e 20 tDot.=.Vector3.Dot(intersection.
3100 2d 20 63 6f 72 6e 65 72 73 5b 30 5d 2c 20 6c 65 66 74 45 64 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 -.corners[0],.leftEdge);........
3120 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 74 68 65 20 69 6e 74 65 72 73 65 63 74 69 ............//.If.the.intersecti
3140 6f 6e 20 69 73 20 72 69 67 68 74 20 6f 66 20 74 68 65 20 6c 65 66 74 20 65 64 67 65 20 61 6e 64 on.is.right.of.the.left.edge.and
3160 20 61 62 6f 76 65 20 74 68 65 20 62 6f 74 74 6f 6d 20 65 64 67 65 2e 0d 0a 20 20 20 20 20 20 20 .above.the.bottom.edge..........
3180 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 65 66 74 44 6f 74 20 3e 3d 20 30 20 26 26 20 62 6f 74 .........if.(leftDot.>=.0.&&.bot
31a0 74 6f 6d 44 6f 74 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d tomDot.>=.0)..................{.
31c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 6f 70 45 64 67 65 .....................var.topEdge
31e0 20 3d 20 63 6f 72 6e 65 72 73 5b 31 5d 20 2d 20 63 6f 72 6e 65 72 73 5b 32 5d 3b 0d 0a 20 20 20 .=.corners[1].-.corners[2];.....
3200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 69 67 68 74 45 64 67 65 20 3d .................var.rightEdge.=
3220 20 63 6f 72 6e 65 72 73 5b 33 5d 20 2d 20 63 6f 72 6e 65 72 73 5b 32 5d 3b 0d 0a 20 20 20 20 20 .corners[3].-.corners[2];.......
3240 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 6f 70 44 6f 74 20 3d 20 56 65 63 74 ...............var.topDot.=.Vect
3260 6f 72 33 2e 44 6f 74 28 69 6e 74 65 72 73 65 63 74 69 6f 6e 20 2d 20 63 6f 72 6e 65 72 73 5b 32 or3.Dot(intersection.-.corners[2
3280 5d 2c 20 74 6f 70 45 64 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ],.topEdge);....................
32a0 20 20 76 61 72 20 72 69 67 68 74 44 6f 74 20 3d 20 56 65 63 74 6f 72 33 2e 44 6f 74 28 69 6e 74 ..var.rightDot.=.Vector3.Dot(int
32c0 65 72 73 65 63 74 69 6f 6e 20 2d 20 63 6f 72 6e 65 72 73 5b 32 5d 2c 20 72 69 67 68 74 45 64 67 ersection.-.corners[2],.rightEdg
32e0 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 49 66 20 e);........................//If.
3300 74 68 65 20 69 6e 74 65 72 73 65 63 74 69 6f 6e 20 69 73 20 6c 65 66 74 20 6f 66 20 74 68 65 20 the.intersection.is.left.of.the.
3320 72 69 67 68 74 20 65 64 67 65 2c 20 61 6e 64 20 62 65 6c 6f 77 20 74 68 65 20 74 6f 70 20 65 64 right.edge,.and.below.the.top.ed
3340 67 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 6f 70 44 ge......................if.(topD
3360 6f 74 20 3e 3d 20 30 20 26 26 20 72 69 67 68 74 44 6f 74 20 3e 3d 20 30 29 0d 0a 20 20 20 20 20 ot.>=.0.&&.rightDot.>=.0).......
3380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
33a0 20 20 20 20 20 20 20 20 20 20 77 6f 72 6c 64 50 6f 73 69 74 69 6f 6e 20 3d 20 69 6e 74 65 72 73 ..........worldPosition.=.inters
33c0 65 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ection;.........................
33e0 20 64 69 73 74 61 6e 63 65 20 3d 20 65 6e 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .distance.=.enter;..............
3400 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 ............return.true;........
3420 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
3440 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 .}..............}..............w
3460 6f 72 6c 64 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0d 0a 20 20 orldPosition.=.Vector3.zero;....
3480 20 20 20 20 20 20 20 20 20 20 64 69 73 74 61 6e 63 65 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 ..........distance.=.0;.........
34a0 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d .....return.false;..........}...
34c0 0a 20 20 20 20 20 20 20 20 5b 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 .........[FormerlySerializedAs("
34e0 69 67 6e 6f 72 65 52 65 76 65 72 73 65 64 47 72 61 70 68 69 63 73 22 29 5d 0d 0a 20 20 20 20 20 ignoreReversedGraphics")].......
3500 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 ...[SerializeField]..........pri
3520 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 49 67 6e 6f 72 65 52 65 76 65 72 73 65 64 47 72 61 70 68 69 vate.bool.m_IgnoreReversedGraphi
3540 63 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 7a cs;............[FormerlySerializ
3560 65 64 41 73 28 22 63 68 65 63 6b 46 6f 72 32 44 4f 63 63 6c 75 73 69 6f 6e 22 29 5d 0d 0a 20 20 edAs("checkFor2DOcclusion")]....
3580 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0d 0a 20 20 20 20 20 20 20 20 ......[SerializeField]..........
35a0 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 43 68 65 63 6b 46 6f 72 32 44 4f 63 63 6c 75 73 69 private.bool.m_CheckFor2DOcclusi
35c0 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 7a on;............[FormerlySerializ
35e0 65 64 41 73 28 22 63 68 65 63 6b 46 6f 72 33 44 4f 63 63 6c 75 73 69 6f 6e 22 29 5d 0d 0a 20 20 edAs("checkFor3DOcclusion")]....
3600 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0d 0a 20 20 20 20 20 20 20 20 ......[SerializeField]..........
3620 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 43 68 65 63 6b 46 6f 72 33 44 4f 63 63 6c 75 73 69 private.bool.m_CheckFor3DOcclusi
3640 6f 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 54 6f 6f 6c 74 69 70 28 22 4d 61 78 69 6d 75 6d on;............[Tooltip("Maximum
3660 20 64 69 73 74 61 6e 63 65 20 28 69 6e 20 33 44 20 77 6f 72 6c 64 20 73 70 61 63 65 29 20 74 68 .distance.(in.3D.world.space).th
3680 61 74 20 72 61 79 73 20 61 72 65 20 74 72 61 63 65 64 20 74 6f 20 66 69 6e 64 20 61 20 68 69 74 at.rays.are.traced.to.find.a.hit
36a0 2e 22 29 5d 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 70 .")]..........[SerializeField].p
36c0 72 69 76 61 74 65 20 66 6c 6f 61 74 20 6d 5f 4d 61 78 44 69 73 74 61 6e 63 65 20 3d 20 31 30 30 rivate.float.m_MaxDistance.=.100
36e0 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0d 0a 0;............[SerializeField]..
3700 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4c 61 79 65 72 4d 61 73 6b 20 6d 5f 42 6c 6f 63 ........private.LayerMask.m_Bloc
3720 6b 69 6e 67 4d 61 73 6b 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 5b 4e 6f 6e 53 65 72 69 61 6c 69 kingMask;............[NonSeriali
3740 7a 65 64 5d 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 43 61 6e 76 61 73 20 6d 5f 43 zed]..........private.Canvas.m_C
3760 61 6e 76 61 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 43 61 6e 76 61 73 anvas;............private.Canvas
3780 20 63 61 6e 76 61 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .canvas..........{..............
37a0 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 get..............{..............
37c0 20 20 20 20 69 66 20 28 6d 5f 43 61 6e 76 61 73 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 ....if.(m_Canvas.!=.null).......
37e0 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 61 6e 76 61 73 3b 0d ...............return.m_Canvas;.
3800 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 6e 76 61 73 20 3d 20 47 65 ...................m_Canvas.=.Ge
3820 74 43 6f 6d 70 6f 6e 65 6e 74 3c 43 61 6e 76 61 73 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 tComponent<Canvas>();...........
3840 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 43 61 6e 76 61 73 3b 0d 0a 20 20 20 20 20 20 20 .......return.m_Canvas;.........
3860 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e .....}..........}......}..}..#en
3880 64 69 66 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 dif.............................
38a0 54 72 61 63 6b 65 64 44 65 76 69 63 65 52 61 79 63 61 73 74 65 72 00 00 1a 00 00 00 55 6e 69 74 TrackedDeviceRaycaster......Unit
38c0 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 49 00 00 yEngine.InputSystem.UI..