summaryrefslogtreecommitdiff
path: root/Library/Artifacts/79/790e2f4010b119c6bd4bcd0dc3b4dad7
blob: be02c62997e26fd2eb8a459637d9e7cbfbdea337 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 59 b4 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......Y.............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 54 49 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 TI..............................
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 11 00 00 00 54 4d 50 5f 42 61 73 65 53 68 61 64 65 72 47 55 49 00 00 00 ............TMP_BaseShaderGUI...
10a0 c8 48 00 00 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a 75 73 69 6e 67 20 55 6e .H..using.UnityEngine;..using.Un
10c0 69 74 79 45 64 69 74 6f 72 3b 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 54 4d 50 72 6f 2e 45 64 ityEditor;....namespace.TMPro.Ed
10e0 69 74 6f 72 55 74 69 6c 69 74 69 65 73 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 itorUtilities..{......///.<summa
1100 72 79 3e 42 61 73 65 20 63 6c 61 73 73 20 66 6f 72 20 54 65 78 74 4d 65 73 68 20 50 72 6f 20 73 ry>Base.class.for.TextMesh.Pro.s
1120 68 61 64 65 72 20 47 55 49 73 2e 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 70 75 62 6c 69 hader.GUIs.</summary>......publi
1140 63 20 61 62 73 74 72 61 63 74 20 63 6c 61 73 73 20 54 4d 50 5f 42 61 73 65 53 68 61 64 65 72 47 c.abstract.class.TMP_BaseShaderG
1160 55 49 20 3a 20 53 68 61 64 65 72 47 55 49 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f UI.:.ShaderGUI......{........../
1180 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 52 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 61 20 //.<summary>Representation.of.a.
11a0 23 70 72 61 67 6d 61 20 73 68 61 64 65 72 5f 66 65 61 74 75 72 65 2e 3c 2f 73 75 6d 6d 61 72 79 #pragma.shader_feature.</summary
11c0 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 64 65 73 63 72 69 70 74 69 6f 6e 3e 49 74 20 69 >..........///.<description>It.i
11e0 73 20 61 73 73 75 6d 65 64 20 74 68 61 74 20 74 68 65 20 66 69 72 73 74 20 66 65 61 74 75 72 65 s.assumed.that.the.first.feature
1200 20 6f 70 74 69 6f 6e 20 69 73 20 66 6f 72 20 6e 6f 20 6b 65 79 77 6f 72 64 20 28 75 6e 64 65 72 .option.is.for.no.keyword.(under
1220 73 63 6f 72 65 73 29 2e 3c 2f 64 65 73 63 72 69 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 scores).</description>..........
1240 70 72 6f 74 65 63 74 65 64 20 63 6c 61 73 73 20 53 68 61 64 65 72 46 65 61 74 75 72 65 0d 0a 20 protected.class.ShaderFeature...
1260 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 .......{..............public.str
1280 69 6e 67 20 75 6e 64 6f 4c 61 62 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 ing.undoLabel;................pu
12a0 62 6c 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 blic.GUIContent.label;..........
12c0 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 54 68 65 20 6b 65 79 77 6f 72 64 20 6c ......///.<summary>The.keyword.l
12e0 61 62 65 6c 73 2c 20 66 6f 72 20 64 69 73 70 6c 61 79 2e 20 49 6e 63 6c 75 64 65 20 74 68 65 20 abels,.for.display..Include.the.
1300 6e 6f 2d 6b 65 79 77 6f 72 64 20 61 73 20 74 68 65 20 66 69 72 73 74 20 6f 70 74 69 6f 6e 2e 3c no-keyword.as.the.first.option.<
1320 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 47 55 /summary>..............public.GU
1340 49 43 6f 6e 74 65 6e 74 5b 5d 20 6b 65 79 77 6f 72 64 4c 61 62 65 6c 73 3b 0d 0a 0d 0a 20 20 20 IContent[].keywordLabels;.......
1360 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 54 68 65 20 73 68 61 64 65 72 .........///.<summary>The.shader
1380 20 6b 65 79 77 6f 72 64 73 2e 20 45 78 63 6c 75 64 65 20 74 68 65 20 6e 6f 2d 6b 65 79 77 6f 72 .keywords..Exclude.the.no-keywor
13a0 64 20 6f 70 74 69 6f 6e 2e 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 d.option.</summary>.............
13c0 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 5b 5d 20 6b 65 79 77 6f 72 64 73 3b 0d 0a 0d 0a 20 20 .public.string[].keywords;......
13e0 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 6d 5f 53 74 61 74 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 ..........int.m_State;..........
1400 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 41 63 74 69 76 65 0d 0a 20 20 20 20 20 20 ......public.bool.Active........
1420 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 ......{..................get.{.r
1440 65 74 75 72 6e 20 6d 5f 53 74 61 74 65 20 3e 3d 20 30 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 eturn.m_State.>=.0;.}...........
1460 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 53 ...}................public.int.S
1480 74 61 74 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tate..............{.............
14a0 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 74 61 74 65 3b 20 7d 0d 0a 20 20 .....get.{.return.m_State;.}....
14c0 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 ..........}................publi
14e0 63 20 76 6f 69 64 20 52 65 61 64 53 74 61 74 65 28 4d 61 74 65 72 69 61 6c 20 6d 61 74 65 72 69 c.void.ReadState(Material.materi
1500 61 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 al)..............{..............
1520 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6b 65 79 77 6f 72 64 73 ....for.(int.i.=.0;.i.<.keywords
1540 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b .Length;.i++)..................{
1560 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 74 65 72 69 ......................if.(materi
1580 61 6c 2e 49 73 4b 65 79 77 6f 72 64 45 6e 61 62 6c 65 64 28 6b 65 79 77 6f 72 64 73 5b 69 5d 29 al.IsKeywordEnabled(keywords[i])
15a0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 )......................{........
15c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 20 3d 20 69 3b 0d 0a ..................m_State.=.i;..
15e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d ........................return;.
1600 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 .....................}..........
1620 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 ........}....................m_S
1640 74 61 74 65 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 tate.=.-1;..............}.......
1660 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 41 63 74 69 76 65 28 62 .........public.void.SetActive(b
1680 6f 6f 6c 20 61 63 74 69 76 65 2c 20 4d 61 74 65 72 69 61 6c 20 6d 61 74 65 72 69 61 6c 29 0d 0a ool.active,.Material.material)..
16a0 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d ............{..................m
16c0 5f 53 74 61 74 65 20 3d 20 61 63 74 69 76 65 20 3f 20 30 20 3a 20 2d 31 3b 0d 0a 20 20 20 20 20 _State.=.active.?.0.:.-1;.......
16e0 20 20 20 20 20 20 20 20 20 20 20 53 65 74 53 74 61 74 65 4b 65 79 77 6f 72 64 73 28 6d 61 74 65 ...........SetStateKeywords(mate
1700 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 rial);..............}...........
1720 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 6f 50 6f 70 75 70 28 4d 61 74 65 72 69 61 .....public.void.DoPopup(Materia
1740 6c 45 64 69 74 6f 72 20 65 64 69 74 6f 72 2c 20 4d 61 74 65 72 69 61 6c 20 6d 61 74 65 72 69 61 lEditor.editor,.Material.materia
1760 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 l)..............{...............
1780 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b ...EditorGUI.BeginChangeCheck();
17a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 73 65 6c 65 63 74 69 6f 6e 20 ..................int.selection.
17c0 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 6f 70 75 70 28 6c 61 62 65 6c 2c 20 6d =.EditorGUILayout.Popup(label,.m
17e0 5f 53 74 61 74 65 20 2b 20 31 2c 20 6b 65 79 77 6f 72 64 4c 61 62 65 6c 73 29 3b 0d 0a 20 20 20 _State.+.1,.keywordLabels);.....
1800 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 .............if.(EditorGUI.EndCh
1820 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d angeCheck())..................{.
1840 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 74 61 74 65 20 3d 20 73 .....................m_State.=.s
1860 65 6c 65 63 74 69 6f 6e 20 2d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 election.-.1;...................
1880 20 20 20 65 64 69 74 6f 72 2e 52 65 67 69 73 74 65 72 50 72 6f 70 65 72 74 79 43 68 61 6e 67 65 ...editor.RegisterPropertyChange
18a0 55 6e 64 6f 28 75 6e 64 6f 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Undo(undoLabel);................
18c0 20 20 20 20 20 20 53 65 74 53 74 61 74 65 4b 65 79 77 6f 72 64 73 28 6d 61 74 65 72 69 61 6c 29 ......SetStateKeywords(material)
18e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ;..................}............
1900 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 65 74 53 74 61 74 65 ..}................void.SetState
1920 4b 65 79 77 6f 72 64 73 28 4d 61 74 65 72 69 61 6c 20 6d 61 74 65 72 69 61 6c 29 0d 0a 20 20 20 Keywords(Material.material).....
1940 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 .........{..................for.
1960 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6b 65 79 77 6f 72 64 73 2e 4c 65 6e 67 74 68 3b (int.i.=.0;.i.<.keywords.Length;
1980 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 .i++)..................{........
19a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 20 3d 3d 20 6d 5f 53 74 61 74 65 29 0d ..............if.(i.==.m_State).
19c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .....................{..........
19e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 65 72 69 61 6c 2e 45 6e 61 62 6c 65 4b ................material.EnableK
1a00 65 79 77 6f 72 64 28 6b 65 79 77 6f 72 64 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 eyword(keywords[i]);............
1a20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........}.....................
1a40 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 .else......................{....
1a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 65 72 69 61 6c 2e 44 ......................material.D
1a80 69 73 61 62 6c 65 4b 65 79 77 6f 72 64 28 6b 65 79 77 6f 72 64 73 5b 69 5d 29 3b 0d 0a 20 20 20 isableKeyword(keywords[i]);.....
1aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................}..............
1ac0 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d ....}..............}..........}.
1ae0 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 54 ...........static.GUIContent.s_T
1b00 65 6d 70 4c 61 62 65 6c 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 29 3b 0d 0a 0d 0a empLabel.=.new.GUIContent();....
1b20 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 73 5f ........protected.static.bool.s_
1b40 44 65 62 75 67 45 78 74 65 6e 64 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 DebugExtended;............static
1b60 20 69 6e 74 20 73 5f 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 2c 20 73 5f 4c 61 73 74 53 65 65 6e .int.s_UndoRedoCount,.s_LastSeen
1b80 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 UndoRedoCount;............static
1ba0 20 66 6c 6f 61 74 5b 5d 5b 5d 20 73 5f 54 65 6d 70 46 6c 6f 61 74 73 20 3d 0d 0a 20 20 20 20 20 .float[][].s_TempFloats.=.......
1bc0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 75 6c 6c 2c 20 6e 65 77 20 66 6c 6f 61 ...{..............null,.new.floa
1be0 74 5b 31 5d 2c 20 6e 65 77 20 66 6c 6f 61 74 5b 32 5d 2c 20 6e 65 77 20 66 6c 6f 61 74 5b 33 5d t[1],.new.float[2],.new.float[3]
1c00 2c 20 6e 65 77 20 66 6c 6f 61 74 5b 34 5d 0d 0a 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 ,.new.float[4]..........};......
1c20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e ......protected.static.GUIConten
1c40 74 5b 5d 20 73 5f 58 79 77 68 56 65 63 74 6f 72 4c 61 62 65 6c 73 20 3d 0d 0a 20 20 20 20 20 20 t[].s_XywhVectorLabels.=........
1c60 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 ..{..............new.GUIContent(
1c80 22 58 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e "X"),..............new.GUIConten
1ca0 74 28 22 59 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 t("Y"),..............new.GUICont
1cc0 65 6e 74 28 22 57 22 2c 20 22 57 69 64 74 68 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ent("W",."Width"),..............
1ce0 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 48 22 2c 20 22 48 65 69 67 68 74 22 29 0d 0a 20 new.GUIContent("H",."Height")...
1d00 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 73 .......};............protected.s
1d20 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 73 5f 4c 62 72 74 56 65 63 74 6f 72 4c tatic.GUIContent[].s_LbrtVectorL
1d40 61 62 65 6c 73 20 3d 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 abels.=..........{..............
1d60 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 22 2c 20 22 4c 65 66 74 22 29 2c 0d 0a 20 20 new.GUIContent("L",."Left"),....
1d80 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 42 22 2c 20 22 42 ..........new.GUIContent("B",."B
1da0 6f 74 74 6f 6d 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 47 55 49 43 6f 6e ottom"),..............new.GUICon
1dc0 74 65 6e 74 28 22 52 22 2c 20 22 52 69 67 68 74 22 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tent("R",."Right"),.............
1de0 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 54 22 2c 20 22 54 6f 70 22 29 0d 0a 20 20 20 .new.GUIContent("T",."Top").....
1e00 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 54 4d 50 5f 42 61 .....};............static.TMP_Ba
1e20 73 65 53 68 61 64 65 72 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 seShaderGUI()..........{........
1e40 20 20 20 20 20 20 2f 2f 20 4b 65 65 70 20 74 72 61 63 6b 20 6f 66 20 68 6f 77 20 6d 61 6e 79 20 ......//.Keep.track.of.how.many.
1e60 75 6e 64 6f 2f 72 65 64 6f 20 65 76 65 6e 74 73 20 68 61 70 70 65 6e 65 64 2e 0d 0a 20 20 20 20 undo/redo.events.happened.......
1e80 20 20 20 20 20 20 20 20 55 6e 64 6f 2e 75 6e 64 6f 52 65 64 6f 50 65 72 66 6f 72 6d 65 64 20 2b ........Undo.undoRedoPerformed.+
1ea0 3d 20 28 29 20 3d 3e 20 73 5f 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 20 2b 3d 20 31 3b 0d 0a 20 =.().=>.s_UndoRedoCount.+=.1;...
1ec0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 49 73 4e 65 77 .......}............bool.m_IsNew
1ee0 47 55 49 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 5f 44 GUI.=.true;............float.m_D
1f00 72 61 67 41 6e 64 44 72 6f 70 4d 69 6e 59 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 ragAndDropMinY;............prote
1f20 63 74 65 64 20 4d 61 74 65 72 69 61 6c 45 64 69 74 6f 72 20 6d 5f 45 64 69 74 6f 72 3b 0d 0a 0d cted.MaterialEditor.m_Editor;...
1f40 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 4d 61 74 65 72 69 61 6c 20 6d 5f 4d 61 .........protected.Material.m_Ma
1f60 74 65 72 69 61 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 4d 61 74 terial;............protected.Mat
1f80 65 72 69 61 6c 50 72 6f 70 65 72 74 79 5b 5d 20 6d 5f 50 72 6f 70 65 72 74 69 65 73 3b 0d 0a 0d erialProperty[].m_Properties;...
1fa0 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 50 72 65 70 61 72 65 47 55 49 28 29 0d 0a 20 20 20 20 .........void.PrepareGUI()......
1fc0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 73 4e 65 77 47 55 49 20 3d 20 ....{..............m_IsNewGUI.=.
1fe0 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 68 61 64 65 72 55 74 69 6c 69 74 false;..............ShaderUtilit
2000 69 65 73 2e 47 65 74 53 68 61 64 65 72 50 72 6f 70 65 72 74 79 49 44 73 28 29 3b 0d 0a 0d 0a 20 ies.GetShaderPropertyIDs();.....
2020 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 65 77 20 47 55 49 20 6a 75 73 74 20 67 6f 74 20 63 ...........//.New.GUI.just.got.c
2040 6f 6e 73 74 72 75 63 74 65 64 2e 20 54 68 69 73 20 68 61 70 70 65 6e 73 20 69 6e 20 72 65 73 70 onstructed..This.happens.in.resp
2060 6f 6e 73 65 20 74 6f 20 61 20 73 65 6c 65 63 74 69 6f 6e 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 onse.to.a.selection,............
2080 20 20 2f 2f 20 62 75 74 20 61 6c 73 6f 20 61 66 74 65 72 20 75 6e 64 6f 2f 72 65 64 6f 20 65 76 ..//.but.also.after.undo/redo.ev
20a0 65 6e 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 4c 61 73 74 53 65 65 ents...............if.(s_LastSee
20c0 6e 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 20 21 3d 20 73 5f 55 6e 64 6f 52 65 64 6f 43 6f 75 6e nUndoRedoCount.!=.s_UndoRedoCoun
20e0 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 t)..............{...............
2100 20 20 20 2f 2f 20 54 68 65 72 65 27 73 20 62 65 65 6e 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 ...//.There's.been.at.least.one.
2120 75 6e 64 6f 2f 72 65 64 6f 20 73 69 6e 63 65 20 74 68 65 20 6c 61 73 74 20 74 69 6d 65 20 74 68 undo/redo.since.the.last.time.th
2140 69 73 20 47 55 49 20 67 6f 74 20 63 6f 6e 73 74 72 75 63 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 is.GUI.got.constructed..........
2160 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 79 62 65 20 74 68 65 20 75 6e 64 6f 2f 72 65 64 6f 20 .........//.Maybe.the.undo/redo.
2180 77 61 73 20 66 6f 72 20 74 68 69 73 20 6d 61 74 65 72 69 61 6c 3f 20 41 73 73 75 6d 65 20 74 68 was.for.this.material?.Assume.th
21a0 61 74 20 69 73 20 77 61 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 72 at.is.was...................TMPr
21c0 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 72 2e 4f 4e 5f 4d 41 54 45 52 49 41 4c 5f 50 52 4f 50 45 o_EventManager.ON_MATERIAL_PROPE
21e0 52 54 59 5f 43 48 41 4e 47 45 44 28 74 72 75 65 2c 20 6d 5f 4d 61 74 65 72 69 61 6c 20 61 73 20 RTY_CHANGED(true,.m_Material.as.
2200 4d 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 Material);..............}.......
2220 20 20 20 20 20 20 20 20 20 73 5f 4c 61 73 74 53 65 65 6e 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 .........s_LastSeenUndoRedoCount
2240 20 3d 20 73 5f 55 6e 64 6f 52 65 64 6f 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a .=.s_UndoRedoCount;..........}..
2260 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f ..........public.override.void.O
2280 6e 47 55 49 28 4d 61 74 65 72 69 61 6c 45 64 69 74 6f 72 20 6d 61 74 65 72 69 61 6c 45 64 69 74 nGUI(MaterialEditor.materialEdit
22a0 6f 72 2c 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 5b 5d 20 70 72 6f 70 65 72 74 69 65 or,.MaterialProperty[].propertie
22c0 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 64 69 s)..........{..............m_Edi
22e0 74 6f 72 20 3d 20 6d 61 74 65 72 69 61 6c 45 64 69 74 6f 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 tor.=.materialEditor;...........
2300 20 20 20 6d 5f 4d 61 74 65 72 69 61 6c 20 3d 20 6d 61 74 65 72 69 61 6c 45 64 69 74 6f 72 2e 74 ...m_Material.=.materialEditor.t
2320 61 72 67 65 74 20 61 73 20 4d 61 74 65 72 69 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 arget.as.Material;..............
2340 74 68 69 73 2e 6d 5f 50 72 6f 70 65 72 74 69 65 73 20 3d 20 70 72 6f 70 65 72 74 69 65 73 3b 0d this.m_Properties.=.properties;.
2360 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 73 4e 65 77 47 55 49 29 0d 0a ...............if.(m_IsNewGUI)..
2380 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 ............{..................P
23a0 72 65 70 61 72 65 47 55 49 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 repareGUI();..............}.....
23c0 20 20 20 20 20 20 20 20 20 20 20 44 6f 44 72 61 67 41 6e 64 44 72 6f 70 42 65 67 69 6e 28 29 3b ...........DoDragAndDropBegin();
23e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 ..............EditorGUI.BeginCha
2400 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 47 55 49 28 29 ngeCheck();..............DoGUI()
2420 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 ;..............if.(EditorGUI.End
2440 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ChangeCheck())..............{...
2460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 ...............TMPro_EventManage
2480 72 2e 4f 4e 5f 4d 41 54 45 52 49 41 4c 5f 50 52 4f 50 45 52 54 59 5f 43 48 41 4e 47 45 44 28 74 r.ON_MATERIAL_PROPERTY_CHANGED(t
24a0 72 75 65 2c 20 6d 5f 4d 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d rue,.m_Material);..............}
24c0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 44 72 61 67 41 6e 64 44 72 6f 70 45 6e 64 ................DoDragAndDropEnd
24e0 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 ();..........}............///.<s
2500 75 6d 6d 61 72 79 3e 4f 76 65 72 72 69 64 65 20 74 68 69 73 20 6d 65 74 68 6f 64 20 74 6f 20 63 ummary>Override.this.method.to.c
2520 72 65 61 74 65 20 74 68 65 20 73 70 65 63 69 66 69 63 20 73 68 61 64 65 72 20 47 55 49 2e 3c 2f reate.the.specific.shader.GUI.</
2540 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 61 62 73 74 summary>..........protected.abst
2560 72 61 63 74 20 76 6f 69 64 20 44 6f 47 55 49 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 73 74 ract.void.DoGUI();............st
2580 61 74 69 63 20 73 74 72 69 6e 67 5b 5d 20 73 5f 50 61 6e 65 6c 53 74 61 74 65 4c 61 62 65 6c 20 atic.string[].s_PanelStateLabel.
25a0 3d 20 6e 65 77 20 73 74 72 69 6e 67 5b 5d 20 7b 20 22 5c 74 2d 20 3c 69 3e 43 6c 69 63 6b 20 74 =.new.string[].{."\t-.<i>Click.t
25c0 6f 20 63 6f 6c 6c 61 70 73 65 3c 2f 69 3e 20 2d 22 2c 20 22 5c 74 2d 20 3c 69 3e 43 6c 69 63 6b o.collapse</i>.-",."\t-.<i>Click
25e0 20 74 6f 20 65 78 70 61 6e 64 3c 2f 69 3e 20 20 2d 22 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 .to.expand</i>..-".};...........
2600 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 42 65 67 69 6e 50 61 6e 65 6c 28 73 74 72 69 6e .protected.bool.BeginPanel(strin
2620 67 20 70 61 6e 65 6c 2c 20 62 6f 6f 6c 20 65 78 70 61 6e 64 65 64 29 0d 0a 20 20 20 20 20 20 20 g.panel,.bool.expanded).........
2640 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e .{..............EditorGUILayout.
2660 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 BeginVertical(EditorStyles.helpB
2680 6f 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 20 3d 20 45 64 69 ox);................Rect.r.=.Edi
26a0 74 6f 72 47 55 49 2e 49 6e 64 65 6e 74 65 64 52 65 63 74 28 47 55 49 4c 61 79 6f 75 74 55 74 69 torGUI.IndentedRect(GUILayoutUti
26c0 6c 69 74 79 2e 47 65 74 52 65 63 74 28 32 30 2c 20 31 38 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 lity.GetRect(20,.18));..........
26e0 20 20 20 20 72 2e 78 20 2b 3d 20 32 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 77 69 ....r.x.+=.20;..............r.wi
2700 64 74 68 20 2b 3d 20 36 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 65 6e dth.+=.6;................bool.en
2720 61 62 6c 65 64 20 3d 20 47 55 49 2e 65 6e 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 abled.=.GUI.enabled;............
2740 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 ..GUI.enabled.=.true;...........
2760 20 20 20 65 78 70 61 6e 64 65 64 20 3d 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e ...expanded.=.TMP_EditorUtility.
2780 45 64 69 74 6f 72 54 6f 67 67 6c 65 28 72 2c 20 65 78 70 61 6e 64 65 64 2c 20 6e 65 77 20 47 55 EditorToggle(r,.expanded,.new.GU
27a0 49 43 6f 6e 74 65 6e 74 28 70 61 6e 65 6c 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 IContent(panel),.TMP_UIStyleMana
27c0 67 65 72 2e 70 61 6e 65 6c 54 69 74 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e ger.panelTitle);..............r.
27e0 77 69 64 74 68 20 2d 3d 20 33 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 width.-=.30;..............Editor
2800 47 55 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 72 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 GUI.LabelField(r,.new.GUIContent
2820 28 65 78 70 61 6e 64 65 64 20 3f 20 73 5f 50 61 6e 65 6c 53 74 61 74 65 4c 61 62 65 6c 5b 30 5d (expanded.?.s_PanelStateLabel[0]
2840 20 3a 20 73 5f 50 61 6e 65 6c 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 .:.s_PanelStateLabel[1]),.TMP_UI
2860 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 StyleManager.rightLabel);.......
2880 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 65 6e 61 62 6c 65 64 3b 0d 0a 0d .......GUI.enabled.=.enabled;...
28a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 .............EditorGUI.indentLev
28c0 65 6c 20 2b 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e el.+=.1;..............EditorGUI.
28e0 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 66 61 6c 73 65 29 3b 0d 0a 0d 0a 20 20 BeginDisabledGroup(false);......
2900 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 65 78 70 61 6e 64 65 64 3b 0d 0a 20 20 20 20 ..........return.expanded;......
2920 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 ....}............protected.bool.
2940 42 65 67 69 6e 50 61 6e 65 6c 28 73 74 72 69 6e 67 20 70 61 6e 65 6c 2c 20 53 68 61 64 65 72 46 BeginPanel(string.panel,.ShaderF
2960 65 61 74 75 72 65 20 66 65 61 74 75 72 65 2c 20 62 6f 6f 6c 20 65 78 70 61 6e 64 65 64 2c 20 62 eature.feature,.bool.expanded,.b
2980 6f 6f 6c 20 72 65 61 64 53 74 61 74 65 20 3d 20 74 72 75 65 29 0d 0a 20 20 20 20 20 20 20 20 7b ool.readState.=.true)..........{
29a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 61 64 53 74 61 74 65 29 0d 0a 20 20 ..............if.(readState)....
29c0 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 65 61 ..........{..................fea
29e0 74 75 72 65 2e 52 65 61 64 53 74 61 74 65 28 6d 5f 4d 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 ture.ReadState(m_Material);.....
2a00 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 .........}................Editor
2a20 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 GUI.BeginChangeCheck();.........
2a40 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 .......EditorGUILayout.BeginVert
2a60 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 ical(EditorStyles.helpBox);.....
2a80 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 .........GUILayout.BeginHorizont
2aa0 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 20 3d 20 45 64 al();................Rect.r.=.Ed
2ac0 69 74 6f 72 47 55 49 2e 49 6e 64 65 6e 74 65 64 52 65 63 74 28 47 55 49 4c 61 79 6f 75 74 55 74 itorGUI.IndentedRect(GUILayoutUt
2ae0 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 32 30 2c 20 32 30 2c 20 47 55 49 4c 61 79 6f 75 74 2e ility.GetRect(20,.20,.GUILayout.
2b00 57 69 64 74 68 28 32 30 66 29 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 Width(20f)));..............bool.
2b20 61 63 74 69 76 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 54 6f 67 67 6c 65 28 72 2c 20 66 65 61 active.=.EditorGUI.Toggle(r,.fea
2b40 74 75 72 65 2e 41 63 74 69 76 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ture.Active);................if.
2b60 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 (EditorGUI.EndChangeCheck())....
2b80 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 ..........{..................m_E
2ba0 64 69 74 6f 72 2e 52 65 67 69 73 74 65 72 50 72 6f 70 65 72 74 79 43 68 61 6e 67 65 55 6e 64 6f ditor.RegisterPropertyChangeUndo
2bc0 28 66 65 61 74 75 72 65 2e 75 6e 64 6f 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 (feature.undoLabel);............
2be0 20 20 20 20 20 20 66 65 61 74 75 72 65 2e 53 65 74 41 63 74 69 76 65 28 61 63 74 69 76 65 2c 20 ......feature.SetActive(active,.
2c00 6d 5f 4d 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 m_Material);..............}.....
2c20 20 20 20 20 20 20 20 20 20 20 20 72 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 49 6e 64 65 6e 74 65 ...........r.=.EditorGUI.Indente
2c40 64 52 65 63 74 28 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 32 dRect(GUILayoutUtility.GetRect(2
2c60 30 2c 20 31 38 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 77 69 64 74 68 20 2b 3d 0,.18));..............r.width.+=
2c80 20 36 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 65 6e 61 62 6c 65 64 20 .6;................bool.enabled.
2ca0 3d 20 47 55 49 2e 65 6e 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e =.GUI.enabled;..............GUI.
2cc0 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 78 70 enabled.=.true;..............exp
2ce0 61 6e 64 65 64 20 3d 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 45 64 69 74 6f 72 anded.=.TMP_EditorUtility.Editor
2d00 54 6f 67 67 6c 65 28 72 2c 20 65 78 70 61 6e 64 65 64 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 Toggle(r,.expanded,.new.GUIConte
2d20 6e 74 28 70 61 6e 65 6c 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 70 61 nt(panel),.TMP_UIStyleManager.pa
2d40 6e 65 6c 54 69 74 6c 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 77 69 64 74 68 20 nelTitle);..............r.width.
2d60 2d 3d 20 31 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 4c 61 -=.10;..............EditorGUI.La
2d80 62 65 6c 46 69 65 6c 64 28 72 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 65 78 70 61 6e belField(r,.new.GUIContent(expan
2da0 64 65 64 20 3f 20 73 5f 50 61 6e 65 6c 53 74 61 74 65 4c 61 62 65 6c 5b 30 5d 20 3a 20 73 5f 50 ded.?.s_PanelStateLabel[0].:.s_P
2dc0 61 6e 65 6c 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d anelStateLabel[1]),.TMP_UIStyleM
2de0 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 anager.rightLabel);.............
2e00 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 65 6e 61 62 6c 65 64 3b 0d 0a 0d 0a 20 20 20 20 20 .GUI.enabled.=.enabled;.........
2e20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 .......GUILayout.EndHorizontal()
2e40 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e ;................EditorGUI.inden
2e60 74 4c 65 76 65 6c 20 2b 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 tLevel.+=.1;..............Editor
2e80 47 55 49 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 21 61 63 74 69 76 65 29 3b GUI.BeginDisabledGroup(!active);
2ea0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 65 78 70 61 6e 64 65 64 3b ................return.expanded;
2ec0 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f ..........}............public.vo
2ee0 69 64 20 45 6e 64 50 61 6e 65 6c 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 id.EndPanel()..........{........
2f00 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 ......EditorGUI.EndDisabledGroup
2f20 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e ();..............EditorGUI.inden
2f40 74 4c 65 76 65 6c 20 2d 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 tLevel.-=.1;..............Editor
2f60 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 GUILayout.EndVertical();........
2f80 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 ..}............MaterialProperty.
2fa0 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 73 74 72 69 6e 67 20 6e 61 6d 65 29 0d 0a 20 20 20 20 BeginProperty(string.name)......
2fc0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 ....{..............MaterialPrope
2fe0 72 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 46 69 6e 64 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 rty.property.=.FindProperty(name
3000 2c 20 6d 5f 50 72 6f 70 65 72 74 69 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 ,.m_Properties);..............Ed
3020 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 itorGUI.BeginChangeCheck();.....
3040 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 73 68 6f 77 4d 69 78 65 64 56 61 6c 75 .........EditorGUI.showMixedValu
3060 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 68 61 73 4d 69 78 65 64 56 61 6c 75 65 3b 0d 0a 20 20 20 e.=.property.hasMixedValue;.....
3080 20 20 20 20 20 20 20 20 20 6d 5f 45 64 69 74 6f 72 2e 42 65 67 69 6e 41 6e 69 6d 61 74 65 64 43 .........m_Editor.BeginAnimatedC
30a0 68 65 63 6b 28 52 65 63 74 2e 7a 65 72 6f 2c 20 70 72 6f 70 65 72 74 79 29 3b 0d 0a 0d 0a 20 20 heck(Rect.zero,.property);......
30c0 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 70 72 6f 70 65 72 74 79 3b 0d 0a 20 20 20 20 ..........return.property;......
30e0 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 45 6e 64 50 72 6f 70 65 72 74 ....}............bool.EndPropert
3100 79 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 64 y()..........{..............m_Ed
3120 69 74 6f 72 2e 45 6e 64 41 6e 69 6d 61 74 65 64 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 itor.EndAnimatedCheck();........
3140 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 73 68 6f 77 4d 69 78 65 64 56 61 6c 75 65 20 3d ......EditorGUI.showMixedValue.=
3160 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 45 64 69 74 .false;..............return.Edit
3180 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 orGUI.EndChangeCheck();.........
31a0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 50 .}............protected.void.DoP
31c0 6f 70 75 70 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 2c 20 opup(string.name,.string.label,.
31e0 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6f 70 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 7b GUIContent[].options)..........{
3200 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 ..............MaterialProperty.p
3220 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a roperty.=.BeginProperty(name);..
3240 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c ............s_TempLabel.text.=.l
3260 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 6e 64 65 78 20 3d 20 45 abel;..............int.index.=.E
3280 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 6f 70 75 70 28 73 5f 54 65 6d 70 4c 61 62 65 6c ditorGUILayout.Popup(s_TempLabel
32a0 2c 20 28 69 6e 74 29 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 6f 70 74 69 ,.(int)property.floatValue,.opti
32c0 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 ons);..............if.(EndProper
32e0 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 ty())..............{............
3300 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 69 6e 64 65 ......property.floatValue.=.inde
3320 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a x;..............}..........}....
3340 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 43 75 62 65 4d 61 70 ........protected.void.DoCubeMap
3360 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 29 0d 0a 20 20 20 (string.name,.string.label).....
3380 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 54 65 78 74 75 72 65 28 6e 61 .....{..............DoTexture(na
33a0 6d 65 2c 20 6c 61 62 65 6c 2c 20 74 79 70 65 6f 66 28 43 75 62 65 6d 61 70 29 29 3b 0d 0a 20 20 me,.label,.typeof(Cubemap));....
33c0 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 ......}............protected.voi
33e0 64 20 44 6f 54 65 78 74 75 72 65 32 44 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e d.DoTexture2D(string.name,.strin
3400 67 20 6c 61 62 65 6c 2c 20 62 6f 6f 6c 20 77 69 74 68 54 69 6c 69 6e 67 4f 66 66 73 65 74 20 3d g.label,.bool.withTilingOffset.=
3420 20 66 61 6c 73 65 2c 20 73 74 72 69 6e 67 5b 5d 20 73 70 65 65 64 4e 61 6d 65 73 20 3d 20 6e 75 .false,.string[].speedNames.=.nu
3440 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 54 65 ll)..........{..............DoTe
3460 78 74 75 72 65 28 6e 61 6d 65 2c 20 6c 61 62 65 6c 2c 20 74 79 70 65 6f 66 28 54 65 78 74 75 72 xture(name,.label,.typeof(Textur
3480 65 32 44 29 2c 20 77 69 74 68 54 69 6c 69 6e 67 4f 66 66 73 65 74 2c 20 73 70 65 65 64 4e 61 6d e2D),.withTilingOffset,.speedNam
34a0 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 es);..........}............void.
34c0 44 6f 54 65 78 74 75 72 65 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 DoTexture(string.name,.string.la
34e0 62 65 6c 2c 20 53 79 73 74 65 6d 2e 54 79 70 65 20 74 79 70 65 2c 20 62 6f 6f 6c 20 77 69 74 68 bel,.System.Type.type,.bool.with
3500 54 69 6c 69 6e 67 4f 66 66 73 65 74 20 3d 20 66 61 6c 73 65 2c 20 73 74 72 69 6e 67 5b 5d 20 73 TilingOffset.=.false,.string[].s
3520 70 65 65 64 4e 61 6d 65 73 20 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 peedNames.=.null)..........{....
3540 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 ..........MaterialProperty.prope
3560 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 rty.=.BeginProperty(name);......
3580 20 20 20 20 20 20 20 20 52 65 63 74 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 ........Rect.rect.=.EditorGUILay
35a0 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 74 72 75 65 2c 20 36 30 66 29 3b 0d 0a out.GetControlRect(true,.60f);..
35c0 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 74 6f 74 61 6c 57 69 64 74 68 20 3d 20 72 ............float.totalWidth.=.r
35e0 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 77 69 64 ect.width;..............rect.wid
3600 74 68 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 th.=.EditorGUIUtility.labelWidth
3620 20 2b 20 36 30 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c .+.60f;..............s_TempLabel
3640 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 62 6a 65 .text.=.label;..............Obje
3660 63 74 20 74 65 78 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 4f 62 6a 65 63 74 46 69 65 6c 64 28 72 ct.tex.=.EditorGUI.ObjectField(r
3680 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e 74 65 78 74 75 ect,.s_TempLabel,.property.textu
36a0 72 65 56 61 6c 75 65 2c 20 74 79 70 65 2c 20 66 61 6c 73 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 reValue,.type,.false);..........
36c0 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 ......if.(EndProperty())........
36e0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 ......{..................propert
3700 79 2e 74 65 78 74 75 72 65 56 61 6c 75 65 20 3d 20 74 65 78 20 61 73 20 54 65 78 74 75 72 65 3b y.textureValue.=.tex.as.Texture;
3720 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 ..............}................r
3740 65 63 74 2e 78 20 2b 3d 20 72 65 63 74 2e 77 69 64 74 68 20 2b 20 34 66 3b 0d 0a 20 20 20 20 20 ect.x.+=.rect.width.+.4f;.......
3760 20 20 20 20 20 20 20 72 65 63 74 2e 77 69 64 74 68 20 3d 20 74 6f 74 61 6c 57 69 64 74 68 20 2d .......rect.width.=.totalWidth.-
3780 20 72 65 63 74 2e 77 69 64 74 68 20 2d 20 34 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 .rect.width.-.4f;..............r
37a0 65 63 74 2e 68 65 69 67 68 74 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 ect.height.=.EditorGUIUtility.si
37c0 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ngleLineHeight;................i
37e0 66 20 28 77 69 74 68 54 69 6c 69 6e 67 4f 66 66 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 f.(withTilingOffset)............
3800 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 54 69 6c 69 6e 67 4f 66 66 ..{..................DoTilingOff
3820 73 65 74 28 72 65 63 74 2c 20 70 72 6f 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 set(rect,.property);............
3840 20 20 20 20 20 20 72 65 63 74 2e 79 20 2b 3d 20 28 72 65 63 74 2e 68 65 69 67 68 74 20 2b 20 32 ......rect.y.+=.(rect.height.+.2
3860 66 29 20 2a 20 32 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 f).*.2f;..............}.........
3880 20 20 20 20 20 20 20 69 66 20 28 73 70 65 65 64 4e 61 6d 65 73 20 21 3d 20 6e 75 6c 6c 29 0d 0a .......if.(speedNames.!=.null)..
38a0 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 ............{..................D
38c0 6f 55 56 53 70 65 65 64 28 72 65 63 74 2c 20 73 70 65 65 64 4e 61 6d 65 73 29 3b 0d 0a 20 20 20 oUVSpeed(rect,.speedNames);.....
38e0 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 .........}..........}...........
3900 20 76 6f 69 64 20 44 6f 54 69 6c 69 6e 67 4f 66 66 73 65 74 28 52 65 63 74 20 72 65 63 74 2c 20 .void.DoTilingOffset(Rect.rect,.
3920 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 MaterialProperty.property)......
3940 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6c 61 62 65 6c 57 69 ....{..............float.labelWi
3960 64 74 68 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 dth.=.EditorGUIUtility.labelWidt
3980 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 6e 64 65 6e 74 4c 65 76 65 6c 20 h;..............int.indentLevel.
39a0 3d 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 =.EditorGUI.indentLevel;........
39c0 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b ......EditorGUI.indentLevel.=.0;
39e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c ..............EditorGUIUtility.l
3a00 61 62 65 6c 57 69 64 74 68 20 3d 20 4d 61 74 68 66 2e 4d 69 6e 28 34 30 66 2c 20 72 65 63 74 2e abelWidth.=.Mathf.Min(40f,.rect.
3a20 77 69 64 74 68 20 2a 20 30 2e 32 30 66 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 width.*.0.20f);................V
3a40 65 63 74 6f 72 34 20 76 65 63 74 6f 72 20 3d 20 70 72 6f 70 65 72 74 79 2e 74 65 78 74 75 72 65 ector4.vector.=.property.texture
3a60 53 63 61 6c 65 41 6e 64 4f 66 66 73 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 ScaleAndOffset;................b
3a80 6f 6f 6c 20 63 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ool.changed.=.false;............
3aa0 20 20 66 6c 6f 61 74 5b 5d 20 76 61 6c 75 65 73 20 3d 20 73 5f 54 65 6d 70 46 6c 6f 61 74 73 5b ..float[].values.=.s_TempFloats[
3ac0 32 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 2];................s_TempLabel.t
3ae0 65 78 74 20 3d 20 22 54 69 6c 69 6e 67 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 ext.=."Tiling";..............Rec
3b00 74 20 76 65 63 74 6f 72 52 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 50 72 65 66 69 78 4c t.vectorRect.=.EditorGUI.PrefixL
3b20 61 62 65 6c 28 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 abel(rect,.s_TempLabel);........
3b40 20 20 20 20 20 20 76 61 6c 75 65 73 5b 30 5d 20 3d 20 76 65 63 74 6f 72 2e 78 3b 0d 0a 20 20 20 ......values[0].=.vector.x;.....
3b60 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 73 5b 31 5d 20 3d 20 76 65 63 74 6f 72 2e 79 3b 0d 0a .........values[1].=.vector.y;..
3b80 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 ............EditorGUI.BeginChang
3ba0 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 eCheck();..............EditorGUI
3bc0 2e 4d 75 6c 74 69 46 6c 6f 61 74 46 69 65 6c 64 28 76 65 63 74 6f 72 52 65 63 74 2c 20 73 5f 58 .MultiFloatField(vectorRect,.s_X
3be0 79 77 68 56 65 63 74 6f 72 4c 61 62 65 6c 73 2c 20 76 61 6c 75 65 73 29 3b 0d 0a 20 20 20 20 20 ywhVectorLabels,.values);.......
3c00 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 .......if.(EndProperty()).......
3c20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 65 63 74 6f 72 .......{..................vector
3c40 2e 78 20 3d 20 76 61 6c 75 65 73 5b 30 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .x.=.values[0];.................
3c60 20 76 65 63 74 6f 72 2e 79 20 3d 20 76 61 6c 75 65 73 5b 31 5d 3b 0d 0a 20 20 20 20 20 20 20 20 .vector.y.=.values[1];..........
3c80 20 20 20 20 20 20 20 20 63 68 61 6e 67 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 ........changed.=.true;.........
3ca0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 20 2b 3d 20 .....}................rect.y.+=.
3cc0 72 65 63 74 2e 68 65 69 67 68 74 20 2b 20 32 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 rect.height.+.2f;..............s
3ce0 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 22 4f 66 66 73 65 74 22 3b 0d 0a 20 20 20 _TempLabel.text.=."Offset";.....
3d00 20 20 20 20 20 20 20 20 20 76 65 63 74 6f 72 52 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e .........vectorRect.=.EditorGUI.
3d20 50 72 65 66 69 78 4c 61 62 65 6c 28 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 29 3b 0d PrefixLabel(rect,.s_TempLabel);.
3d40 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 73 5b 30 5d 20 3d 20 76 65 63 74 6f 72 2e .............values[0].=.vector.
3d60 7a 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 73 5b 31 5d 20 3d 20 76 65 63 74 z;..............values[1].=.vect
3d80 6f 72 2e 77 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 or.w;..............EditorGUI.Beg
3da0 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 inChangeCheck();..............Ed
3dc0 69 74 6f 72 47 55 49 2e 4d 75 6c 74 69 46 6c 6f 61 74 46 69 65 6c 64 28 76 65 63 74 6f 72 52 65 itorGUI.MultiFloatField(vectorRe
3de0 63 74 2c 20 73 5f 58 79 77 68 56 65 63 74 6f 72 4c 61 62 65 6c 73 2c 20 76 61 6c 75 65 73 29 3b ct,.s_XywhVectorLabels,.values);
3e00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 ..............if.(EndProperty())
3e20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
3e40 20 76 65 63 74 6f 72 2e 7a 20 3d 20 76 61 6c 75 65 73 5b 30 5d 3b 0d 0a 20 20 20 20 20 20 20 20 .vector.z.=.values[0];..........
3e60 20 20 20 20 20 20 20 20 76 65 63 74 6f 72 2e 77 20 3d 20 76 61 6c 75 65 73 5b 31 5d 3b 0d 0a 20 ........vector.w.=.values[1];...
3e80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 6e 67 65 64 20 3d 20 74 72 75 65 3b 0d 0a ...............changed.=.true;..
3ea0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ............}................if.
3ec0 28 63 68 61 6e 67 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 (changed)..............{........
3ee0 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 74 65 78 74 75 72 65 53 63 61 6c 65 41 ..........property.textureScaleA
3f00 6e 64 4f 66 66 73 65 74 20 3d 20 76 65 63 74 6f 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ndOffset.=.vector;..............
3f20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 }................EditorGUIUtilit
3f40 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 y.labelWidth.=.labelWidth;......
3f60 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 ........EditorGUI.indentLevel.=.
3f80 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 indentLevel;..........}.........
3fa0 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 55 56 53 70 65 65 64 28 52 65 63 74 ...protected.void.DoUVSpeed(Rect
3fc0 20 72 65 63 74 2c 20 73 74 72 69 6e 67 5b 5d 20 6e 61 6d 65 73 29 0d 0a 20 20 20 20 20 20 20 20 .rect,.string[].names)..........
3fe0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6c 61 62 65 6c 57 69 64 74 68 20 {..............float.labelWidth.
4000 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a =.EditorGUIUtility.labelWidth;..
4020 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 45 64 ............int.indentLevel.=.Ed
4040 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 itorGUI.indentLevel;............
4060 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 ..EditorGUI.indentLevel.=.0;....
4080 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c ..........EditorGUIUtility.label
40a0 57 69 64 74 68 20 3d 20 4d 61 74 68 66 2e 4d 69 6e 28 34 30 66 2c 20 72 65 63 74 2e 77 69 64 74 Width.=.Mathf.Min(40f,.rect.widt
40c0 68 20 2a 20 30 2e 32 30 66 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d h.*.0.20f);................s_Tem
40e0 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 22 53 70 65 65 64 22 3b 0d 0a 20 20 20 20 20 20 20 20 pLabel.text.=."Speed";..........
4100 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 50 72 65 66 69 78 4c 61 62 65 6c ....rect.=.EditorGUI.PrefixLabel
4120 28 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 (rect,.s_TempLabel);............
4140 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 ....EditorGUIUtility.labelWidth.
4160 3d 20 31 33 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 77 69 64 74 68 20 3d =.13f;..............rect.width.=
4180 20 72 65 63 74 2e 77 69 64 74 68 20 2a 20 30 2e 35 66 20 2d 20 31 66 3b 0d 0a 20 20 20 20 20 20 .rect.width.*.0.5f.-.1f;........
41a0 20 20 20 20 20 20 44 6f 46 6c 6f 61 74 28 72 65 63 74 2c 20 6e 61 6d 65 73 5b 30 5d 2c 20 22 58 ......DoFloat(rect,.names[0],."X
41c0 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 78 20 2b 3d 20 72 65 63 74 2e ");..............rect.x.+=.rect.
41e0 77 69 64 74 68 20 2b 20 32 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 6f 46 6c 6f 61 74 width.+.2f;..............DoFloat
4200 28 72 65 63 74 2c 20 6e 61 6d 65 73 5b 31 5d 2c 20 22 59 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 (rect,.names[1],."Y");..........
4220 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 ....EditorGUIUtility.labelWidth.
4240 3d 20 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f =.labelWidth;..............Edito
4260 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 69 6e 64 65 6e 74 4c 65 76 65 6c 3b 0d rGUI.indentLevel.=.indentLevel;.
4280 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 .........}............protected.
42a0 76 6f 69 64 20 44 6f 54 6f 67 67 6c 65 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e void.DoToggle(string.name,.strin
42c0 67 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 g.label)..........{.............
42e0 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 42 65 67 .MaterialProperty.property.=.Beg
4300 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 inProperty(name);..............s
4320 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 _TempLabel.text.=.label;........
4340 20 20 20 20 20 20 62 6f 6f 6c 20 76 61 6c 75 65 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f ......bool.value.=.EditorGUILayo
4360 75 74 2e 54 6f 67 67 6c 65 28 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e ut.Toggle(s_TempLabel,.property.
4380 66 6c 6f 61 74 56 61 6c 75 65 20 3d 3d 20 31 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 floatValue.==.1f);..............
43a0 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 if.(EndProperty())..............
43c0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 {..................property.floa
43e0 74 56 61 6c 75 65 20 3d 20 76 61 6c 75 65 20 3f 20 31 66 20 3a 20 30 66 3b 0d 0a 20 20 20 20 20 tValue.=.value.?.1f.:.0f;.......
4400 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 .......}..........}............p
4420 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 46 6c 6f 61 74 28 73 74 72 69 6e 67 20 6e 61 6d rotected.void.DoFloat(string.nam
4440 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 e,.string.label)..........{.....
4460 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 .........MaterialProperty.proper
4480 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 ty.=.BeginProperty(name);.......
44a0 20 20 20 20 20 20 20 52 65 63 74 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f .......Rect.rect.=.EditorGUILayo
44c0 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ut.GetControlRect();............
44e0 20 20 72 65 63 74 2e 77 69 64 74 68 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e ..rect.width.=.EditorGUIUtility.
4500 6c 61 62 65 6c 57 69 64 74 68 20 2b 20 35 35 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 labelWidth.+.55f;..............s
4520 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 _TempLabel.text.=.label;........
4540 20 20 20 20 20 20 66 6c 6f 61 74 20 76 61 6c 75 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 46 6c ......float.value.=.EditorGUI.Fl
4560 6f 61 74 46 69 65 6c 64 28 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 oatField(rect,.s_TempLabel,.prop
4580 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 erty.floatValue);..............i
45a0 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b f.(EndProperty())..............{
45c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 ..................property.float
45e0 56 61 6c 75 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 Value.=.value;..............}...
4600 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f .......}............protected.vo
4620 69 64 20 44 6f 43 6f 6c 6f 72 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c id.DoColor(string.name,.string.l
4640 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 abel)..........{..............Ma
4660 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 terialProperty.property.=.BeginP
4680 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 roperty(name);..............s_Te
46a0 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 mpLabel.text.=.label;...........
46c0 20 20 20 43 6f 6c 6f 72 20 76 61 6c 75 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 43 6f 6c 6f 72 ...Color.value.=.EditorGUI.Color
46e0 46 69 65 6c 64 28 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c Field(EditorGUILayout.GetControl
4700 52 65 63 74 28 29 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e 63 6f Rect(),.s_TempLabel,.property.co
4720 6c 6f 72 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 lorValue);..............if.(EndP
4740 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 roperty())..............{.......
4760 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 63 6f 6c 6f 72 56 61 6c 75 65 20 3d ...........property.colorValue.=
4780 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 .value;..............}..........
47a0 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 6f 46 6c 6f 61 74 28 52 65 63 74 20 72 }............void.DoFloat(Rect.r
47c0 65 63 74 2c 20 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 29 0d ect,.string.name,.string.label).
47e0 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c .........{..............Material
4800 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 Property.property.=.BeginPropert
4820 79 28 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 y(name);..............s_TempLabe
4840 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f l.text.=.label;..............flo
4860 61 74 20 76 61 6c 75 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 46 6c 6f 61 74 46 69 65 6c 64 28 at.value.=.EditorGUI.FloatField(
4880 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 rect,.s_TempLabel,.property.floa
48a0 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f tValue);..............if.(EndPro
48c0 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 perty())..............{.........
48e0 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 76 .........property.floatValue.=.v
4900 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d alue;..............}..........}.
4920 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 53 6c 69 64 ...........protected.void.DoSlid
4940 65 72 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 29 0d 0a 20 er(string.name,.string.label)...
4960 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 .......{..............MaterialPr
4980 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 operty.property.=.BeginProperty(
49a0 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 32 20 72 61 6e 67 name);..............Vector2.rang
49c0 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 72 61 6e 67 65 4c 69 6d 69 74 73 3b 0d 0a 20 20 20 20 20 e.=.property.rangeLimits;.......
49e0 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b .......s_TempLabel.text.=.label;
4a00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 76 61 6c 75 65 20 3d 20 45 64 69 74 ..............float.value.=.Edit
4a20 6f 72 47 55 49 2e 53 6c 69 64 65 72 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 orGUI.Slider(..................E
4a40 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 29 2c ditorGUILayout.GetControlRect(),
4a60 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 .s_TempLabel,.property.floatValu
4a80 65 2c 20 72 61 6e 67 65 2e 78 2c 20 72 61 6e 67 65 2e 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 e,.range.x,.range.y.............
4aa0 20 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 .);..............if.(EndProperty
4ac0 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ())..............{..............
4ae0 20 20 20 20 70 72 6f 70 65 72 74 79 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 76 61 6c 75 65 3b ....property.floatValue.=.value;
4b00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 ..............}..........}......
4b20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 56 65 63 74 6f 72 33 28 73 ......protected.void.DoVector3(s
4b40 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 tring.name,.string.label).......
4b60 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 ...{..............MaterialProper
4b80 74 79 20 70 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 ty.property.=.BeginProperty(name
4ba0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 );..............s_TempLabel.text
4bc0 20 3d 20 6c 61 62 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 34 20 76 .=.label;..............Vector4.v
4be0 61 6c 75 65 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 56 65 63 74 6f 72 33 46 69 alue.=.EditorGUILayout.Vector3Fi
4c00 65 6c 64 28 73 5f 54 65 6d 70 4c 61 62 65 6c 2c 20 70 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 eld(s_TempLabel,.property.vector
4c20 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 6e 64 50 72 6f 70 Value);..............if.(EndProp
4c40 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 erty())..............{..........
4c60 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 56 61 6c 75 65 20 3d 20 76 ........property.vectorValue.=.v
4c80 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d alue;..............}..........}.
4ca0 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 44 6f 56 65 63 74 ...........protected.void.DoVect
4cc0 6f 72 28 73 74 72 69 6e 67 20 6e 61 6d 65 2c 20 73 74 72 69 6e 67 20 6c 61 62 65 6c 2c 20 47 55 or(string.name,.string.label,.GU
4ce0 49 43 6f 6e 74 65 6e 74 5b 5d 20 73 75 62 4c 61 62 65 6c 73 29 0d 0a 20 20 20 20 20 20 20 20 7b IContent[].subLabels)..........{
4d00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 50 72 6f 70 65 72 74 79 20 70 ..............MaterialProperty.p
4d20 72 6f 70 65 72 74 79 20 3d 20 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 6e 61 6d 65 29 3b 0d 0a roperty.=.BeginProperty(name);..
4d40 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 ............Rect.rect.=.EditorGU
4d60 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 29 3b 0d 0a 20 20 20 20 20 ILayout.GetControlRect();.......
4d80 20 20 20 20 20 20 20 73 5f 54 65 6d 70 4c 61 62 65 6c 2e 74 65 78 74 20 3d 20 6c 61 62 65 6c 3b .......s_TempLabel.text.=.label;
4da0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 50 ..............rect.=.EditorGUI.P
4dc0 72 65 66 69 78 4c 61 62 65 6c 28 72 65 63 74 2c 20 73 5f 54 65 6d 70 4c 61 62 65 6c 29 3b 0d 0a refixLabel(rect,.s_TempLabel);..
4de0 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 34 20 76 65 63 74 6f 72 20 3d 20 70 72 6f ............Vector4.vector.=.pro
4e00 70 65 72 74 79 2e 76 65 63 74 6f 72 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 perty.vectorValue;..............
4e20 20 20 66 6c 6f 61 74 5b 5d 20 76 61 6c 75 65 73 20 3d 20 73 5f 54 65 6d 70 46 6c 6f 61 74 73 5b ..float[].values.=.s_TempFloats[
4e40 73 75 62 4c 61 62 65 6c 73 2e 4c 65 6e 67 74 68 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 subLabels.Length];..............
4e60 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 73 75 62 4c 61 62 65 6c 73 2e 4c 65 for.(int.i.=.0;.i.<.subLabels.Le
4e80 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ngth;.i++)..............{.......
4ea0 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 73 5b 69 5d 20 3d 20 76 65 63 74 6f 72 5b 69 5d ...........values[i].=.vector[i]
4ec0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ;..............}................
4ee0 45 64 69 74 6f 72 47 55 49 2e 4d 75 6c 74 69 46 6c 6f 61 74 46 69 65 6c 64 28 72 65 63 74 2c 20 EditorGUI.MultiFloatField(rect,.
4f00 73 75 62 4c 61 62 65 6c 73 2c 20 76 61 6c 75 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 subLabels,.values);.............
4f20 20 69 66 20 28 45 6e 64 50 72 6f 70 65 72 74 79 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .if.(EndProperty()).............
4f40 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d .{..................for.(int.i.=
4f60 20 30 3b 20 69 20 3c 20 73 75 62 4c 61 62 65 6c 73 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a .0;.i.<.subLabels.Length;.i++)..
4f80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
4fa0 20 20 20 20 20 20 20 76 65 63 74 6f 72 5b 69 5d 20 3d 20 76 61 6c 75 65 73 5b 69 5d 3b 0d 0a 20 .......vector[i].=.values[i];...
4fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...............}................
4fe0 20 20 20 20 70 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 56 61 6c 75 65 20 3d 20 76 65 63 74 6f ....property.vectorValue.=.vecto
5000 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a r;..............}..........}....
5020 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 6f 44 72 61 67 41 6e 64 44 72 6f 70 42 65 67 69 6e 28 ........void.DoDragAndDropBegin(
5040 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 72 61 67 )..........{..............m_Drag
5060 41 6e 64 44 72 6f 70 4d 69 6e 59 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 AndDropMinY.=.GUILayoutUtility.G
5080 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 etRect(0f,.0f,.GUILayout.ExpandW
50a0 69 64 74 68 28 74 72 75 65 29 29 2e 79 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 idth(true)).y;..........}.......
50c0 20 20 20 20 20 76 6f 69 64 20 44 6f 44 72 61 67 41 6e 64 44 72 6f 70 45 6e 64 28 29 0d 0a 20 20 .....void.DoDragAndDropEnd()....
50e0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 65 63 74 20 3d ......{..............Rect.rect.=
5100 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 .GUILayoutUtility.GetRect(0f,.0f
5120 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d ,.GUILayout.ExpandWidth(true));.
5140 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 20 65 76 74 20 3d 20 45 76 65 6e 74 2e 63 .............Event.evt.=.Event.c
5160 75 72 72 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 74 2e 74 79 70 urrent;..............if.(evt.typ
5180 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 44 72 61 67 55 70 64 61 74 65 64 29 0d 0a 20 20 20 e.==.EventType.DragUpdated).....
51a0 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 67 .........{..................Drag
51c0 41 6e 64 44 72 6f 70 2e 76 69 73 75 61 6c 4d 6f 64 65 20 3d 20 44 72 61 67 41 6e 64 44 72 6f 70 AndDrop.visualMode.=.DragAndDrop
51e0 56 69 73 75 61 6c 4d 6f 64 65 2e 47 65 6e 65 72 69 63 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 VisualMode.Generic;.............
5200 20 20 20 20 20 65 76 74 2e 55 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a .....evt.Use();..............}..
5220 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 0d 0a 20 20 20 20 20 20 20 20 20 ............else.if.(...........
5240 20 20 20 20 20 20 20 65 76 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 65 2e 44 72 61 .......evt.type.==.EventType.Dra
5260 67 50 65 72 66 6f 72 6d 20 26 26 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 gPerform.&&..................Rec
5280 74 2e 4d 69 6e 4d 61 78 52 65 63 74 28 72 65 63 74 2e 78 4d 69 6e 2c 20 6d 5f 44 72 61 67 41 6e t.MinMaxRect(rect.xMin,.m_DragAn
52a0 64 44 72 6f 70 4d 69 6e 59 2c 20 72 65 63 74 2e 78 4d 61 78 2c 20 72 65 63 74 2e 79 4d 61 78 29 dDropMinY,.rect.xMax,.rect.yMax)
52c0 2e 43 6f 6e 74 61 69 6e 73 28 65 76 74 2e 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 29 0d 0a 20 20 .Contains(evt.mousePosition)....
52e0 20 20 20 20 20 20 20 20 20 20 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 ..........)..............{......
5300 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 67 41 6e 64 44 72 6f 70 2e 41 63 63 65 70 74 44 72 ............DragAndDrop.AcceptDr
5320 61 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 76 74 2e 55 73 65 28 29 ag();..................evt.Use()
5340 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 20 64 72 6f 70 ;..................Material.drop
5360 70 65 64 4d 61 74 65 72 69 61 6c 20 3d 20 44 72 61 67 41 6e 64 44 72 6f 70 2e 6f 62 6a 65 63 74 pedMaterial.=.DragAndDrop.object
5380 52 65 66 65 72 65 6e 63 65 73 5b 30 5d 20 61 73 20 4d 61 74 65 72 69 61 6c 3b 0d 0a 20 20 20 20 References[0].as.Material;......
53a0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 6f 70 70 65 64 4d 61 74 65 72 69 61 6c 20 ............if.(droppedMaterial.
53c0 26 26 20 64 72 6f 70 70 65 64 4d 61 74 65 72 69 61 6c 20 21 3d 20 6d 5f 4d 61 74 65 72 69 61 6c &&.droppedMaterial.!=.m_Material
53e0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 )..................{............
5400 20 20 20 20 20 20 20 20 20 20 50 65 72 66 6f 72 6d 44 72 6f 70 28 64 72 6f 70 70 65 64 4d 61 74 ..........PerformDrop(droppedMat
5420 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 erial);..................}......
5440 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ........}..........}............
5460 76 6f 69 64 20 50 65 72 66 6f 72 6d 44 72 6f 70 28 4d 61 74 65 72 69 61 6c 20 64 72 6f 70 70 65 void.PerformDrop(Material.droppe
5480 64 4d 61 74 65 72 69 61 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 dMaterial)..........{...........
54a0 20 20 20 54 65 78 74 75 72 65 20 64 72 6f 70 70 65 64 54 65 78 20 3d 20 64 72 6f 70 70 65 64 4d ...Texture.droppedTex.=.droppedM
54c0 61 74 65 72 69 61 6c 2e 47 65 74 54 65 78 74 75 72 65 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 aterial.GetTexture(ShaderUtiliti
54e0 65 73 2e 49 44 5f 4d 61 69 6e 54 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 es.ID_MainTex);..............if.
5500 28 21 64 72 6f 70 70 65 64 54 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 (!droppedTex)..............{....
5520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 ..............return;...........
5540 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 65 78 74 75 72 65 20 63 75 72 72 ...}................Texture.curr
5560 65 6e 74 54 65 78 20 3d 20 6d 5f 4d 61 74 65 72 69 61 6c 2e 47 65 74 54 65 78 74 75 72 65 28 53 entTex.=.m_Material.GetTexture(S
5580 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 4d 61 69 6e 54 65 78 29 3b 0d 0a 20 20 20 haderUtilities.ID_MainTex);.....
55a0 20 20 20 20 20 20 20 20 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 72 65 71 75 69 72 65 64 46 .........TMP_FontAsset.requiredF
55c0 6f 6e 74 41 73 73 65 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 ontAsset.=.null;..............if
55e0 20 28 64 72 6f 70 70 65 64 54 65 78 20 21 3d 20 63 75 72 72 65 6e 74 54 65 78 29 0d 0a 20 20 20 .(droppedTex.!=.currentTex).....
5600 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 71 75 .........{..................requ
5620 69 72 65 64 46 6f 6e 74 41 73 73 65 74 20 3d 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 iredFontAsset.=.TMP_EditorUtilit
5640 79 2e 46 69 6e 64 4d 61 74 63 68 69 6e 67 46 6f 6e 74 41 73 73 65 74 28 64 72 6f 70 70 65 64 4d y.FindMatchingFontAsset(droppedM
5660 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 aterial);..................if.(!
5680 72 65 71 75 69 72 65 64 46 6f 6e 74 41 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 requiredFontAsset)..............
56a0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 ....{......................retur
56c0 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 n;..................}...........
56e0 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 47 61 6d ...}................foreach.(Gam
5700 65 4f 62 6a 65 63 74 20 6f 20 69 6e 20 53 65 6c 65 63 74 69 6f 6e 2e 67 61 6d 65 4f 62 6a 65 63 eObject.o.in.Selection.gameObjec
5720 74 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ts)..............{..............
5740 20 20 20 20 69 66 20 28 72 65 71 75 69 72 65 64 46 6f 6e 74 41 73 73 65 74 29 0d 0a 20 20 20 20 ....if.(requiredFontAsset)......
5760 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............{...................
5780 20 20 20 54 4d 50 5f 54 65 78 74 20 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 20 3d 20 6f 2e 47 65 ...TMP_Text.textComponent.=.o.Ge
57a0 74 43 6f 6d 70 6f 6e 65 6e 74 3c 54 4d 50 5f 54 65 78 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 tComponent<TMP_Text>();.........
57c0 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 29 0d .............if.(textComponent).
57e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .....................{..........
5800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 64 6f 2e 52 65 63 6f 72 64 4f 62 6a 65 63 ................Undo.RecordObjec
5820 74 28 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 2c 20 22 46 6f 6e 74 20 41 73 73 65 74 20 43 68 61 t(textComponent,."Font.Asset.Cha
5840 6e 67 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nge");..........................
5860 74 65 78 74 43 6f 6d 70 6f 6e 65 6e 74 2e 66 6f 6e 74 20 3d 20 72 65 71 75 69 72 65 64 46 6f 6e textComponent.font.=.requiredFon
5880 74 41 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a tAsset;......................}..
58a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ................}...............
58c0 20 20 20 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 72 2e 4f 4e 5f 44 52 41 47 5f .....TMPro_EventManager.ON_DRAG_
58e0 41 4e 44 5f 44 52 4f 50 5f 4d 41 54 45 52 49 41 4c 5f 43 48 41 4e 47 45 44 28 6f 2c 20 6d 5f 4d AND_DROP_MATERIAL_CHANGED(o,.m_M
5900 61 74 65 72 69 61 6c 2c 20 64 72 6f 70 70 65 64 4d 61 74 65 72 69 61 6c 29 3b 0d 0a 20 20 20 20 aterial,.droppedMaterial);......
5920 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 53 65 74 44 69 72 ............EditorUtility.SetDir
5940 74 79 28 6f 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d ty(o);..............}..........}
5960 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ......}..}......................
5980 11 00 00 00 54 4d 50 5f 42 61 73 65 53 68 61 64 65 72 47 55 49 00 00 00 15 00 00 00 54 4d 50 72 ....TMP_BaseShaderGUI.......TMPr
59a0 6f 2e 45 64 69 74 6f 72 55 74 69 6c 69 74 69 65 73 00 00 00 o.EditorUtilities...