summaryrefslogtreecommitdiff
path: root/Library/Artifacts/b7/b78411ac3f447b304f2801865df3d8c6
blob: 105967af15f2e38b50259d0041413d0d5267d6fc (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 40 3c 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......@<............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 dc 2f 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ./..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 16 00 00 00 47 65 6e 65 72 69 63 49 6e 70 75 74 46 69 65 6c 64 54 65 73 ............GenericInputFieldTes
10a0 74 73 00 00 4e 2f 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 53 79 73 74 ts..N/..using.System;.using.Syst
10c0 65 6d 2e 4c 69 6e 71 3b 0a 75 73 69 6e 67 20 4e 55 6e 69 74 2e 46 72 61 6d 65 77 6f 72 6b 3b 0a em.Linq;.using.NUnit.Framework;.
10e0 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e using.UnityEngine;.using.UnityEn
1100 67 69 6e 65 2e 45 76 65 6e 74 53 79 73 74 65 6d 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e gine.EventSystems;.using.UnityEn
1120 67 69 6e 65 2e 54 65 73 74 54 6f 6f 6c 73 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c gine.TestTools;.using.System.Col
1140 6c 65 63 74 69 6f 6e 73 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0a 75 73 69 6e 67 lections;.using.System.IO;.using
1160 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e .UnityEditor;.using.UnityEngine.
1180 55 49 3b 0a 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 0a 6e 61 UI;.using.System.Reflection;..na
11a0 6d 65 73 70 61 63 65 20 49 6e 70 75 74 66 69 65 6c 64 54 65 73 74 73 0a 7b 0a 20 20 20 20 70 75 mespace.InputfieldTests.{.....pu
11c0 62 6c 69 63 20 63 6c 61 73 73 20 47 65 6e 65 72 69 63 49 6e 70 75 74 46 69 65 6c 64 54 65 73 74 blic.class.GenericInputFieldTest
11e0 73 20 3a 20 42 61 73 65 49 6e 70 75 74 46 69 65 6c 64 54 65 73 74 73 2c 20 49 50 72 65 62 75 69 s.:.BaseInputFieldTests,.IPrebui
1200 6c 64 53 65 74 75 70 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 ldSetup.....{.........protected.
1220 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 50 72 65 66 61 62 50 61 74 68 20 3d 20 22 41 73 73 65 const.string.kPrefabPath.=."Asse
1240 74 73 2f 52 65 73 6f 75 72 63 65 73 2f 47 65 6e 65 72 69 63 49 6e 70 75 74 46 69 65 6c 64 50 72 ts/Resources/GenericInputFieldPr
1260 65 66 61 62 2e 70 72 65 66 61 62 22 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f efab.prefab";..........public.vo
1280 69 64 20 53 65 74 75 70 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 id.Setup().........{.#if.UNITY_E
12a0 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 72 65 61 74 65 49 6e 70 75 74 46 69 65 DITOR.............CreateInputFie
12c0 6c 64 41 73 73 65 74 28 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 ldAsset(kPrefabPath);.#endif....
12e0 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 20 20 20 20 20 20 .....}..........[SetUp].........
1300 70 75 62 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 54 65 73 74 53 65 74 75 70 28 29 0a public.virtual.void.TestSetup().
1320 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 72 65 66 61 62 52 6f ........{.............m_PrefabRo
1340 6f 74 20 3d 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 2e 49 6e 73 74 61 6e 74 69 ot.=.UnityEngine.Object.Instanti
1360 61 74 65 28 52 65 73 6f 75 72 63 65 73 2e 4c 6f 61 64 28 22 47 65 6e 65 72 69 63 49 6e 70 75 74 ate(Resources.Load("GenericInput
1380 46 69 65 6c 64 50 72 65 66 61 62 22 29 29 20 61 73 20 47 61 6d 65 4f 62 6a 65 63 74 3b 0a 0a 20 FieldPrefab")).as.GameObject;...
13a0 20 20 20 20 20 20 20 20 20 20 20 46 69 65 6c 64 49 6e 66 6f 20 69 6e 70 75 74 4d 6f 64 75 6c 65 ...........FieldInfo.inputModule
13c0 20 3d 20 74 79 70 65 6f 66 28 45 76 65 6e 74 53 79 73 74 65 6d 29 2e 47 65 74 46 69 65 6c 64 28 .=.typeof(EventSystem).GetField(
13e0 22 6d 5f 43 75 72 72 65 6e 74 49 6e 70 75 74 4d 6f 64 75 6c 65 22 2c 20 42 69 6e 64 69 6e 67 46 "m_CurrentInputModule",.BindingF
1400 6c 61 67 73 2e 4e 6f 6e 50 75 62 6c 69 63 20 7c 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 49 6e lags.NonPublic.|.BindingFlags.In
1420 73 74 61 6e 63 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 4d 6f 64 75 6c 65 stance);.............inputModule
1440 2e 53 65 74 56 61 6c 75 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e .SetValue(m_PrefabRoot.GetCompon
1460 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 45 76 65 6e 74 53 79 73 74 65 6d 3e 28 29 2c 20 6d 5f entInChildren<EventSystem>(),.m_
1480 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 PrefabRoot.GetComponentInChildre
14a0 6e 3c 46 61 6b 65 49 6e 70 75 74 4d 6f 64 75 6c 65 3e 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d n<FakeInputModule>());.........}
14c0 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 20 70 75 62 ..........[TearDown].........pub
14e0 6c 69 63 20 76 69 72 74 75 61 6c 20 76 6f 69 64 20 54 65 61 72 44 6f 77 6e 28 29 0a 20 20 20 20 lic.virtual.void.TearDown().....
1500 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 55 70 64 61 74 65 54 72 61 63 ....{.............FontUpdateTrac
1520 6b 65 72 2e 55 6e 74 72 61 63 6b 54 65 78 74 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 ker.UntrackText(m_PrefabRoot.Get
1540 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 54 65 78 74 3e 28 29 29 3b 0a 20 20 ComponentInChildren<Text>());...
1560 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 49 6d 6d 65 ..........GameObject.DestroyImme
1580 64 69 61 74 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a diate(m_PrefabRoot);.........}..
15a0 20 20 20 20 20 20 20 20 5b 4f 6e 65 54 69 6d 65 54 65 61 72 44 6f 77 6e 5d 0a 20 20 20 20 20 20 ........[OneTimeTearDown].......
15c0 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 65 74 69 6d 65 54 65 61 72 44 6f 77 6e 28 29 0a ..public.void.OnetimeTearDown().
15e0 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 ........{.#if.UNITY_EDITOR......
1600 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 44 65 6c 65 74 65 41 73 73 65 74 .......AssetDatabase.DeleteAsset
1620 28 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 7d 0a (kPrefabPath);.#endif.........}.
1640 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 20 20 70 75 62 .........[UnityTest].........pub
1660 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 43 61 6e 6e 6f 74 46 6f 63 75 73 49 66 4e 6f 74 lic.IEnumerator.CannotFocusIfNot
1680 54 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 TextComponent().........{.......
16a0 20 20 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f ......InputField.inputField.=.m_
16c0 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 PrefabRoot.GetComponentInChildre
16e0 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 n<InputField>();.............Bas
1700 65 45 76 65 6e 74 44 61 74 61 20 65 76 65 6e 74 44 61 74 61 20 3d 20 6e 65 77 20 42 61 73 65 45 eEventData.eventData.=.new.BaseE
1720 76 65 6e 74 44 61 74 61 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 ventData(m_PrefabRoot.GetCompone
1740 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 45 76 65 6e 74 53 79 73 74 65 6d 3e 28 29 29 3b 0a 20 20 ntInChildren<EventSystem>());...
1760 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 43 6f 6d 70 6f 6e 65 ..........inputField.textCompone
1780 6e 74 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 nt.=.null;..............inputFie
17a0 6c 64 2e 4f 6e 53 65 6c 65 63 74 28 65 76 65 6e 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 ld.OnSelect(eventData);.........
17c0 20 20 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 ....yield.return.null;..........
17e0 20 20 20 20 41 73 73 65 72 74 2e 46 61 6c 73 65 28 69 6e 70 75 74 46 69 65 6c 64 2e 69 73 46 6f ....Assert.False(inputField.isFo
1800 63 75 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 55 6e 69 74 cused);.........}..........[Unit
1820 79 54 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 yTest].........public.IEnumerato
1840 72 20 43 61 6e 6e 6f 74 46 6f 63 75 73 49 66 4e 75 6c 6c 46 6f 6e 74 28 29 0a 20 20 20 20 20 20 r.CannotFocusIfNullFont().......
1860 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 ..{.............InputField.input
1880 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e Field.=.m_PrefabRoot.GetComponen
18a0 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 tInChildren<InputField>();......
18c0 20 20 20 20 20 20 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 20 65 76 65 6e 74 44 61 74 61 20 3d .......BaseEventData.eventData.=
18e0 20 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e .new.BaseEventData(m_PrefabRoot.
1900 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 45 76 65 6e 74 53 79 73 74 GetComponentInChildren<EventSyst
1920 65 6d 3e 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 em>());.............inputField.t
1940 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 2e 66 6f 6e 74 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 extComponent.font.=.null;.......
1960 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 4f 6e 53 65 6c 65 63 74 28 65 76 65 6e 74 .......inputField.OnSelect(event
1980 44 61 74 61 29 3b 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 20 Data);.............yield.return.
19a0 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 46 61 6c 73 65 28 null;..............Assert.False(
19c0 69 6e 70 75 74 46 69 65 6c 64 2e 69 73 46 6f 63 75 73 65 64 29 3b 0a 20 20 20 20 20 20 20 20 7d inputField.isFocused);.........}
19e0 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 20 20 70 75 ..........[UnityTest].........pu
1a00 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 43 61 6e 6e 6f 74 46 6f 63 75 73 49 66 4e 6f blic.IEnumerator.CannotFocusIfNo
1a20 74 41 63 74 69 76 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 tActive().........{.............
1a40 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 InputField.inputField.=.m_Prefab
1a60 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 Root.GetComponentInChildren<Inpu
1a80 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 65 45 76 65 6e 74 tField>();.............BaseEvent
1aa0 44 61 74 61 20 65 76 65 6e 74 44 61 74 61 20 3d 20 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 Data.eventData.=.new.BaseEventDa
1ac0 74 61 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 ta(m_PrefabRoot.GetComponentInCh
1ae0 69 6c 64 72 65 6e 3c 45 76 65 6e 74 53 79 73 74 65 6d 3e 28 29 29 3b 0a 20 20 20 20 20 20 20 20 ildren<EventSystem>());.........
1b00 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 0a ....inputField.enabled.=.false;.
1b20 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 4f 6e 53 65 6c 65 63 74 .............inputField.OnSelect
1b40 28 65 76 65 6e 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 (eventData);.............yield.r
1b60 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e eturn.null;..............Assert.
1b80 46 61 6c 73 65 28 69 6e 70 75 74 46 69 65 6c 64 2e 69 73 46 6f 63 75 73 65 64 29 3b 0a 20 20 20 False(inputField.isFocused);....
1ba0 20 20 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 .....}..........[UnityTest].....
1bc0 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 43 61 6e 6e 6f 74 46 6f 63 ....public.IEnumerator.CannotFoc
1be0 75 73 57 69 74 68 6f 75 74 45 76 65 6e 74 53 79 73 74 65 6d 28 29 0a 20 20 20 20 20 20 20 20 7b usWithoutEventSystem().........{
1c00 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 .............InputField.inputFie
1c20 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e ld.=.m_PrefabRoot.GetComponentIn
1c40 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 Children<InputField>();.........
1c60 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 49 6d ....UnityEngine.Object.DestroyIm
1c80 6d 65 64 69 61 74 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e mediate(m_PrefabRoot.GetComponen
1ca0 74 49 6e 43 68 69 6c 64 72 65 6e 3c 46 61 6b 65 49 6e 70 75 74 4d 6f 64 75 6c 65 3e 28 29 29 3b tInChildren<FakeInputModule>());
1cc0 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 20 6e 75 6c 6c 3b ..............yield.return.null;
1ce0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a 65 63 74 ..............UnityEngine.Object
1d00 2e 44 65 73 74 72 6f 79 49 6d 6d 65 64 69 61 74 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 .DestroyImmediate(m_PrefabRoot.G
1d20 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 45 76 65 6e 74 53 79 73 74 65 etComponentInChildren<EventSyste
1d40 6d 3e 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 m>());.............BaseEventData
1d60 20 65 76 65 6e 74 44 61 74 61 20 3d 20 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 6e .eventData.=.new.BaseEventData(n
1d80 75 6c 6c 29 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 20 ull);..............yield.return.
1da0 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 4f 6e null;..............inputField.On
1dc0 53 65 6c 65 63 74 28 65 76 65 6e 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 Select(eventData);.............y
1de0 69 65 6c 64 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 ield.return.null;..............A
1e00 73 73 65 72 74 2e 46 61 6c 73 65 28 69 6e 70 75 74 46 69 65 6c 64 2e 69 73 46 6f 63 75 73 65 64 ssert.False(inputField.isFocused
1e20 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]....
1e40 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 46 6f 63 75 73 65 73 4f 6e 53 65 6c 65 63 74 .....public.void.FocusesOnSelect
1e60 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 49 6e 70 75 74 46 69 ().........{.............InputFi
1e80 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 eld.inputField.=.m_PrefabRoot.Ge
1ea0 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e tComponentInChildren<InputField>
1ec0 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 20 65 76 ();.............BaseEventData.ev
1ee0 65 6e 74 44 61 74 61 20 3d 20 6e 65 77 20 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 6d 5f 50 72 entData.=.new.BaseEventData(m_Pr
1f00 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c efabRoot.GetComponentInChildren<
1f20 45 76 65 6e 74 53 79 73 74 65 6d 3e 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 EventSystem>());.............inp
1f40 75 74 46 69 65 6c 64 2e 4f 6e 53 65 6c 65 63 74 28 65 76 65 6e 74 44 61 74 61 29 3b 0a 0a 20 20 utField.OnSelect(eventData);....
1f60 20 20 20 20 20 20 20 20 20 20 4d 65 74 68 6f 64 49 6e 66 6f 20 6c 61 74 65 55 70 64 61 74 65 20 ..........MethodInfo.lateUpdate.
1f80 3d 20 74 79 70 65 6f 66 28 49 6e 70 75 74 46 69 65 6c 64 29 2e 47 65 74 4d 65 74 68 6f 64 28 22 =.typeof(InputField).GetMethod("
1fa0 4c 61 74 65 55 70 64 61 74 65 22 2c 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 4e 6f 6e 50 75 62 LateUpdate",.BindingFlags.NonPub
1fc0 6c 69 63 20 7c 20 42 69 6e 64 69 6e 67 46 6c 61 67 73 2e 49 6e 73 74 61 6e 63 65 29 3b 0a 20 20 lic.|.BindingFlags.Instance);...
1fe0 20 20 20 20 20 20 20 20 20 20 6c 61 74 65 55 70 64 61 74 65 2e 49 6e 76 6f 6b 65 28 69 6e 70 75 ..........lateUpdate.Invoke(inpu
2000 74 46 69 65 6c 64 2c 20 6e 75 6c 6c 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 tField,.null);..............Asse
2020 72 74 2e 54 72 75 65 28 69 6e 70 75 74 46 69 65 6c 64 2e 69 73 46 6f 63 75 73 65 64 29 3b 0a 20 rt.True(inputField.isFocused);..
2040 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 .......}..........[Test]........
2060 20 70 75 62 6c 69 63 20 76 6f 69 64 20 49 6e 70 75 74 46 69 65 6c 64 53 65 74 54 65 78 74 57 69 .public.void.InputFieldSetTextWi
2080 74 68 6f 75 74 4e 6f 74 69 66 79 57 69 6c 6c 4e 6f 74 4e 6f 74 69 66 79 28 29 0a 20 20 20 20 20 thoutNotifyWillNotNotify()......
20a0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 20 3d 20 ...{.............InputField.i.=.
20c0 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 m_PrefabRoot.GetComponentInChild
20e0 72 65 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ren<InputField>();.............i
2100 2e 74 65 78 74 20 3d 20 22 48 65 6c 6c 6f 22 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f .text.=."Hello";..............bo
2120 6f 6c 20 63 61 6c 6c 65 64 4f 6e 56 61 6c 75 65 43 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b ol.calledOnValueChanged.=.false;
2140 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 2e 6f 6e 56 61 6c 75 65 43 68 61 6e 67 65 64 2e 41 ..............i.onValueChanged.A
2160 64 64 4c 69 73 74 65 6e 65 72 28 73 20 3d 3e 20 7b 20 63 61 6c 6c 65 64 4f 6e 56 61 6c 75 65 43 ddListener(s.=>.{.calledOnValueC
2180 68 61 6e 67 65 64 20 3d 20 74 72 75 65 3b 20 7d 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 hanged.=.true;.});..............
21a0 69 2e 53 65 74 54 65 78 74 57 69 74 68 6f 75 74 4e 6f 74 69 66 79 28 22 47 6f 6f 64 62 79 65 22 i.SetTextWithoutNotify("Goodbye"
21c0 29 3b 0a 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 69 2e );..............Assert.IsTrue(i.
21e0 74 65 78 74 20 3d 3d 20 22 47 6f 6f 64 62 79 65 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 text.==."Goodbye");.............
2200 41 73 73 65 72 74 2e 49 73 46 61 6c 73 65 28 63 61 6c 6c 65 64 4f 6e 56 61 6c 75 65 43 68 61 6e Assert.IsFalse(calledOnValueChan
2220 67 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 ged);.........}..........[Test].
2240 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 43 6f 6e 74 65 6e 74 54 79 70 65 53 ........public.void.ContentTypeS
2260 65 74 73 56 61 6c 75 65 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 etsValues().........{...........
2280 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 ..InputField.inputField.=.m_Pref
22a0 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e abRoot.GetComponentInChildren<In
22c0 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 putField>();.............inputFi
22e0 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e eld.contentType.=.InputField.Con
2300 74 65 6e 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 tentType.Standard;.............A
2320 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 ssert.AreEqual(InputField.InputT
2340 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 ype.Standard,.inputField.inputTy
2360 70 65 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 pe);.............Assert.AreEqual
2380 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 44 65 66 61 75 6c 74 (TouchScreenKeyboardType.Default
23a0 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 ,.inputField.keyboardType);.....
23c0 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 ........Assert.AreEqual(InputFie
23e0 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 6f 6e 65 2c 20 69 6e 70 ld.CharacterValidation.None,.inp
2400 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 utField.characterValidation);...
2420 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 ...........inputField.contentTyp
2440 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 41 75 74 6f 63 e.=.InputField.ContentType.Autoc
2460 6f 72 72 65 63 74 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 orrected;.............Assert.Are
2480 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 41 75 74 6f 43 Equal(InputField.InputType.AutoC
24a0 6f 72 72 65 63 74 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 orrect,.inputField.inputType);..
24c0 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 54 6f 75 63 68 ...........Assert.AreEqual(Touch
24e0 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 44 65 66 61 75 6c 74 2c 20 69 6e 70 75 ScreenKeyboardType.Default,.inpu
2500 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 tField.keyboardType);...........
2520 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 ..Assert.AreEqual(InputField.Cha
2540 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 6f 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c racterValidation.None,.inputFiel
2560 64 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 d.characterValidation);.........
2580 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e .....inputField.contentType.=.In
25a0 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 49 6e 74 65 67 65 72 4e 75 6d 62 putField.ContentType.IntegerNumb
25c0 65 72 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 er;.............Assert.AreEqual(
25e0 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e 65 54 79 70 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c 20 InputField.LineType.SingleLine,.
2600 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 inputField.lineType);...........
2620 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 ..Assert.AreEqual(InputField.Inp
2640 75 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 utType.Standard,.inputField.inpu
2660 74 54 79 70 65 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 tType);.............Assert.AreEq
2680 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 4e 75 6d 62 ual(TouchScreenKeyboardType.Numb
26a0 65 72 50 61 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b erPad,.inputField.keyboardType);
26c0 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 49 6e 70 .............Assert.AreEqual(Inp
26e0 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 49 6e 74 65 utField.CharacterValidation.Inte
2700 67 65 72 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 ger,.inputField.characterValidat
2720 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f ion);..............inputField.co
2740 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 ntentType.=.InputField.ContentTy
2760 70 65 2e 44 65 63 69 6d 61 6c 4e 75 6d 62 65 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 pe.DecimalNumber;.............As
2780 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e 65 54 79 70 sert.AreEqual(InputField.LineTyp
27a0 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 e.SingleLine,.inputField.lineTyp
27c0 65 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 e);.............Assert.AreEqual(
27e0 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 69 InputField.InputType.Standard,.i
2800 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 nputField.inputType);...........
2820 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 ..Assert.AreEqual(TouchScreenKey
2840 62 6f 61 72 64 54 79 70 65 2e 4e 75 6d 62 65 72 73 41 6e 64 50 75 6e 63 74 75 61 74 69 6f 6e 2c boardType.NumbersAndPunctuation,
2860 20 69 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 .inputField.keyboardType);......
2880 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c .......Assert.AreEqual(InputFiel
28a0 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 44 65 63 69 6d 61 6c 2c 20 69 d.CharacterValidation.Decimal,.i
28c0 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a nputField.characterValidation);.
28e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 .............inputField.contentT
2900 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 41 6c 70 ype.=.InputField.ContentType.Alp
2920 68 61 6e 75 6d 65 72 69 63 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 hanumeric;.............Assert.Ar
2940 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e 65 54 79 70 65 2e 53 69 6e 67 6c eEqual(InputField.LineType.Singl
2960 65 4c 69 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 65 29 3b 0a 20 20 20 eLine,.inputField.lineType);....
2980 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 49 6e 70 75 74 46 69 .........Assert.AreEqual(InputFi
29a0 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 69 6e 70 75 74 46 69 65 eld.InputType.Standard,.inputFie
29c0 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 ld.inputType);.............Asser
29e0 74 2e 41 72 65 45 71 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 t.AreEqual(TouchScreenKeyboardTy
2a00 70 65 2e 41 53 43 49 49 43 61 70 61 62 6c 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 pe.ASCIICapable,.inputField.keyb
2a20 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 oardType);.............Assert.Ar
2a40 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 eEqual(InputField.CharacterValid
2a60 61 74 69 6f 6e 2e 41 6c 70 68 61 6e 75 6d 65 72 69 63 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 ation.Alphanumeric,.inputField.c
2a80 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 haracterValidation);............
2aa0 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 ..inputField.contentType.=.Input
2ac0 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 4e 61 6d 65 3b 0a 20 20 20 20 20 20 20 20 Field.ContentType.Name;.........
2ae0 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c ....Assert.AreEqual(InputField.L
2b00 69 6e 65 54 79 70 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c ineType.SingleLine,.inputField.l
2b20 69 6e 65 54 79 70 65 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 ineType);.............Assert.Are
2b40 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 53 74 61 6e 64 Equal(InputField.InputType.Stand
2b60 61 72 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 20 20 20 ard,.inputField.inputType);.....
2b80 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 54 6f 75 63 68 53 63 72 ........Assert.AreEqual(TouchScr
2ba0 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 4e 61 6d 65 50 68 6f 6e 65 50 61 64 2c 20 69 6e eenKeyboardType.NamePhonePad,.in
2bc0 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 putField.keyboardType);.........
2be0 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 ....Assert.AreEqual(InputField.C
2c00 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 61 6d 65 2c 20 69 6e 70 75 74 46 69 haracterValidation.Name,.inputFi
2c20 65 6c 64 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 eld.characterValidation);.......
2c40 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 .......inputField.contentType.=.
2c60 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 45 6d 61 69 6c 41 64 64 72 InputField.ContentType.EmailAddr
2c80 65 73 73 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 ess;.............Assert.AreEqual
2ca0 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e 65 54 79 70 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c (InputField.LineType.SingleLine,
2cc0 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 .inputField.lineType);..........
2ce0 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e ...Assert.AreEqual(InputField.In
2d00 70 75 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 putType.Standard,.inputField.inp
2d20 75 74 54 79 70 65 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 utType);.............Assert.AreE
2d40 71 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 45 6d 61 qual(TouchScreenKeyboardType.Ema
2d60 69 6c 41 64 64 72 65 73 73 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 ilAddress,.inputField.keyboardTy
2d80 70 65 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 pe);.............Assert.AreEqual
2da0 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e (InputField.CharacterValidation.
2dc0 45 6d 61 69 6c 41 64 64 72 65 73 73 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 EmailAddress,.inputField.charact
2de0 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 erValidation);..............inpu
2e00 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e tField.contentType.=.InputField.
2e20 43 6f 6e 74 65 6e 74 54 79 70 65 2e 50 61 73 73 77 6f 72 64 3b 0a 20 20 20 20 20 20 20 20 20 20 ContentType.Password;...........
2e40 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e ..Assert.AreEqual(InputField.Lin
2e60 65 54 79 70 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e eType.SingleLine,.inputField.lin
2e80 65 54 79 70 65 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 eType);.............Assert.AreEq
2ea0 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 50 61 73 73 77 6f 72 ual(InputField.InputType.Passwor
2ec0 64 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 d,.inputField.inputType);.......
2ee0 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 ......Assert.AreEqual(TouchScree
2f00 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 44 65 66 61 75 6c 74 2c 20 69 6e 70 75 74 46 69 65 6c nKeyboardType.Default,.inputFiel
2f20 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 d.keyboardType);.............Ass
2f40 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 ert.AreEqual(InputField.Characte
2f60 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 6f 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 rValidation.None,.inputField.cha
2f80 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 racterValidation);..............
2fa0 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 inputField.contentType.=.InputFi
2fc0 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 50 69 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 eld.ContentType.Pin;............
2fe0 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e 65 .Assert.AreEqual(InputField.Line
3000 54 79 70 65 2e 53 69 6e 67 6c 65 4c 69 6e 65 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 Type.SingleLine,.inputField.line
3020 54 79 70 65 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 Type);.............Assert.AreEqu
3040 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 65 2e 50 61 73 73 77 6f 72 64 al(InputField.InputType.Password
3060 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 69 6e 70 75 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 ,.inputField.inputType);........
3080 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 54 6f 75 63 68 53 63 72 65 65 6e .....Assert.AreEqual(TouchScreen
30a0 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 4e 75 6d 62 65 72 50 61 64 2c 20 69 6e 70 75 74 46 69 65 KeyboardType.NumberPad,.inputFie
30c0 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 ld.keyboardType);.............As
30e0 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 sert.AreEqual(InputField.Charact
3100 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 49 6e 74 65 67 65 72 2c 20 69 6e 70 75 74 46 69 65 6c 64 erValidation.Integer,.inputField
3120 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 7d .characterValidation);.........}
3140 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ..........[Test].........public.
3160 76 6f 69 64 20 53 65 74 74 69 6e 67 4c 69 6e 65 54 79 70 65 44 6f 65 73 4e 6f 74 43 68 61 6e 67 void.SettingLineTypeDoesNotChang
3180 65 73 43 6f 6e 74 65 6e 74 54 79 70 65 54 6f 43 75 73 74 6f 6d 28 5b 56 61 6c 75 65 73 28 49 6e esContentTypeToCustom([Values(In
31a0 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 53 74 61 6e 64 61 72 64 2c 20 49 putField.ContentType.Standard,.I
31c0 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 41 75 74 6f 63 6f 72 72 65 63 nputField.ContentType.Autocorrec
31e0 74 65 64 29 5d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 20 74 79 70 ted)].InputField.ContentType.typ
3200 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 70 75 74 46 69 e).........{.............InputFi
3220 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 2e 47 65 eld.inputField.=.m_PrefabRoot.Ge
3240 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 6c 64 3e tComponentInChildren<InputField>
3260 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 ();.............inputField.conte
3280 6e 74 54 79 70 65 20 3d 20 74 79 70 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 ntType.=.type;..............inpu
32a0 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 4c 69 6e tField.lineType.=.InputField.Lin
32c0 65 54 79 70 65 2e 4d 75 6c 74 69 4c 69 6e 65 4e 65 77 6c 69 6e 65 3b 0a 0a 20 20 20 20 20 20 20 eType.MultiLineNewline;.........
32e0 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 74 79 70 65 2c 20 69 6e 70 75 74 .....Assert.AreEqual(type,.input
3300 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 Field.contentType);.........}...
3320 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 6f 69 .......[Test].........public.voi
3340 64 20 53 65 74 74 69 6e 67 4c 69 6e 65 54 79 70 65 43 68 61 6e 67 65 73 43 6f 6e 74 65 6e 74 54 d.SettingLineTypeChangesContentT
3360 79 70 65 54 6f 43 75 73 74 6f 6d 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 ypeToCustom().........{.........
3380 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 ....InputField.inputField.=.m_Pr
33a0 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c efabRoot.GetComponentInChildren<
33c0 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 InputField>();.............input
33e0 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 Field.contentType.=.InputField.C
3400 6f 6e 74 65 6e 74 54 79 70 65 2e 4e 61 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e ontentType.Name;..............in
3420 70 75 74 46 69 65 6c 64 2e 6c 69 6e 65 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 4c putField.lineType.=.InputField.L
3440 69 6e 65 54 79 70 65 2e 4d 75 6c 74 69 4c 69 6e 65 4e 65 77 6c 69 6e 65 3b 0a 0a 20 20 20 20 20 ineType.MultiLineNewline;.......
3460 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c .......Assert.AreEqual(InputFiel
3480 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 43 75 73 74 6f 6d 2c 20 69 6e 70 75 74 46 69 65 6c 64 d.ContentType.Custom,.inputField
34a0 2e 63 6f 6e 74 65 6e 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 .contentType);.........}........
34c0 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
34e0 74 69 6e 67 49 6e 70 75 74 43 68 61 6e 67 65 73 43 6f 6e 74 65 6e 74 54 79 70 65 54 6f 43 75 73 tingInputChangesContentTypeToCus
3500 74 6f 6d 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 49 6e 70 75 tom().........{.............Inpu
3520 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 tField.inputField.=.m_PrefabRoot
3540 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 .GetComponentInChildren<InputFie
3560 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f ld>();.............inputField.co
3580 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 ntentType.=.InputField.ContentTy
35a0 70 65 2e 4e 61 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 pe.Name;..............inputField
35c0 2e 69 6e 70 75 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 49 6e 70 75 74 54 79 70 .inputType.=.InputField.InputTyp
35e0 65 2e 50 61 73 73 77 6f 72 64 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e e.Password;..............Assert.
3600 41 72 65 45 71 75 61 6c 28 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e AreEqual(InputField.ContentType.
3620 43 75 73 74 6f 6d 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 29 3b Custom,.inputField.contentType);
3640 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 20 20 .........}..........[Test]......
3660 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 74 69 6e 67 43 68 61 72 61 63 74 65 72 56 ...public.void.SettingCharacterV
3680 61 6c 69 64 61 74 69 6f 6e 43 68 61 6e 67 65 73 43 6f 6e 74 65 6e 74 54 79 70 65 54 6f 43 75 73 alidationChangesContentTypeToCus
36a0 74 6f 6d 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 49 6e 70 75 tom().........{.............Inpu
36c0 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 61 62 52 6f 6f 74 tField.inputField.=.m_PrefabRoot
36e0 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e 70 75 74 46 69 65 .GetComponentInChildren<InputFie
3700 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 6f ld>();.............inputField.co
3720 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 ntentType.=.InputField.ContentTy
3740 70 65 2e 4e 61 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 pe.Name;..............inputField
3760 2e 63 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 20 3d 20 49 6e 70 75 74 46 69 65 6c .characterValidation.=.InputFiel
3780 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 6f 6e 65 3b 0a 0a 20 20 20 d.CharacterValidation.None;.....
37a0 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 49 6e 70 75 74 46 69 .........Assert.AreEqual(InputFi
37c0 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 43 75 73 74 6f 6d 2c 20 69 6e 70 75 74 46 69 65 eld.ContentType.Custom,.inputFie
37e0 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ld.contentType);.........}......
3800 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 53 ....[Test].........public.void.S
3820 65 74 74 69 6e 67 4b 65 79 62 6f 61 72 64 54 79 70 65 43 68 61 6e 67 65 73 43 6f 6e 74 65 6e 74 ettingKeyboardTypeChangesContent
3840 54 79 70 65 54 6f 43 75 73 74 6f 6d 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 TypeToCustom().........{........
3860 20 20 20 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 46 69 65 6c 64 20 3d 20 6d 5f 50 .....InputField.inputField.=.m_P
3880 72 65 66 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e refabRoot.GetComponentInChildren
38a0 3c 49 6e 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 <InputField>();.............inpu
38c0 74 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 20 3d 20 49 6e 70 75 74 46 69 65 6c 64 2e tField.contentType.=.InputField.
38e0 43 6f 6e 74 65 6e 74 54 79 70 65 2e 4e 61 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ContentType.Name;..............i
3900 6e 70 75 74 46 69 65 6c 64 2e 6b 65 79 62 6f 61 72 64 54 79 70 65 20 3d 20 54 6f 75 63 68 53 63 nputField.keyboardType.=.TouchSc
3920 72 65 65 6e 4b 65 79 62 6f 61 72 64 54 79 70 65 2e 41 53 43 49 49 43 61 70 61 62 6c 65 3b 0a 0a reenKeyboardType.ASCIICapable;..
3940 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 49 6e 70 75 ............Assert.AreEqual(Inpu
3960 74 46 69 65 6c 64 2e 43 6f 6e 74 65 6e 74 54 79 70 65 2e 43 75 73 74 6f 6d 2c 20 69 6e 70 75 74 tField.ContentType.Custom,.input
3980 46 69 65 6c 64 2e 63 6f 6e 74 65 6e 74 54 79 70 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 Field.contentType);.........}...
39a0 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 20 20 70 75 62 6c 69 .......[UnityTest].........publi
39c0 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 43 61 72 65 74 52 65 63 74 53 61 6d 65 53 69 7a 65 41 c.IEnumerator.CaretRectSameSizeA
39e0 73 54 65 78 74 52 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 sTextRect().........{...........
3a00 20 20 49 6e 70 75 74 46 69 65 6c 64 20 69 6e 70 75 74 66 69 65 6c 64 20 3d 20 6d 5f 50 72 65 66 ..InputField.inputfield.=.m_Pref
3a20 61 62 52 6f 6f 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 49 6e 43 68 69 6c 64 72 65 6e 3c 49 6e abRoot.GetComponentInChildren<In
3a40 70 75 74 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 48 6f 72 69 7a 6f 6e putField>();.............Horizon
3a60 74 61 6c 4c 61 79 6f 75 74 47 72 6f 75 70 20 6c 67 20 3d 20 69 6e 70 75 74 66 69 65 6c 64 2e 67 talLayoutGroup.lg.=.inputfield.g
3a80 61 6d 65 4f 62 6a 65 63 74 2e 41 64 64 43 6f 6d 70 6f 6e 65 6e 74 3c 48 6f 72 69 7a 6f 6e 74 61 ameObject.AddComponent<Horizonta
3aa0 6c 4c 61 79 6f 75 74 47 72 6f 75 70 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 67 2e lLayoutGroup>();.............lg.
3ac0 63 68 69 6c 64 43 6f 6e 74 72 6f 6c 57 69 64 74 68 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 childControlWidth.=.true;.......
3ae0 20 20 20 20 20 20 6c 67 2e 63 68 69 6c 64 43 6f 6e 74 72 6f 6c 48 65 69 67 68 74 20 3d 20 66 61 ......lg.childControlHeight.=.fa
3b00 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 67 2e 63 68 69 6c 64 46 6f 72 63 65 45 78 lse;.............lg.childForceEx
3b20 70 61 6e 64 57 69 64 74 68 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 67 pandWidth.=.true;.............lg
3b40 2e 63 68 69 6c 64 46 6f 72 63 65 45 78 70 61 6e 64 48 65 69 67 68 74 20 3d 20 74 72 75 65 3b 0a .childForceExpandHeight.=.true;.
3b60 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6e 74 65 6e 74 53 69 7a 65 46 69 74 74 65 72 20 63 73 ............ContentSizeFitter.cs
3b80 66 20 3d 20 69 6e 70 75 74 66 69 65 6c 64 2e 67 61 6d 65 4f 62 6a 65 63 74 2e 41 64 64 43 6f 6d f.=.inputfield.gameObject.AddCom
3ba0 70 6f 6e 65 6e 74 3c 43 6f 6e 74 65 6e 74 53 69 7a 65 46 69 74 74 65 72 3e 28 29 3b 0a 20 20 20 ponent<ContentSizeFitter>();....
3bc0 20 20 20 20 20 20 20 20 20 63 73 66 2e 68 6f 72 69 7a 6f 6e 74 61 6c 46 69 74 20 3d 20 43 6f 6e .........csf.horizontalFit.=.Con
3be0 74 65 6e 74 53 69 7a 65 46 69 74 74 65 72 2e 46 69 74 4d 6f 64 65 2e 50 72 65 66 65 72 72 65 64 tentSizeFitter.FitMode.Preferred
3c00 53 69 7a 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 73 66 2e 76 65 72 74 69 63 61 6c 46 69 Size;.............csf.verticalFi
3c20 74 20 3d 20 43 6f 6e 74 65 6e 74 53 69 7a 65 46 69 74 74 65 72 2e 46 69 74 4d 6f 64 65 2e 55 6e t.=.ContentSizeFitter.FitMode.Un
3c40 63 6f 6e 73 74 72 61 69 6e 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 66 69 constrained;.............inputfi
3c60 65 6c 64 2e 74 65 78 74 20 3d 20 22 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 22 3b 0a 0a 20 20 20 20 eld.text.=."Hello.World!";......
3c80 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 6e 65 77 20 57 61 69 74 46 6f 72 ........yield.return.new.WaitFor
3ca0 53 65 63 6f 6e 64 73 28 31 2e 30 66 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 Seconds(1.0f);..............Rect
3cc0 20 70 72 65 76 54 65 78 74 52 65 63 74 20 3d 20 69 6e 70 75 74 66 69 65 6c 64 2e 74 65 78 74 43 .prevTextRect.=.inputfield.textC
3ce0 6f 6d 70 6f 6e 65 6e 74 2e 72 65 63 74 54 72 61 6e 73 66 6f 72 6d 2e 72 65 63 74 3b 0a 20 20 20 omponent.rectTransform.rect;....
3d00 20 20 20 20 20 20 20 20 20 52 65 63 74 20 70 72 65 76 43 61 72 65 74 52 65 63 74 20 3d 20 28 69 .........Rect.prevCaretRect.=.(i
3d20 6e 70 75 74 66 69 65 6c 64 2e 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 2e 74 72 61 6e 73 66 6f 72 nputfield.textComponent.transfor
3d40 6d 2e 70 61 72 65 6e 74 2e 47 65 74 43 68 69 6c 64 28 30 29 20 61 73 20 52 65 63 74 54 72 61 6e m.parent.GetChild(0).as.RectTran
3d60 73 66 6f 72 6d 29 2e 72 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 66 69 sform).rect;.............inputfi
3d80 65 6c 64 2e 74 65 78 74 20 3d 20 22 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 48 65 6c 6c 6f 20 57 6f eld.text.=."Hello.World!Hello.Wo
3da0 72 6c 64 21 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 22 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 rld!Hello.World!";..............
3dc0 4c 61 79 6f 75 74 52 65 62 75 69 6c 64 65 72 2e 4d 61 72 6b 4c 61 79 6f 75 74 46 6f 72 52 65 62 LayoutRebuilder.MarkLayoutForReb
3de0 75 69 6c 64 28 69 6e 70 75 74 66 69 65 6c 64 2e 74 72 61 6e 73 66 6f 72 6d 20 61 73 20 52 65 63 uild(inputfield.transform.as.Rec
3e00 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 tTransform);..............yield.
3e20 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 2e 30 66 29 3b return.new.WaitForSeconds(1.0f);
3e40 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6e 65 77 54 65 78 74 52 65 63 74 20 3d ..............Rect.newTextRect.=
3e60 20 69 6e 70 75 74 66 69 65 6c 64 2e 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 2e 72 65 63 74 54 72 .inputfield.textComponent.rectTr
3e80 61 6e 73 66 6f 72 6d 2e 72 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6e ansform.rect;.............Rect.n
3ea0 65 77 43 61 72 65 74 52 65 63 74 20 3d 20 28 69 6e 70 75 74 66 69 65 6c 64 2e 74 65 78 74 43 6f ewCaretRect.=.(inputfield.textCo
3ec0 6d 70 6f 6e 65 6e 74 2e 74 72 61 6e 73 66 6f 72 6d 2e 70 61 72 65 6e 74 2e 47 65 74 43 68 69 6c mponent.transform.parent.GetChil
3ee0 64 28 30 29 20 61 73 20 52 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 2e 72 65 63 74 3b 0a 0a 20 20 d(0).as.RectTransform).rect;....
3f00 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 46 61 6c 73 65 28 70 72 65 76 54 65 78 ..........Assert.IsFalse(prevTex
3f20 74 52 65 63 74 20 3d 3d 20 6e 65 77 54 65 78 74 52 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 tRect.==.newTextRect);..........
3f40 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 70 72 65 76 54 65 78 74 52 65 63 74 20 3d 3d ...Assert.IsTrue(prevTextRect.==
3f60 20 70 72 65 76 43 61 72 65 74 52 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 .prevCaretRect);.............Ass
3f80 65 72 74 2e 49 73 46 61 6c 73 65 28 70 72 65 76 43 61 72 65 74 52 65 63 74 20 3d 3d 20 6e 65 77 ert.IsFalse(prevCaretRect.==.new
3fa0 43 61 72 65 74 52 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 CaretRect);.............Assert.I
3fc0 73 54 72 75 65 28 6e 65 77 54 65 78 74 52 65 63 74 20 3d 3d 20 6e 65 77 43 61 72 65 74 52 65 63 sTrue(newTextRect.==.newCaretRec
3fe0 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 t);.........}.....}.}...........
4000 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 47 65 6e 65 72 69 63 49 6e 70 75 74 46 69 65 6c ................GenericInputFiel
4020 64 54 65 73 74 73 00 00 0f 00 00 00 49 6e 70 75 74 66 69 65 6c 64 54 65 73 74 73 00 dTests......InputfieldTests.