summaryrefslogtreecommitdiff
path: root/Library/Artifacts/b6/b6c69b33548e4bfee14bccd85dcc82f5
blob: 4a88b7b779b109af9bcfb6561c83c19c403f4292 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 39 e0 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......9.............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 80 29 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 14 00 00 00 54 6f 75 63 68 49 6e 70 75 74 46 69 65 6c 64 54 65 73 74 73 ............TouchInputFieldTests
10a0 fa 28 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c .(..using.System;.using.System.L
10c0 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 75 73 69 6e inq;.using.NUnit.Framework;.usin
10e0 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 67 69 6e 65 g.UnityEngine;.using.UnityEngine
1100 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 67 69 6e 65 .EventSystems;.using.UnityEngine
1120 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 6c 65 63 74 .TestTools;.using.System.Collect
1140 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 20 55 6e 69 ions;.using.System.IO;.using.Uni
1160 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 55 49 3b 0a tyEditor;.using.UnityEngine.UI;.
1180 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 6d 65 73 70 using.System.Reflection;..namesp
11a0 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 5b 55 6e 69 74 79 ace.InputfieldTests.{.....[Unity
11c0 50 6c 61 74 66 6f 72 6d 28 65 78 63 6c 75 64 65 20 3d 20 6e 65 77 20 52 75 6e 74 69 6d 65 50 6c Platform(exclude.=.new.RuntimePl
11e0 61 74 66 6f 72 6d 5b 5d 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 52 75 6e 74 69 6d 65 50 6c atform[].....{.........RuntimePl
1200 61 74 66 6f 72 6d 2e 41 6e 64 72 6f 69 64 20 2f 2a 20 63 61 73 65 20 31 30 39 34 30 34 32 20 2a atform.Android./*.case.1094042.*
1220 2f 0a 20 20 20 20 7d 29 5d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 54 6f 75 63 68 /.....})].....public.class.Touch
1240 49 6e 70 75 74 46 69 65 6c 64 54 65 73 74 73 20 3a 20 42 61 73 65 49 6e 70 75 74 46 69 65 6c 64 InputFieldTests.:.BaseInputField
1260 54 65 73 74 73 2c 20 49 50 72 65 62 75 69 6c 64 53 65 74 75 70 0a 20 20 20 20 7b 0a 20 20 20 20 Tests,.IPrebuildSetup.....{.....
1280 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 50 72 65 66 ....protected.const.string.kPref
12a0 61 62 50 61 74 68 20 3d 20 22 41 73 73 65 74 73 2f 52 65 73 6f 75 72 63 65 73 2f 54 6f 75 63 68 abPath.=."Assets/Resources/Touch
12c0 49 6e 70 75 74 46 69 65 6c 64 50 72 65 66 61 62 2e 70 72 65 66 61 62 22 3b 0a 0a 20 20 20 20 20 InputFieldPrefab.prefab";.......
12e0 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 75 70 28 29 0a 20 20 20 20 20 20 20 20 7b ...public.void.Setup().........{
1300 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 72 .#if.UNITY_EDITOR.............Cr
1320 65 61 74 65 49 6e 70 75 74 46 69 65 6c 64 41 73 73 65 74 28 6b 50 72 65 66 61 62 50 61 74 68 29 eateInputFieldAsset(kPrefabPath)
1340 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 74 ;.#endif.........}..........[Set
1360 55 70 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 54 65 73 74 53 65 74 75 Up].........public.void.TestSetu
1380 70 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 50 72 65 66 p().........{.............m_Pref
13a0 61 62 52 6f 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 abRoot.=.UnityEngine.Object.Inst
13c0 61 6e 74 69 61 74 65 28 52 65 73 6f 75 72 63 65 73 2e 4c 6f 61 64 28 22 54 6f 75 63 68 49 6e 70 antiate(Resources.Load("TouchInp
13e0 75 74 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 utFieldPrefab")).as.GameObject;.
1400 0a 20 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 .............FieldInfo.inputModu
1420 6c 65 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 le.=.typeof(EventSystem).GetFiel
1440 64 28 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 d("m_CurrentInputModule",.Bindin
1460 67 46 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 gFlags.NonPublic.|.BindingFlags.
1480 49 6e 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 Instance);.............inputModu
14a0 6c 65 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 le.SetValue(m_PrefabRoot.GetComp
14c0 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 6d 3e 28 29 2c 20 onentInChildren<EventSystem>(),.
14e0 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
1500 72 65 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 ren<FakeInputModule>());........
1520 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 61 72 44 6f 77 6e 5d 0a 20 20 20 20 20 20 20 20 70 .}..........[TearDown].........p
1540 75 62 6c 69 63 20 76 6f 69 64 20 54 65 61 72 44 6f 77 6e 28 29 0a 20 20 20 20 20 20 20 20 7b 0a ublic.void.TearDown().........{.
1560 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 6c ............InputField.inputFiel
1580 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 43 d.=.m_PrefabRoot.GetComponentInC
15a0 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 20 hildren<InputField>();..........
15c0 20 20 20 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 2e 68 69 64 65 49 6e 70 75 74 ...TouchScreenKeyboard.hideInput
15e0 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 55 70 64 61 74 65 .=.false;.............FontUpdate
1600 54 72 61 63 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 Tracker.UntrackText(m_PrefabRoot
1620 2e 47 65 74 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 .GetComponentInChildren<Text>())
1640 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 ;.............GameObject.Destroy
1660 49 6d 6d 65 64 69 61 74 65 28 6d 5f 50 72 65 66 61 62 52 6f 6f 74 29 3b 0a 20 20 20 20 20 20 20 Immediate(m_PrefabRoot);........
1680 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 4f 6e 65 54 69 6d 65 54 65 61 72 44 6f 77 6e 5d 0a 20 20 .}..........[OneTimeTearDown]...
16a0 20 20 20 20 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 ......public.void.OnetimeTearDow
16c0 6e 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 n().........{.#if.UNITY_EDITOR..
16e0 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 44 65 6c 65 74 65 41 ...........AssetDatabase.DeleteA
1700 73 73 65 74 28 6b 50 72 65 66 61 62 50 61 74 68 29 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 sset(kPrefabPath);.#endif.......
1720 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 63 6f 6e 73 74 20 73 74 72 ..}..........protected.const.str
1740 69 6e 67 20 6b 44 65 66 61 75 6c 74 49 6e 70 75 74 53 74 72 20 3d 20 22 66 6f 6f 62 61 72 22 3b ing.kDefaultInputStr.=."foobar";
1760 0a 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 45 6d 61 69 6c 53 70 65 ..........const.string.kEmailSpe
1780 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 20 3d 20 22 21 23 24 25 26 27 2a 2b 2d 2f 3d 3f 5e 5f cialCharacters.=."!#$%&'*+-/=?^_
17a0 60 7b 7c 7d 7e 22 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 43 `{|}~";..........public.struct.C
17c0 68 61 72 56 61 6c 69 64 61 74 69 6f 6e 54 65 73 74 44 61 74 61 0a 20 20 20 20 20 20 20 20 7b 0a harValidationTestData.........{.
17e0 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 69 6e 70 75 74 2c ............public.string.input,
1800 20 6f 75 74 70 75 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 .output;.............public.Inpu
1820 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 20 76 61 6c 69 64 tField.CharacterValidation.valid
1840 61 74 69 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 68 61 72 56 ation;..............public.CharV
1860 61 6c 69 64 61 74 69 6f 6e 54 65 73 74 44 61 74 61 28 73 74 72 69 6e 67 20 69 6e 70 75 74 2c 20 alidationTestData(string.input,.
1880 73 74 72 69 6e 67 20 6f 75 74 70 75 74 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 string.output,.InputField.Charac
18a0 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 20 76 61 6c 69 64 61 74 69 6f 6e 29 0a 20 20 20 20 20 20 terValidation.validation).......
18c0 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 6e 70 ......{.................this.inp
18e0 75 74 20 3d 20 69 6e 70 75 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 ut.=.input;.................this
1900 2e 6f 75 74 70 75 74 20 3d 20 6f 75 74 70 75 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .output.=.output;...............
1920 20 20 74 68 69 73 2e 76 61 6c 69 64 61 74 69 6f 6e 20 3d 20 76 61 6c 69 64 61 74 69 6f 6e 3b 0a ..this.validation.=.validation;.
1940 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 ............}..............publi
1960 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 20 54 6f 53 74 72 69 6e 67 28 29 0a 20 20 20 c.override.string.ToString()....
1980 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 .........{.................//.th
19a0 65 73 65 20 77 6f 6e 27 74 20 70 72 6f 70 65 72 6c 79 20 73 68 6f 77 20 75 70 20 69 66 20 74 65 ese.won't.properly.show.up.if.te
19c0 73 74 20 72 75 6e 6e 65 72 73 20 55 49 20 69 66 20 77 65 20 64 6f 6e 27 74 20 72 65 70 6c 61 63 st.runners.UI.if.we.don't.replac
19e0 65 20 69 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 69 6e 70 75 e.it.................string.inpu
1a00 74 20 3d 20 74 68 69 73 2e 69 6e 70 75 74 2e 52 65 70 6c 61 63 65 28 6b 45 6d 61 69 6c 53 70 65 t.=.this.input.Replace(kEmailSpe
1a20 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 2c 20 22 73 70 65 63 69 61 6c 63 68 61 72 73 22 29 3b cialCharacters,."specialchars");
1a40 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6f 75 74 70 75 74 20 3d .................string.output.=
1a60 20 74 68 69 73 2e 6f 75 74 70 75 74 2e 52 65 70 6c 61 63 65 28 6b 45 6d 61 69 6c 53 70 65 63 69 .this.output.Replace(kEmailSpeci
1a80 61 6c 43 68 61 72 61 63 74 65 72 73 2c 20 22 73 70 65 63 69 61 6c 63 68 61 72 73 22 29 3b 0a 20 alCharacters,."specialchars");..
1aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 74 72 69 6e 67 2e 46 6f 72 ...............return.string.For
1ac0 6d 61 74 28 22 69 6e 70 75 74 3d 7b 30 7d 2c 20 6f 75 74 70 75 74 3d 7b 31 7d 2c 20 76 61 6c 69 mat("input={0},.output={1},.vali
1ae0 64 61 74 69 6f 6e 3d 7b 32 7d 22 2c 20 69 6e 70 75 74 2c 20 6f 75 74 70 75 74 2c 20 76 61 6c 69 dation={2}",.input,.output,.vali
1b00 64 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d dation);.............}.........}
1b20 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 5b 54 65 73 74 43 61 ..........[Test].........[TestCa
1b40 73 65 28 22 2a 41 7a c3 a9 30 39 22 2c 20 22 2a 41 7a c3 a9 30 39 22 2c 20 49 6e 70 75 74 46 69 se("*Az..09",."*Az..09",.InputFi
1b60 65 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 29 5d 0a 20 eld.CharacterValidation.None)]..
1b80 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 2a 41 7a c3 a9 30 39 3f 2e 22 2c 20 22 41 .......[TestCase("*Az..09?.",."A
1ba0 7a 30 39 22 2c 20 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 z09",.InputField.CharacterValida
1bc0 74 69 6f 6e 2e 41 6c 70 68 61 6e 75 6d 65 72 69 63 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 tion.Alphanumeric)].........[Tes
1be0 74 43 61 73 65 28 22 41 62 63 31 30 78 22 2c 20 22 31 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 tCase("Abc10x",."10",.InputField
1c00 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 67 65 72 29 5d 0a 20 .CharacterValidation.Integer)]..
1c20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 2d 31 30 22 2c 20 22 2d 31 30 22 2c 20 49 .......[TestCase("-10",."-10",.I
1c40 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 49 6e nputField.CharacterValidation.In
1c60 74 65 67 65 72 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 31 30 2e 30 22 teger)].........[TestCase("10.0"
1c80 2c 20 22 31 30 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c ,."100",.InputField.CharacterVal
1ca0 69 64 61 74 69 6f 6e 2e 49 6e 74 65 67 65 72 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 idation.Integer)].........[TestC
1cc0 61 73 65 28 22 31 30 2e 30 22 2c 20 22 31 30 2e 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 ase("10.0",."10.0",.InputField.C
1ce0 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 29 5d 0a 20 20 20 haracterValidation.Decimal)]....
1d00 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 20 2d 31 30 2e 30 78 22 2c 20 22 2d 31 30 2e 30 .....[TestCase(".-10.0x",."-10.0
1d20 22 2c 20 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 ",.InputField.CharacterValidatio
1d40 6e 2e 44 65 63 69 6d 61 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 31 n.Decimal)].........[TestCase("1
1d60 30 2c 30 22 2c 20 22 31 30 2c 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 0,0",."10,0",.InputField.Charact
1d80 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 44 65 63 69 6d 61 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b erValidation.Decimal)].........[
1da0 54 65 73 74 43 61 73 65 28 22 20 2d 31 30 2c 30 78 22 2c 20 22 2d 31 30 2c 30 22 2c 20 49 6e 70 TestCase(".-10,0x",."-10,0",.Inp
1dc0 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 44 65 63 69 utField.CharacterValidation.Deci
1de0 6d 61 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 41 31 30 2c 30 20 22 mal)].........[TestCase("A10,0."
1e00 2c 20 22 31 30 2c 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 ,."10,0",.InputField.CharacterVa
1e20 6c 69 64 61 74 69 6f 6e 2e 44 65 63 69 6d 61 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 lidation.Decimal)].........[Test
1e40 43 61 73 65 28 22 41 27 61 20 61 61 61 20 20 61 61 61 22 2c 20 22 41 27 61 20 41 61 61 20 41 61 Case("A'a.aaa..aaa",."A'a.Aaa.Aa
1e60 61 22 2c 20 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 a",.InputField.CharacterValidati
1e80 6f 6e 2e 4e 61 6d 65 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 20 5f 4a on.Name)].........[TestCase("._J
1ea0 4f 48 4e 2a 20 20 20 28 44 6f 65 29 22 2c 20 22 4a 6f 68 6e 20 44 6f 65 22 2c 20 49 6e 70 75 74 OHN*...(Doe)",."John.Doe",.Input
1ec0 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 4e 61 6d 65 29 5d Field.CharacterValidation.Name)]
1ee0 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 6a 6f 68 6e 64 6f 65 40 75 6e 69 74 .........[TestCase("johndoe@unit
1f00 79 33 64 2e 63 6f 6d 22 2c 20 22 6a 6f 68 6e 64 6f 65 40 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c y3d.com",."johndoe@unity3d.com",
1f20 20 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.
1f40 45 6d 61 69 6c 41 64 64 72 65 73 73 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 EmailAddress)].........[TestCase
1f60 28 22 3e 6a 6f 68 6e 20 64 6f 65 5c 5c 40 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c 20 22 6a 6f 68 (">john.doe\\@unity3d.com",."joh
1f80 6e 64 6f 65 40 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 ndoe@unity3d.com",.InputField.Ch
1fa0 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 45 6d 61 69 6c 41 64 64 72 65 73 73 29 5d aracterValidation.EmailAddress)]
1fc0 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 6b 45 6d 61 69 6c 53 70 65 63 69 61 6c .........[TestCase(kEmailSpecial
1fe0 43 68 61 72 61 63 74 65 72 73 20 2b 20 22 40 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c 20 6b 45 6d Characters.+."@unity3d.com",.kEm
2000 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 20 2b 20 22 40 75 6e 69 74 79 33 64 ailSpecialCharacters.+."@unity3d
2020 2e 63 6f 6d 22 2c 20 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 .com",.InputField.CharacterValid
2040 61 74 69 6f 6e 2e 45 6d 61 69 6c 41 64 64 72 65 73 73 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 ation.EmailAddress)].........pub
2060 6c 69 63 20 76 6f 69 64 20 48 6f 6e 6f 72 73 43 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 lic.void.HonorsCharacterValidati
2080 6f 6e 53 65 74 74 69 6e 67 73 41 73 73 69 67 6e 6d 65 6e 74 28 73 74 72 69 6e 67 20 69 6e 70 75 onSettingsAssignment(string.inpu
20a0 74 2c 20 73 74 72 69 6e 67 20 6f 75 74 70 75 74 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 t,.string.output,.InputField.Cha
20c0 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 20 76 61 6c 69 64 61 74 69 6f 6e 29 0a 20 20 20 racterValidation.validation)....
20e0 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 65 6c 64 20 69 6e .....{.............InputField.in
2100 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 74 43 6f 6d 70 6f putField.=.m_PrefabRoot.GetCompo
2120 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 28 29 3b 0a 20 20 nentInChildren<InputField>();...
2140 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 56 61 ..........inputField.characterVa
2160 6c 69 64 61 74 69 6f 6e 20 3d 20 76 61 6c 69 64 61 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 lidation.=.validation;..........
2180 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 20 3d 20 69 6e 70 75 74 3b 0a 20 20 20 20 ...inputField.text.=.input;.....
21a0 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 6f 75 74 70 75 74 2c 20 ........Assert.AreEqual(output,.
21c0 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 2c 20 73 74 72 69 6e 67 2e 46 6f 72 6d 61 74 28 22 inputField.text,.string.Format("
21e0 46 61 69 6c 65 64 20 63 68 61 72 61 63 74 65 72 20 76 61 6c 69 64 61 74 69 6f 6e 3a 20 69 6e 70 Failed.character.validation:.inp
2200 75 74 20 3d 7b 30 7d 2c 20 6f 75 74 70 75 74 20 3d 7b 31 7d 2c 20 76 61 6c 69 64 61 74 69 6f 6e ut.={0},.output.={1},.validation
2220 20 3d 7b 32 7d 22 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 2e 52 65 .={2}",.................input.Re
2240 70 6c 61 63 65 28 6b 45 6d 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 2c 20 22 place(kEmailSpecialCharacters,."
2260 73 70 65 63 69 61 6c 63 68 61 72 73 22 29 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 specialchars"),.................
2280 6f 75 74 70 75 74 2e 52 65 70 6c 61 63 65 28 6b 45 6d 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 output.Replace(kEmailSpecialChar
22a0 61 63 74 65 72 73 2c 20 22 73 70 65 63 69 61 6c 63 68 61 72 73 22 29 2c 0a 20 20 20 20 20 20 20 acters,."specialchars"),........
22c0 20 20 20 20 20 20 20 20 20 76 61 6c 69 64 61 74 69 6f 6e 29 29 3b 0a 20 20 20 20 20 20 20 20 7d .........validation));.........}
22e0 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 5b 54 ..........[UnityTest].........[T
2300 65 73 74 43 61 73 65 28 22 2a 41 7a c3 a9 30 39 22 2c 20 22 2a 41 7a c3 a9 30 39 22 2c 20 49 6e estCase("*Az..09",."*Az..09",.In
2320 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 4e 6f 6e putField.CharacterValidation.Non
2340 65 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 e,.ExpectedResult.=.null)]......
2360 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 2a 41 7a c3 a9 30 39 3f 2e 22 2c 20 22 41 7a 30 39 22 ...[TestCase("*Az..09?.",."Az09"
2380 2c 20 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 ,.InputField.CharacterValidation
23a0 2e 41 6c 70 68 61 6e 75 6d 65 72 69 63 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 .Alphanumeric,.ExpectedResult.=.
23c0 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 41 62 63 31 30 78 null)].........[TestCase("Abc10x
23e0 22 2c 20 22 31 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c ",."10",.InputField.CharacterVal
2400 69 64 61 74 69 6f 6e 2e 49 6e 74 65 67 65 72 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 idation.Integer,.ExpectedResult.
2420 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 2d 31 30 22 =.null)].........[TestCase("-10"
2440 2c 20 22 2d 31 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 6c ,."-10",.InputField.CharacterVal
2460 69 64 61 74 69 6f 6e 2e 49 6e 74 65 67 65 72 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 idation.Integer,.ExpectedResult.
2480 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 31 30 2e 30 =.null)].........[TestCase("10.0
24a0 22 2c 20 22 31 30 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 56 61 ",."100",.InputField.CharacterVa
24c0 6c 69 64 61 74 69 6f 6e 2e 49 6e 74 65 67 65 72 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 lidation.Integer,.ExpectedResult
24e0 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 31 30 2e .=.null)].........[TestCase("10.
2500 30 22 2c 20 22 31 30 2e 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 65 72 0",."10.0",.InputField.Character
2520 56 61 6c 69 64 61 74 69 6f 6e 2e 44 65 63 69 6d 61 6c 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 Validation.Decimal,.ExpectedResu
2540 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 20 lt.=.null)].........[TestCase(".
2560 2d 31 30 2e 30 78 22 2c 20 22 2d 31 30 2e 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 -10.0x",."-10.0",.InputField.Cha
2580 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 45 78 70 65 63 74 racterValidation.Decimal,.Expect
25a0 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 edResult.=.null)].........[TestC
25c0 61 73 65 28 22 31 30 2c 30 22 2c 20 22 31 30 2c 30 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 ase("10,0",."10,0",.InputField.C
25e0 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 45 78 70 65 haracterValidation.Decimal,.Expe
2600 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 ctedResult.=.null)].........[Tes
2620 74 43 61 73 65 28 22 20 2d 31 30 2c 30 78 22 2c 20 22 2d 31 30 2c 30 22 2c 20 49 6e 70 75 74 46 tCase(".-10,0x",."-10,0",.InputF
2640 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 44 65 63 69 6d 61 6c ield.CharacterValidation.Decimal
2660 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 ,.ExpectedResult.=.null)].......
2680 20 20 5b 54 65 73 74 43 61 73 65 28 22 41 31 30 2c 30 20 22 2c 20 22 31 30 2c 30 22 2c 20 49 6e ..[TestCase("A10,0.",."10,0",.In
26a0 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 44 65 63 putField.CharacterValidation.Dec
26c0 69 6d 61 6c 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 imal,.ExpectedResult.=.null)]...
26e0 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 41 27 61 20 61 61 61 20 20 61 61 61 22 2c 20 ......[TestCase("A'a.aaa..aaa",.
2700 22 41 27 61 20 41 61 61 20 41 61 61 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 "A'a.Aaa.Aaa",.InputField.Charac
2720 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 4e 61 6d 65 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 terValidation.Name,.ExpectedResu
2740 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 20 lt.=.null)].........[TestCase(".
2760 5f 4a 4f 48 4e 2a 20 20 20 28 44 6f 65 29 22 2c 20 22 4a 6f 68 6e 20 44 6f 65 22 2c 20 49 6e 70 _JOHN*...(Doe)",."John.Doe",.Inp
2780 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 4e 61 6d 65 utField.CharacterValidation.Name
27a0 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 ,.ExpectedResult.=.null)].......
27c0 20 20 5b 54 65 73 74 43 61 73 65 28 22 6a 6f 68 6e 64 6f 65 40 75 6e 69 74 79 33 64 2e 63 6f 6d ..[TestCase("johndoe@unity3d.com
27e0 22 2c 20 22 6a 6f 68 6e 64 6f 65 40 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c 20 49 6e 70 75 74 46 ",."johndoe@unity3d.com",.InputF
2800 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 45 6d 61 69 6c 41 64 ield.CharacterValidation.EmailAd
2820 64 72 65 73 73 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 dress,.ExpectedResult.=.null)]..
2840 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 22 3e 6a 6f 68 6e 20 64 6f 65 5c 5c 40 75 6e .......[TestCase(">john.doe\\@un
2860 69 74 79 33 64 2e 63 6f 6d 22 2c 20 22 6a 6f 68 6e 64 6f 65 40 75 6e 69 74 79 33 64 2e 63 6f 6d ity3d.com",."johndoe@unity3d.com
2880 22 2c 20 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 ",.InputField.CharacterValidatio
28a0 6e 2e 45 6d 61 69 6c 41 64 64 72 65 73 73 2c 20 45 78 70 65 63 74 65 64 52 65 73 75 6c 74 20 3d n.EmailAddress,.ExpectedResult.=
28c0 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 43 61 73 65 28 6b 45 6d 61 69 6c .null)].........[TestCase(kEmail
28e0 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 20 2b 20 22 40 75 6e 69 74 79 33 64 2e 63 6f SpecialCharacters.+."@unity3d.co
2900 6d 22 2c 20 6b 45 6d 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 20 2b 20 22 40 m",.kEmailSpecialCharacters.+."@
2920 75 6e 69 74 79 33 64 2e 63 6f 6d 22 2c 20 49 6e 70 75 74 46 69 65 6c 64 2e 43 68 61 72 61 63 74 unity3d.com",.InputField.Charact
2940 65 72 56 61 6c 69 64 61 74 69 6f 6e 2e 45 6d 61 69 6c 41 64 64 72 65 73 73 2c 20 45 78 70 65 63 erValidation.EmailAddress,.Expec
2960 74 65 64 52 65 73 75 6c 74 20 3d 20 6e 75 6c 6c 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 tedResult.=.null)].........publi
2980 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 48 6f 6e 6f 72 73 43 68 61 72 61 63 74 65 72 56 61 6c c.IEnumerator.HonorsCharacterVal
29a0 69 64 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 54 79 70 69 6e 67 57 69 74 68 53 65 6c 65 63 74 69 idationSettingsTypingWithSelecti
29c0 6f 6e 28 73 74 72 69 6e 67 20 69 6e 70 75 74 2c 20 73 74 72 69 6e 67 20 6f 75 74 70 75 74 2c 20 on(string.input,.string.output,.
29e0 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 20 76 InputField.CharacterValidation.v
2a00 61 6c 69 64 61 74 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 alidation).........{............
2a20 20 69 66 20 28 21 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 2e 69 73 53 75 70 70 .if.(!TouchScreenKeyboard.isSupp
2a40 6f 72 74 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 62 72 65 orted).................yield.bre
2a60 61 6b 3b 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 ak;.............InputField.input
2a80 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
2aa0 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>();......
2ac0 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.=
2ae0 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.
2b00 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
2b20 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 63 em>());.............inputField.c
2b40 68 61 72 61 63 74 65 72 56 61 6c 69 64 61 74 69 6f 6e 20 3d 20 76 61 6c 69 64 61 74 69 6f 6e 3b haracterValidation.=.validation;
2b60 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 65 78 74 20 3d 20 69 .............inputField.text.=.i
2b80 6e 70 75 74 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 nput;..............inputField.On
2ba0 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
2bc0 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
2be0 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 6f 75 74 70 75 74 2c 20 69 6e 70 75 74 46 69 65 6c ssert.AreEqual(output,.inputFiel
2c00 64 2e 74 65 78 74 2c 20 73 74 72 69 6e 67 2e 46 6f 72 6d 61 74 28 22 46 61 69 6c 65 64 20 63 68 d.text,.string.Format("Failed.ch
2c20 61 72 61 63 74 65 72 20 76 61 6c 69 64 61 74 69 6f 6e 3a 20 69 6e 70 75 74 20 3d 7b 30 7d 2c 20 aracter.validation:.input.={0},.
2c40 6f 75 74 70 75 74 20 3d 7b 31 7d 2c 20 76 61 6c 69 64 61 74 69 6f 6e 20 3d 7b 32 7d 22 2c 0a 20 output.={1},.validation.={2}",..
2c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 2e 52 65 70 6c 61 63 65 28 6b 45 6d ...............input.Replace(kEm
2c80 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 2c 20 22 73 70 65 63 69 61 6c 63 68 ailSpecialCharacters,."specialch
2ca0 61 72 73 22 29 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 75 74 70 75 74 2e 52 65 ars"),.................output.Re
2cc0 70 6c 61 63 65 28 6b 45 6d 61 69 6c 53 70 65 63 69 61 6c 43 68 61 72 61 63 74 65 72 73 2c 20 22 place(kEmailSpecialCharacters,."
2ce0 73 70 65 63 69 61 6c 63 68 61 72 73 22 29 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 specialchars"),.................
2d00 76 61 6c 69 64 61 74 69 6f 6e 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 validation));.........}.........
2d20 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 41 73 73 69 .[Test].........public.void.Assi
2d40 67 6e 6d 65 6e 74 41 67 61 69 6e 73 74 43 68 61 72 61 63 74 65 72 4c 69 6d 69 74 28 5b 56 61 6c gnmentAgainstCharacterLimit([Val
2d60 75 65 73 28 22 41 42 43 22 2c 20 22 61 62 63 64 65 66 67 68 69 6a 6b 6c 22 29 5d 20 73 74 72 69 ues("ABC",."abcdefghijkl")].stri
2d80 6e 67 20 74 65 78 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 ng.text).........{.............I
2da0 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 52 nputField.inputField.=.m_PrefabR
2dc0 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 74 oot.GetComponentInChildren<Input
2de0 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 65 73 74 20 61 73 Field>();.............//.test.as
2e00 73 69 67 6e 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e signment.............inputField.
2e20 63 68 61 72 61 63 74 65 72 4c 69 6d 69 74 20 3d 20 35 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 characterLimit.=.5;.............
2e40 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 20 3d 20 74 65 78 74 3b 0a 20 20 20 20 20 20 20 20 inputField.text.=.text;.........
2e60 20 20 20 20 41 73 73 65 72 74 2e 41 72 65 45 71 75 61 6c 28 74 65 78 74 2e 53 75 62 73 74 72 69 ....Assert.AreEqual(text.Substri
2e80 6e 67 28 30 2c 20 4d 61 74 68 2e 4d 69 6e 28 74 65 78 74 2e 4c 65 6e 67 74 68 2c 20 69 6e 70 75 ng(0,.Math.Min(text.Length,.inpu
2ea0 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 4c 69 6d 69 74 29 29 2c 20 69 6e 70 75 74 46 69 tField.characterLimit)),.inputFi
2ec0 65 6c 64 2e 74 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 eld.text);.........}..........[T
2ee0 65 73 74 5d 20 2f 2f 20 72 65 67 72 65 73 73 69 6f 6e 20 74 65 73 74 20 37 39 33 31 31 39 0a 20 est].//.regression.test.793119..
2f00 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 73 73 69 67 6e 6d 65 6e 74 41 67 61 .......public.void.AssignmentAga
2f20 69 6e 73 74 43 68 61 72 61 63 74 65 72 4c 69 6d 69 74 57 69 74 68 43 6f 6e 74 65 6e 74 54 79 70 instCharacterLimitWithContentTyp
2f40 65 28 5b 56 61 6c 75 65 73 28 22 41 62 63 22 2c 20 22 41 62 63 64 65 66 67 68 69 6a 6b 6c 22 29 e([Values("Abc",."Abcdefghijkl")
2f60 5d 20 73 74 72 69 6e 67 20 74 65 78 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 ].string.text).........{........
2f80 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
2fa0 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
2fc0 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 2f 2f 20 74 <InputField>();.............//.t
2fe0 65 73 74 20 61 73 73 69 67 6e 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 est.assignment.............input
3000 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 4c 69 6d 69 74 20 3d 20 35 3b 0a 20 20 20 20 20 20 Field.characterLimit.=.5;.......
3020 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 49 ......inputField.contentType.=.I
3040 6e 70 75 74 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 nputField.ContentType.Name;.....
3060 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 20 3d 20 74 65 78 74 3b 0a ........inputField.text.=.text;.
3080 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 74 65 78 74 ............Assert.AreEqual(text
30a0 2e 53 75 62 73 74 72 69 6e 67 28 30 2c 20 4d 61 74 68 2e 4d 69 6e 28 74 65 78 74 2e 4c 65 6e 67 .Substring(0,.Math.Min(text.Leng
30c0 74 68 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 63 68 61 72 61 63 74 65 72 4c 69 6d 69 74 29 29 2c th,.inputField.characterLimit)),
30e0 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 .inputField.text);.........}....
3100 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 63 ......[UnityTest].........public
3120 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 53 65 6e 64 73 45 6e 64 45 64 69 74 45 76 65 6e 74 4f 6e .IEnumerator.SendsEndEditEventOn
3140 44 65 73 65 6c 65 63 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 Deselect().........{............
3160 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 61 .InputField.inputField.=.m_Prefa
3180 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 70 bRoot.GetComponentInChildren<Inp
31a0 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 65 45 76 65 6e utField>();.............BaseEven
31c0 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 76 65 6e 74 44 tData.eventData.=.new.BaseEventD
31e0 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 6e 74 49 6e 43 ata(m_PrefabRoot.GetComponentInC
3200 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 20 20 20 20 20 hildren<EventSystem>());........
3220 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 44 61 .....inputField.OnSelect(eventDa
3240 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 6e 75 ta);.............yield.return.nu
3260 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 61 6c 6c 65 64 20 3d 20 66 61 6c ll;.............var.called.=.fal
3280 73 65 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 6f 6e 45 6e 64 se;.............inputField.onEnd
32a0 45 64 69 74 2e 41 64 64 4c 69 73 74 65 6e 65 72 28 28 73 29 20 3d 3e 20 7b 20 63 61 6c 6c 65 64 Edit.AddListener((s).=>.{.called
32c0 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 69 6e 70 75 74 46 .=.true;.});..............inputF
32e0 69 65 6c 64 2e 4f 6e 44 65 73 65 6c 65 63 74 28 65 76 65 6e 74 44 61 74 61 29 3b 0a 0a 20 20 20 ield.OnDeselect(eventData);.....
3300 20 20 20 20 20 20 20 20 20 41 73 73 65 72 74 2e 49 73 54 72 75 65 28 63 61 6c 6c 65 64 2c 20 22 .........Assert.IsTrue(called,."
3320 45 78 70 65 63 74 65 64 20 69 6e 76 6f 63 61 74 69 6f 6e 20 6f 66 20 6f 6e 45 6e 64 45 64 69 74 Expected.invocation.of.onEndEdit
3340 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 54 65 73 74 5d 0a 20 20 ");.........}..........[Test]...
3360 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 74 72 69 70 73 4e 75 6c 6c 43 68 61 72 ......public.void.StripsNullChar
3380 61 63 74 65 72 73 32 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 acters2().........{.............
33a0 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
33c0 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
33e0 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 65 6c tField>();.............inputFiel
3400 64 2e 74 65 78 74 20 3d 20 22 61 5c 30 62 22 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 d.text.=."a\0b";.............Ass
3420 65 72 74 2e 41 72 65 45 71 75 61 6c 28 22 61 62 22 2c 20 69 6e 70 75 74 46 69 65 6c 64 2e 74 65 ert.AreEqual("ab",.inputField.te
3440 78 74 2c 20 22 5c 5c 30 20 63 68 61 72 61 63 74 65 72 73 20 73 68 6f 75 6c 64 20 62 65 20 73 74 xt,."\\0.characters.should.be.st
3460 72 69 70 70 65 64 22 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 ripped");.........}..........[Un
3480 69 74 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 ityTest].........public.IEnumera
34a0 74 6f 72 20 46 6f 63 75 73 4f 70 65 6e 73 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 tor.FocusOpensTouchScreenKeyboar
34c0 64 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 54 d().........{.............if.(!T
34e0 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 2e 69 73 53 75 70 70 6f 72 74 65 64 29 0a ouchScreenKeyboard.isSupported).
3500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 62 72 65 61 6b 3b 0a 20 20 20 ................yield.break;....
3520 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 6c 64 20 3d .........InputField.inputField.=
3540 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 43 68 69 6c .m_PrefabRoot.GetComponentInChil
3560 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 20 20 20 20 dren<InputField>();.............
3580 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 20 6e 65 77 20 42 61 BaseEventData.eventData.=.new.Ba
35a0 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 47 65 74 43 6f 6d 70 seEventData(m_PrefabRoot.GetComp
35c0 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 6d 3e 28 29 29 3b onentInChildren<EventSystem>());
35e0 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
3600 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
3620 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.
3640 4e 6f 74 4e 75 6c 6c 28 69 6e 70 75 74 46 69 65 6c 64 2e 74 6f 75 63 68 53 63 72 65 65 6e 4b 65 NotNull(inputField.touchScreenKe
3660 79 62 6f 61 72 64 2c 20 22 45 78 70 65 63 74 20 61 20 6b 65 79 62 6f 61 72 64 20 74 6f 20 62 65 yboard,."Expect.a.keyboard.to.be
3680 20 6f 70 65 6e 65 64 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 55 .opened");.........}..........[U
36a0 6e 69 74 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 nityTest].........public.IEnumer
36c0 61 74 6f 72 20 41 73 73 69 67 6e 73 53 68 6f 75 6c 64 48 69 64 65 49 6e 70 75 74 28 29 0a 20 20 ator.AssignsShouldHideInput()...
36e0 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 41 70 70 6c 69 63 61 74 ......{.............if.(Applicat
3700 69 6f 6e 2e 70 6c 61 74 66 6f 72 6d 20 3d 3d 20 52 75 6e 74 69 6d 65 50 6c 61 74 66 6f 72 6d 2e ion.platform.==.RuntimePlatform.
3720 41 6e 64 72 6f 69 64 20 7c 7c 20 41 70 70 6c 69 63 61 74 69 6f 6e 2e 70 6c 61 74 66 6f 72 6d 20 Android.||.Application.platform.
3740 3d 3d 20 52 75 6e 74 69 6d 65 50 6c 61 74 66 6f 72 6d 2e 49 50 68 6f 6e 65 50 6c 61 79 65 72 29 ==.RuntimePlatform.IPhonePlayer)
3760 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 .............{.................I
3780 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 52 nputField.inputField.=.m_PrefabR
37a0 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 74 oot.GetComponentInChildren<Input
37c0 46 69 65 6c 64 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 65 45 76 Field>();.................BaseEv
37e0 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 76 65 6e entData.eventData.=.new.BaseEven
3800 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 6e 74 49 tData(m_PrefabRoot.GetComponentI
3820 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 0a 20 20 20 20 nChildren<EventSystem>());......
3840 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 46 69 65 6c 64 2e 73 68 6f 75 6c 64 48 69 64 ............inputField.shouldHid
3860 65 4d 6f 62 69 6c 65 49 6e 70 75 74 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 eMobileInput.=.false;...........
3880 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
38a0 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 79 69 65 6c 64 20 72 65 74 Data);.................yield.ret
38c0 75 72 6e 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 72 urn.null;..................Asser
38e0 74 2e 49 73 46 61 6c 73 65 28 69 6e 70 75 74 46 69 65 6c 64 2e 73 68 6f 75 6c 64 48 69 64 65 4d t.IsFalse(inputField.shouldHideM
3900 6f 62 69 6c 65 49 6e 70 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 obileInput);.................Ass
3920 65 72 74 2e 49 73 46 61 6c 73 65 28 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 79 62 6f 61 72 64 2e ert.IsFalse(TouchScreenKeyboard.
3940 68 69 64 65 49 6e 70 75 74 2c 20 22 45 78 70 65 63 74 20 54 6f 75 63 68 53 63 72 65 65 6e 4b 65 hideInput,."Expect.TouchScreenKe
3960 79 62 6f 61 72 64 2e 68 69 64 65 49 6e 70 75 74 20 74 6f 20 62 65 20 73 65 74 22 29 3b 0a 20 20 yboard.hideInput.to.be.set");...
3980 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 ..........}.........}.....}.}...
39a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 54 6f 75 63 68 49 6e 70 ........................TouchInp
39c0 75 74 46 69 65 6c 64 54 65 73 74 73 0f 00 00 00 49 6e 70 75 74 66 69 65 6c 64 54 65 73 74 73 00 utFieldTests....InputfieldTests.