summaryrefslogtreecommitdiff
path: root/Library/Artifacts/a7/a732607c67c785d501297d0666c5694c
blob: 763ef465b5983408922e024f5cf3959039a545a7 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 64 18 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......d.............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 b8 53 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 .S..............................
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 17 00 00 00 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 49 6e 73 70 65 63 ............AnimationTrackInspec
10a0 74 6f 72 00 26 53 00 00 2f 2f 23 64 65 66 69 6e 65 20 50 45 52 46 5f 50 52 4f 46 49 4c 45 0a 0a tor.&S..//#define.PERF_PROFILE..
10c0 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6d 70 6f using.System;.using.System.Compo
10e0 6e 65 6e 74 4d 6f 64 65 6c 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0a 75 73 nentModel;.using.System.Linq;.us
1100 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 ing.UnityEngine;.using.UnityEngi
1120 6e 65 2e 54 69 6d 65 6c 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 50 ne.Timeline;.using.UnityEngine.P
1140 6c 61 79 61 62 6c 65 73 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 64 69 74 6f 72 layables;..namespace.UnityEditor
1160 2e 54 69 6d 65 6c 69 6e 65 0a 7b 0a 20 20 20 20 5b 43 75 73 74 6f 6d 45 64 69 74 6f 72 28 74 79 .Timeline.{.....[CustomEditor(ty
1180 70 65 6f 66 28 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 29 29 2c 20 43 61 6e 45 64 69 74 4d 75 peof(AnimationTrack)),.CanEditMu
11a0 6c 74 69 70 6c 65 4f 62 6a 65 63 74 73 5d 0a 20 20 20 20 63 6c 61 73 73 20 41 6e 69 6d 61 74 69 ltipleObjects].....class.Animati
11c0 6f 6e 54 72 61 63 6b 49 6e 73 70 65 63 74 6f 72 20 3a 20 54 72 61 63 6b 41 73 73 65 74 49 6e 73 onTrackInspector.:.TrackAssetIns
11e0 70 65 63 74 6f 72 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 63 6c 61 73 pector.....{.........static.clas
1200 73 20 53 74 79 6c 65 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 s.Styles.........{.............p
1220 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 4d 61 74 63 68 54 61 72 ublic.static.GUIContent.MatchTar
1240 67 65 74 46 69 65 6c 64 73 54 69 74 6c 65 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 getFieldsTitle.=.EditorGUIUtilit
1260 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 44 65 66 61 75 6c 74 20 4f 66 66 73 65 74 20 y.TrTextContent("Default.Offset.
1280 4d 61 74 63 68 20 46 69 65 6c 64 73 22 2c 20 22 46 69 65 6c 64 73 20 74 6f 20 61 70 70 6c 79 20 Match.Fields",."Fields.to.apply.
12a0 77 68 65 6e 20 6d 61 74 63 68 69 6e 67 20 6f 66 66 73 65 74 73 20 6f 6e 20 63 6c 69 70 73 2e 20 when.matching.offsets.on.clips..
12c0 54 68 65 73 65 20 61 72 65 20 74 68 65 20 64 65 66 61 75 6c 74 73 2c 20 61 6e 64 20 63 61 6e 20 These.are.the.defaults,.and.can.
12e0 62 65 20 6f 76 65 72 72 69 64 64 65 6e 20 66 6f 72 20 65 61 63 68 20 63 6c 69 70 2e 22 29 3b 0a be.overridden.for.each.clip.");.
1300 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e ............public.static.readon
1320 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 50 6f 73 69 74 69 6f 6e 49 63 6f 6e 20 3d 20 45 64 69 ly.GUIContent.PositionIcon.=.Edi
1340 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 49 63 6f 6e 43 6f 6e 74 65 6e 74 28 22 4d 6f 76 65 54 torGUIUtility.IconContent("MoveT
1360 6f 6f 6c 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 ool");.............public.static
1380 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 52 6f 74 61 74 69 6f 6e 49 63 6f .readonly.GUIContent.RotationIco
13a0 6e 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 49 63 6f 6e 43 6f 6e 74 65 6e 74 n.=.EditorGUIUtility.IconContent
13c0 28 22 52 6f 74 61 74 65 54 6f 6f 6c 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 ("RotateTool");..............pub
13e0 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 58 54 69 74 6c 65 20 3d 20 45 lic.static.GUIContent.XTitle.=.E
1400 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 58 22 29 ditorGUIUtility.TextContent("X")
1420 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 ;.............public.static.GUIC
1440 6f 6e 74 65 6e 74 20 59 54 69 74 6c 65 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 ontent.YTitle.=.EditorGUIUtility
1460 2e 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 59 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 .TextContent("Y");.............p
1480 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 49 43 6f 6e 74 65 6e 74 20 5a 54 69 74 6c 65 20 3d ublic.static.GUIContent.ZTitle.=
14a0 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 5a .EditorGUIUtility.TextContent("Z
14c0 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 55 ");.............public.static.GU
14e0 49 43 6f 6e 74 65 6e 74 20 50 6f 73 69 74 69 6f 6e 54 69 74 6c 65 20 3d 20 45 64 69 74 6f 72 47 IContent.PositionTitle.=.EditorG
1500 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 50 6f 73 69 74 69 6f UIUtility.TrTextContent("Positio
1520 6e 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 47 n");.............public.static.G
1540 55 49 43 6f 6e 74 65 6e 74 20 52 6f 74 61 74 69 6f 6e 54 69 74 6c 65 20 3d 20 45 64 69 74 6f 72 UIContent.RotationTitle.=.Editor
1560 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 52 6f 74 61 74 69 GUIUtility.TrTextContent("Rotati
1580 6f 6e 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 on");..............public.static
15a0 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 4f 66 66 73 65 74 4d 6f 64 65 54 .readonly.GUIContent.OffsetModeT
15c0 69 74 6c 65 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f itle.=.EditorGUIUtility.TrTextCo
15e0 6e 74 65 6e 74 28 22 54 72 61 63 6b 20 4f 66 66 73 65 74 73 22 29 3b 0a 20 20 20 20 20 20 20 20 ntent("Track.Offsets");.........
1600 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 74 72 69 6e ....public.static.readonly.strin
1620 67 20 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 49 6e 66 6f 20 3d 20 4c 31 30 6e 2e 54 72 28 g.TransformOffsetInfo.=.L10n.Tr(
1640 22 54 72 61 6e 73 66 6f 72 6d 20 6f 66 66 73 65 74 73 20 61 72 65 20 61 70 70 6c 69 65 64 20 74 "Transform.offsets.are.applied.t
1660 6f 20 74 68 65 20 65 6e 74 69 72 65 20 74 72 61 63 6b 2e 20 55 73 65 20 74 68 69 73 20 6d 6f 64 o.the.entire.track..Use.this.mod
1680 65 20 74 6f 20 70 6c 61 79 20 74 68 65 20 61 6e 69 6d 61 74 69 6f 6e 20 74 72 61 63 6b 20 61 74 e.to.play.the.animation.track.at
16a0 20 61 20 66 69 78 65 64 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 72 6f 74 61 74 69 6f 6e 2e 22 .a.fixed.position.and.rotation."
16c0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 );.............public.static.rea
16e0 64 6f 6e 6c 79 20 73 74 72 69 6e 67 20 53 63 65 6e 65 4f 66 66 73 65 74 49 6e 66 6f 20 3d 20 4c donly.string.SceneOffsetInfo.=.L
1700 31 30 6e 2e 54 72 28 22 53 63 65 6e 65 20 6f 66 66 73 65 74 73 20 77 69 6c 6c 20 75 73 65 20 74 10n.Tr("Scene.offsets.will.use.t
1720 68 65 20 65 78 69 73 74 69 6e 67 20 74 72 61 6e 73 66 6f 72 6d 20 61 73 20 69 6e 69 74 69 61 6c he.existing.transform.as.initial
1740 20 6f 66 66 73 65 74 73 2e 20 55 73 65 20 74 68 69 73 20 74 6f 20 70 6c 61 79 20 74 68 65 20 74 .offsets..Use.this.to.play.the.t
1760 72 61 63 6b 20 66 72 6f 6d 20 74 68 65 20 67 61 6d 65 4f 62 6a 65 63 74 73 20 63 75 72 72 65 6e rack.from.the.gameObjects.curren
1780 74 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 72 6f 74 61 74 69 6f 6e 2e 22 29 3b 0a 20 20 20 20 t.position.and.rotation.");.....
17a0 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 ........public.static.readonly.s
17c0 74 72 69 6e 67 20 41 75 74 6f 4f 66 66 73 65 74 49 6e 66 6f 20 3d 20 4c 31 30 6e 2e 54 72 28 22 tring.AutoOffsetInfo.=.L10n.Tr("
17e0 41 75 74 6f 20 77 69 6c 6c 20 61 70 70 6c 79 20 73 63 65 6e 65 20 6f 66 66 73 65 74 73 20 69 66 Auto.will.apply.scene.offsets.if
1800 20 74 68 65 72 65 20 69 73 20 61 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 61 74 74 61 63 68 65 64 20 .there.is.a.controller.attached.
1820 74 6f 20 74 68 65 20 61 6e 69 6d 61 74 6f 72 20 61 6e 64 20 74 72 61 6e 73 66 6f 72 6d 20 6f 66 to.the.animator.and.transform.of
1840 66 73 65 74 73 20 6f 74 68 65 72 77 69 73 65 2e 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 fsets.otherwise.");.............
1860 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 74 72 69 6e 67 20 41 75 public.static.readonly.string.Au
1880 74 6f 4f 66 66 73 65 74 57 61 72 6e 69 6e 67 20 3d 20 4c 31 30 6e 2e 54 72 28 22 54 68 69 73 20 toOffsetWarning.=.L10n.Tr("This.
18a0 6d 6f 64 65 20 69 73 20 64 65 70 72 65 63 61 74 65 64 20 6d 61 79 20 62 65 20 72 65 6d 6f 76 65 mode.is.deprecated.may.be.remove
18c0 64 20 69 6e 20 61 20 66 75 74 75 72 65 20 72 65 6c 65 61 73 65 2e 22 29 3b 0a 20 20 20 20 20 20 d.in.a.future.release.");.......
18e0 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 74 72 ......public.static.readonly.str
1900 69 6e 67 20 49 6e 68 65 72 69 74 65 64 46 72 6f 6d 50 61 72 65 6e 74 20 3d 20 4c 31 30 6e 2e 54 ing.InheritedFromParent.=.L10n.T
1920 72 28 22 49 6e 68 65 72 69 74 65 64 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c r("Inherited");.............publ
1940 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 73 74 72 69 6e 67 20 49 6e 68 65 72 69 ic.static.readonly.string.Inheri
1960 74 65 64 54 6f 6f 6c 54 69 70 20 3d 20 4c 31 30 6e 2e 54 72 28 22 54 68 69 73 20 76 61 6c 75 65 tedToolTip.=.L10n.Tr("This.value
1980 20 69 73 20 69 6e 68 65 72 69 74 65 64 20 66 72 6f 6d 20 69 74 27 73 20 70 61 72 65 6e 74 20 74 .is.inherited.from.it's.parent.t
19a0 72 61 63 6b 2e 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 rack.");..............public.sta
19c0 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 52 65 63 6f 72 64 69 6e tic.readonly.GUIContent.Recordin
19e0 67 4f 66 66 73 65 74 73 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 gOffsets.=.EditorGUIUtility.TrTe
1a00 78 74 43 6f 6e 74 65 6e 74 28 22 52 65 63 6f 72 64 65 64 20 4f 66 66 73 65 74 73 22 2c 20 22 4f xtContent("Recorded.Offsets",."O
1a20 66 66 73 65 74 73 20 61 70 70 6c 69 65 64 20 74 6f 20 72 65 63 6f 72 64 65 64 20 70 6f 73 69 74 ffsets.applied.to.recorded.posit
1a40 69 6f 6e 20 61 6e 64 20 72 6f 74 61 74 69 6f 6e 20 6b 65 79 73 22 29 3b 0a 0a 20 20 20 20 20 20 ion.and.rotation.keys");........
1a60 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 ......public.static.readonly.GUI
1a80 43 6f 6e 74 65 6e 74 5b 5d 20 4f 66 66 73 65 74 43 6f 6e 74 65 6e 74 73 3b 0a 20 20 20 20 20 20 Content[].OffsetContents;.......
1aa0 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 ......public.static.readonly.GUI
1ac0 43 6f 6e 74 65 6e 74 5b 5d 20 4f 66 66 73 65 74 49 6e 68 65 72 69 74 43 6f 6e 74 65 6e 74 73 3b Content[].OffsetInheritContents;
1ae0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 53 74 79 6c 65 73 28 29 0a 20 20 ..............static.Styles()...
1b00 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ..........{.................var.
1b20 76 61 6c 75 65 73 20 3d 20 45 6e 75 6d 2e 47 65 74 56 61 6c 75 65 73 28 74 79 70 65 6f 66 28 54 values.=.Enum.GetValues(typeof(T
1b40 72 61 63 6b 4f 66 66 73 65 74 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 66 rackOffset));.................Of
1b60 66 73 65 74 43 6f 6e 74 65 6e 74 73 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 5b 76 61 fsetContents.=.new.GUIContent[va
1b80 6c 75 65 73 2e 4c 65 6e 67 74 68 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 66 lues.Length];.................Of
1ba0 66 73 65 74 49 6e 68 65 72 69 74 43 6f 6e 74 65 6e 74 73 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e fsetInheritContents.=.new.GUICon
1bc0 74 65 6e 74 5b 76 61 6c 75 65 73 2e 4c 65 6e 67 74 68 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 tent[values.Length];............
1be0 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 6e 64 65 78 20 3d 20 30 3b 20 69 6e 64 65 78 20 3c .....for.(var.index.=.0;.index.<
1c00 20 76 61 6c 75 65 73 2e 4c 65 6e 67 74 68 3b 20 69 6e 64 65 78 2b 2b 29 0a 20 20 20 20 20 20 20 .values.Length;.index++)........
1c20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 .........{.....................v
1c40 61 72 20 6f 66 66 73 65 74 20 3d 20 28 54 72 61 63 6b 4f 66 66 73 65 74 29 69 6e 64 65 78 3b 0a ar.offset.=.(TrackOffset)index;.
1c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 61 6d 65 20 3d 20 4f ....................var.name.=.O
1c80 62 6a 65 63 74 4e 61 6d 65 73 2e 4e 69 63 69 66 79 56 61 72 69 61 62 6c 65 4e 61 6d 65 28 4c 31 bjectNames.NicifyVariableName(L1
1ca0 30 6e 2e 54 72 28 6f 66 66 73 65 74 2e 54 6f 53 74 72 69 6e 67 28 29 29 29 3b 0a 20 20 20 20 20 0n.Tr(offset.ToString()));......
1cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 65 6d 49 6e 66 6f 20 3d 20 20 74 79 ...............var.memInfo.=..ty
1ce0 70 65 6f 66 28 54 72 61 63 6b 4f 66 66 73 65 74 29 2e 47 65 74 4d 65 6d 62 65 72 28 6f 66 66 73 peof(TrackOffset).GetMember(offs
1d00 65 74 2e 54 6f 53 74 72 69 6e 67 28 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 et.ToString());.................
1d20 20 20 20 20 76 61 72 20 61 74 74 72 69 62 75 74 65 73 20 3d 20 6d 65 6d 49 6e 66 6f 5b 30 5d 2e ....var.attributes.=.memInfo[0].
1d40 47 65 74 43 75 73 74 6f 6d 41 74 74 72 69 62 75 74 65 73 28 74 79 70 65 6f 66 28 44 65 73 63 72 GetCustomAttributes(typeof(Descr
1d60 69 70 74 69 6f 6e 41 74 74 72 69 62 75 74 65 29 2c 20 66 61 6c 73 65 29 3b 0a 20 20 20 20 20 20 iptionAttribute),.false);.......
1d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 74 74 72 69 62 75 74 65 73 2e 4c 65 6e ..............if.(attributes.Len
1da0 67 74 68 20 3e 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 gth.>.0).....................{..
1dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 20 3d 20 28 28 .......................name.=.((
1de0 44 65 73 63 72 69 70 74 69 6f 6e 41 74 74 72 69 62 75 74 65 29 61 74 74 72 69 62 75 74 65 73 5b DescriptionAttribute)attributes[
1e00 30 5d 29 2e 44 65 73 63 72 69 70 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0]).Description;................
1e20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 66 66 73 .....}......................Offs
1e40 65 74 43 6f 6e 74 65 6e 74 73 5b 69 6e 64 65 78 5d 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 etContents[index].=.new.GUIConte
1e60 6e 74 28 6e 61 6d 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 66 nt(name);.....................Of
1e80 66 73 65 74 49 6e 68 65 72 69 74 43 6f 6e 74 65 6e 74 73 5b 69 6e 64 65 78 5d 20 3d 20 6e 65 77 fsetInheritContents[index].=.new
1ea0 20 47 55 49 43 6f 6e 74 65 6e 74 28 73 74 72 69 6e 67 2e 46 6f 72 6d 61 74 28 22 7b 30 7d 20 28 .GUIContent(string.Format("{0}.(
1ec0 7b 31 7d 29 22 2c 20 49 6e 68 65 72 69 74 65 64 46 72 6f 6d 50 61 72 65 6e 74 2c 20 6e 61 6d 65 {1})",.InheritedFromParent,.name
1ee0 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 ));.................}...........
1f00 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 41 ..}.........}..........TimelineA
1f20 6e 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 nimationUtilities.OffsetEditMode
1f40 20 6d 5f 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 20 3d 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d .m_OffsetEditMode.=.TimelineAnim
1f60 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 2e 4e 6f ationUtilities.OffsetEditMode.No
1f80 6e 65 3b 0a 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 ne;..........SerializedProperty.
1fa0 6d 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 72 74 79 3b 0a 20 20 20 20 20 20 20 20 53 m_MatchFieldsProperty;.........S
1fc0 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f erializedProperty.m_TrackPositio
1fe0 6e 50 72 6f 70 65 72 74 79 3b 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f nProperty;.........SerializedPro
2000 70 65 72 74 79 20 6d 5f 54 72 61 63 6b 52 6f 74 61 74 69 6f 6e 50 72 6f 70 65 72 74 79 3b 0a 20 perty.m_TrackRotationProperty;..
2020 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 41 76 61 74 .......SerializedProperty.m_Avat
2040 61 72 4d 61 73 6b 50 72 6f 70 65 72 74 79 3b 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a arMaskProperty;.........Serializ
2060 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 50 72 6f 70 edProperty.m_ApplyAvatarMaskProp
2080 65 72 74 79 3b 0a 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 erty;.........SerializedProperty
20a0 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 50 72 6f 70 65 72 74 79 3b 0a 0a 20 20 20 20 20 20 20 .m_TrackOffsetProperty;.........
20c0 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 52 65 63 6f 72 64 65 64 4f 66 .SerializedProperty.m_RecordedOf
20e0 66 73 65 74 50 6f 73 69 74 69 6f 6e 50 72 6f 70 65 72 74 79 3b 0a 20 20 20 20 20 20 20 20 53 65 fsetPositionProperty;.........Se
2100 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 52 65 63 6f 72 64 65 64 4f 66 66 73 65 rializedProperty.m_RecordedOffse
2120 74 45 75 6c 65 72 50 72 6f 70 65 72 74 79 3b 0a 0a 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 33 tEulerProperty;..........Vector3
2140 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 61 73 74 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 ............m_lastPosition;.....
2160 20 20 20 20 56 65 63 74 6f 72 33 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 61 73 74 52 6f 74 ....Vector3............m_lastRot
2180 61 74 69 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 47 55 49 43 6f 6e 74 65 6e 74 20 20 20 20 20 20 ation;..........GUIContent......
21a0 20 20 20 6d 5f 54 65 6d 70 43 6f 6e 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e ...m_TempContent.=.new.GUIConten
21c0 74 28 29 3b 0a 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 45 76 61 6c 75 61 74 65 28 29 0a 20 t();...........void.Evaluate()..
21e0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 6c 69 6e .......{.............if.(timelin
2200 65 57 69 6e 64 6f 77 2e 73 74 61 74 65 20 21 3d 20 6e 75 6c 6c 20 26 26 20 74 69 6d 65 6c 69 6e eWindow.state.!=.null.&&.timelin
2220 65 57 69 6e 64 6f 77 2e 73 74 61 74 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 64 69 72 65 63 eWindow.state.editSequence.direc
2240 74 6f 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 tor.!=.null).............{......
2260 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 66 6f 72 63 65 20 74 68 65 20 75 70 64 61 74 65 20 69 ...........//.force.the.update.i
2280 6d 6d 65 64 69 61 74 65 6c 79 2c 20 74 68 65 20 64 65 66 65 72 72 65 64 20 64 6f 65 73 6e 27 74 mmediately,.the.deferred.doesn't
22a0 20 61 6c 77 61 79 73 20 77 6f 72 6b 20 77 69 74 68 20 74 68 65 20 69 6e 73 70 65 63 74 6f 72 0a .always.work.with.the.inspector.
22c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 73 ................timelineWindow.s
22e0 74 61 74 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 64 69 72 65 63 74 6f 72 2e 45 76 61 6c 75 tate.editSequence.director.Evalu
2300 61 74 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a ate();.............}.........}..
2320 20 20 20 20 20 20 20 20 76 6f 69 64 20 52 65 62 75 69 6c 64 47 72 61 70 68 28 29 0a 20 20 20 20 ........void.RebuildGraph().....
2340 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 45 64 69 74 6f 72 ....{.............TimelineEditor
2360 2e 52 65 66 72 65 73 68 28 52 65 66 72 65 73 68 52 65 61 73 6f 6e 2e 43 6f 6e 74 65 6e 74 73 4d .Refresh(RefreshReason.ContentsM
2380 6f 64 69 66 69 65 64 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 odified);.........}..........pub
23a0 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 49 6e 73 70 65 63 74 6f 72 47 55 49 lic.override.void.OnInspectorGUI
23c0 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 ().........{.............using.(
23e0 6e 65 77 20 45 64 69 74 6f 72 47 55 49 2e 44 69 73 61 62 6c 65 64 53 63 6f 70 65 28 49 73 54 72 new.EditorGUI.DisabledScope(IsTr
2400 61 63 6b 4c 6f 63 6b 65 64 28 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 ackLocked())).............{.....
2420 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 55 70 64 ............serializedObject.Upd
2440 61 74 65 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 52 6f 6f 74 ate();..................DrawRoot
2460 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 TransformOffset();..............
2480 20 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 ....EditorGUI.BeginChangeCheck()
24a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 52 65 63 6f 72 64 65 64 4f 66 ;.................DrawRecordedOf
24c0 66 73 65 74 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 fsetProperties();...............
24e0 20 20 44 72 61 77 41 76 61 74 61 72 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0a 20 20 20 20 20 20 ..DrawAvatarProperties();.......
2500 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 61 6e 67 ..........if.(EditorGUI.EndChang
2520 65 43 68 65 63 6b 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 eCheck()).....................Re
2540 62 75 69 6c 64 47 72 61 70 68 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 buildGraph();..................D
2560 72 61 77 4d 61 74 63 68 46 69 65 6c 64 73 47 55 49 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 rawMatchFieldsGUI();............
2580 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 ......serializedObject.ApplyModi
25a0 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a fiedProperties();.............}.
25c0 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 41 6e 69 6d 61 74 65 73 ........}..........bool.Animates
25e0 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 RootTransform().........{.......
2600 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 61 72 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d ......return.targets.OfType<Anim
2620 61 74 69 6f 6e 54 72 61 63 6b 3e 28 29 2e 41 6c 6c 28 74 20 3d 3e 20 74 2e 41 6e 69 6d 61 74 65 ationTrack>().All(t.=>.t.Animate
2640 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 sRootTransform());.........}....
2660 20 20 20 20 20 20 62 6f 6f 6c 20 53 68 6f 75 6c 64 44 72 61 77 4f 66 66 73 65 74 73 28 29 0a 20 ......bool.ShouldDrawOffsets()..
2680 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 68 61 73 4d 75 6c .......{.............bool.hasMul
26a0 74 69 70 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 73 65 74 4d 6f 64 tiple;.............var.offsetMod
26c0 65 20 3d 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 28 6f 75 74 20 68 61 73 4d 75 6c 74 69 70 6c e.=.GetOffsetMode(out.hasMultipl
26e0 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 73 4d 75 6c 74 69 70 6c 65 29 e);.............if.(hasMultiple)
2700 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 0a .................return.false;..
2720 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6f 66 66 73 65 74 4d 6f 64 65 20 3d 3d 20 54 72 ............if.(offsetMode.==.Tr
2740 61 63 6b 4f 66 66 73 65 74 2e 41 70 70 6c 79 53 63 65 6e 65 4f 66 66 73 65 74 73 29 0a 20 20 20 ackOffset.ApplySceneOffsets)....
2760 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 .............return.false;......
2780 20 20 20 20 20 20 20 20 69 66 20 28 6f 66 66 73 65 74 4d 6f 64 65 20 3d 3d 20 54 72 61 63 6b 4f ........if.(offsetMode.==.TrackO
27a0 66 66 73 65 74 2e 41 70 70 6c 79 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 73 29 0a 20 20 20 ffset.ApplyTransformOffsets)....
27c0 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 .............return.true;.......
27e0 20 20 20 20 20 20 20 2f 2f 20 41 75 74 6f 20 6d 6f 64 65 2e 0a 20 20 20 20 20 20 20 20 20 20 20 .......//.Auto.mode.............
2800 20 50 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 20 64 69 72 65 63 74 6f 72 20 3d 20 74 68 69 .PlayableDirector.director.=.thi
2820 73 2e 6d 5f 43 6f 6e 74 65 78 74 20 61 73 20 50 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 3b s.m_Context.as.PlayableDirector;
2840 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 69 72 65 63 74 6f 72 20 3d 3d 20 6e 75 6c .............if.(director.==.nul
2860 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b l).................return.false;
2880 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 61 6e 79 20 62 6f 75 6e 64 20 61 6e ..............//.If.any.bound.an
28a0 69 6d 61 74 6f 72 73 20 68 61 76 65 20 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 64 6f 6e 27 74 20 73 imators.have.controllers.don't.s
28c0 68 6f 77 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 74 72 61 how.............foreach.(var.tra
28e0 63 6b 20 69 6e 20 74 61 72 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d 61 74 69 6f 6e 54 72 ck.in.targets.OfType<AnimationTr
2900 61 63 6b 3e 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 ack>()).............{...........
2920 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d 61 74 6f 72 20 3d 20 74 72 61 63 6b 2e 47 65 74 42 69 ......var.animator.=.track.GetBi
2940 6e 64 69 6e 67 28 64 69 72 65 63 74 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nding(director);................
2960 20 69 66 20 28 61 6e 69 6d 61 74 6f 72 20 21 3d 20 6e 75 6c 6c 20 26 26 20 61 6e 69 6d 61 74 6f .if.(animator.!=.null.&&.animato
2980 72 2e 72 75 6e 74 69 6d 65 41 6e 69 6d 61 74 6f 72 43 6f 6e 74 72 6f 6c 6c 65 72 20 21 3d 20 6e r.runtimeAnimatorController.!=.n
29a0 75 6c 6c 29 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 6e 20 ull).....................return.
29c0 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 false;.............}............
29e0 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 ..return.true;.........}........
2a00 20 20 76 6f 69 64 20 44 72 61 77 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 28 29 ..void.DrawRootTransformOffset()
2a20 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 6e 69 6d .........{.............if.(!Anim
2a40 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 atesRootTransform())............
2a60 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 73 .....return;..............bool.s
2a80 68 6f 77 57 61 72 6e 69 6e 67 20 3d 20 53 65 74 75 70 4f 66 66 73 65 74 54 6f 6f 6c 74 69 70 28 howWarning.=.SetupOffsetTooltip(
2aa0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d );.............DrawRootTransform
2ac0 44 72 6f 70 44 6f 77 6e 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 53 68 6f DropDown();..............if.(Sho
2ae0 75 6c 64 44 72 61 77 4f 66 66 73 65 74 73 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a uldDrawOffsets()).............{.
2b00 20 20 20 20 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 ................EditorGUI.indent
2b20 4c 65 76 65 6c 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 52 6f 6f Level++;.................DrawRoo
2b40 74 4d 6f 74 69 6f 6e 54 6f 6f 6c 42 61 72 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tMotionToolBar();...............
2b60 20 20 44 72 61 77 52 6f 6f 74 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 46 69 65 6c 64 73 28 29 3b 0a ..DrawRootMotionOffsetFields();.
2b80 20 20 20 20 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 ................EditorGUI.indent
2ba0 4c 65 76 65 6c 2d 2d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 Level--;.............}..........
2bc0 20 20 20 20 69 66 20 28 73 68 6f 77 57 61 72 6e 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 ....if.(showWarning)............
2be0 20 7b 0a 20 20 20 20 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 .{.................EditorGUI.ind
2c00 65 6e 74 4c 65 76 65 6c 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 entLevel++;.................Edit
2c20 6f 72 47 55 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 53 74 79 6c 65 73 2e 41 75 74 6f 4f orGUILayout.HelpBox(Styles.AutoO
2c40 66 66 73 65 74 57 61 72 6e 69 6e 67 2c 20 4d 65 73 73 61 67 65 54 79 70 65 2e 57 61 72 6e 69 6e ffsetWarning,.MessageType.Warnin
2c60 67 2c 20 74 72 75 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 g,.true);.................Editor
2c80 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 2d 2d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d GUI.indentLevel--;.............}
2ca0 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 53 65 74 75 70 4f 66 .........}..........bool.SetupOf
2cc0 66 73 65 74 54 6f 6f 6c 74 69 70 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 fsetTooltip().........{.........
2ce0 20 20 20 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2e 74 6f 6f 6c 74 ....Styles.OffsetModeTitle.toolt
2d00 69 70 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 ip.=.string.Empty;.............b
2d20 6f 6f 6c 20 68 61 73 4d 75 6c 74 69 70 6c 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ool.hasMultiple;.............var
2d40 20 6f 66 66 73 65 74 4d 6f 64 65 20 3d 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 28 6f 75 74 20 .offsetMode.=.GetOffsetMode(out.
2d60 68 61 73 4d 75 6c 74 69 70 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 73 hasMultiple);.............bool.s
2d80 68 6f 77 57 61 72 6e 69 6e 67 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 howWarning.=.false;.............
2da0 69 66 20 28 21 68 61 73 4d 75 6c 74 69 70 6c 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a if.(!hasMultiple).............{.
2dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6f 66 66 73 65 74 4d 6f 64 65 20 3d ................if.(offsetMode.=
2de0 3d 20 54 72 61 63 6b 4f 66 66 73 65 74 2e 41 70 70 6c 79 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 =.TrackOffset.ApplyTransformOffs
2e00 65 74 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 74 79 6c 65 73 2e ets).....................Styles.
2e20 4f 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2e 74 6f 6f 6c 74 69 70 20 3d 20 53 74 79 6c 65 73 OffsetModeTitle.tooltip.=.Styles
2e40 2e 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 49 6e 66 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 .TransformOffsetInfo;...........
2e60 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 6f 66 66 73 65 74 4d 6f 64 65 20 3d 3d 20 54 72 61 ......else.if.(offsetMode.==.Tra
2e80 63 6b 4f 66 66 73 65 74 2e 41 70 70 6c 79 53 63 65 6e 65 4f 66 66 73 65 74 73 29 0a 20 20 20 20 ckOffset.ApplySceneOffsets).....
2ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 4d 6f 64 ................Styles.OffsetMod
2ec0 65 54 69 74 6c 65 2e 74 6f 6f 6c 74 69 70 20 3d 20 53 74 79 6c 65 73 2e 53 63 65 6e 65 4f 66 66 eTitle.tooltip.=.Styles.SceneOff
2ee0 73 65 74 49 6e 66 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 setInfo;.................else.if
2f00 20 28 6f 66 66 73 65 74 4d 6f 64 65 20 3d 3d 20 54 72 61 63 6b 4f 66 66 73 65 74 2e 41 75 74 6f .(offsetMode.==.TrackOffset.Auto
2f20 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ).................{.............
2f40 20 20 20 20 20 20 20 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2e 74 ........Styles.OffsetModeTitle.t
2f60 6f 6f 6c 74 69 70 20 3d 20 53 74 79 6c 65 73 2e 41 75 74 6f 4f 66 66 73 65 74 49 6e 66 6f 3b 0a ooltip.=.Styles.AutoOffsetInfo;.
2f80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 77 57 61 72 6e 69 6e 67 20 ....................showWarning.
2fa0 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 =.true;.................}.......
2fc0 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 68 6f 77 ......}..............return.show
2fe0 57 61 72 6e 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 Warning;.........}..........void
3000 20 44 72 61 77 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 44 72 6f 70 44 6f 77 6e 28 29 0a 20 20 20 .DrawRootTransformDropDown()....
3020 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 61 6e 79 53 75 62 54 72 .....{.............bool.anySubTr
3040 61 63 6b 73 20 3d 20 74 61 72 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d 61 74 69 6f 6e 54 acks.=.targets.OfType<AnimationT
3060 72 61 63 6b 3e 28 29 2e 41 6e 79 28 74 20 3d 3e 20 74 2e 69 73 53 75 62 54 72 61 63 6b 29 3b 0a rack>().Any(t.=>.t.isSubTrack);.
3080 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 61 6c 6c 53 75 62 54 72 61 63 6b 73 20 3d 20 ............bool.allSubTracks.=.
30a0 74 61 72 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3e 28 29 targets.OfType<AnimationTrack>()
30c0 2e 41 6c 6c 28 74 20 3d 3e 20 74 2e 69 73 53 75 62 54 72 61 63 6b 29 3b 0a 0a 20 20 20 20 20 20 .All(t.=>.t.isSubTrack);........
30e0 20 20 20 20 20 20 62 6f 6f 6c 20 6d 69 78 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ......bool.mixed;.............va
3100 72 20 72 6f 6f 74 4f 66 66 73 65 74 4d 6f 64 65 20 3d 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 r.rootOffsetMode.=.GetOffsetMode
3120 28 6f 75 74 20 6d 69 78 65 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 66 20 (out.mixed);..............//.if.
3140 77 65 20 61 72 65 20 73 68 6f 77 69 6e 67 20 73 75 62 74 72 61 63 6b 73 2c 20 77 65 20 6e 65 65 we.are.showing.subtracks,.we.nee
3160 64 20 74 6f 20 73 68 6f 77 20 74 68 65 20 63 75 72 72 65 6e 74 20 6d 6f 64 65 20 66 72 6f 6d 20 d.to.show.the.current.mode.from.
3180 74 68 65 20 70 61 72 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 42 55 54 20 6b the.parent.............//..BUT.k
31a0 65 65 70 20 69 74 20 64 69 73 61 62 6c 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 eep.it.disabled.............if.(
31c0 61 6e 79 53 75 62 54 72 61 63 6b 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 anySubTracks).............{.....
31e0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 65 6d 70 43 6f 6e 74 65 6e 74 2e 74 6f 6f 6c 74 69 ............m_TempContent.toolti
3200 70 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 p.=.string.Empty;...............
3220 20 20 69 66 20 28 6d 69 78 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..if.(mixed)....................
3240 20 6d 5f 54 65 6d 70 43 6f 6e 74 65 6e 74 2e 74 65 78 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e .m_TempContent.text.=.EditorGUI.
3260 6d 69 78 65 64 56 61 6c 75 65 43 6f 6e 74 65 6e 74 2e 74 65 78 74 3b 0a 20 20 20 20 20 20 20 20 mixedValueContent.text;.........
3280 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 21 61 6c 6c 53 75 62 54 72 61 63 6b 73 29 0a ........else.if.(!allSubTracks).
32a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 65 6d 70 43 6f 6e 74 65 6e ....................m_TempConten
32c0 74 2e 74 65 78 74 20 3d 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 43 6f 6e 74 65 6e 74 73 5b 28 t.text.=.Styles.OffsetContents[(
32e0 69 6e 74 29 72 6f 6f 74 4f 66 66 73 65 74 4d 6f 64 65 5d 2e 74 65 78 74 3b 0a 20 20 20 20 20 20 int)rootOffsetMode].text;.......
3300 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b ..........else.................{
3320 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 65 6d 70 43 6f 6e 74 65 .....................m_TempConte
3340 6e 74 2e 74 65 78 74 20 3d 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 49 6e 68 65 72 69 74 43 6f nt.text.=.Styles.OffsetInheritCo
3360 6e 74 65 6e 74 73 5b 28 69 6e 74 29 72 6f 6f 74 4f 66 66 73 65 74 4d 6f 64 65 5d 2e 74 65 78 74 ntents[(int)rootOffsetMode].text
3380 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 65 6d 70 43 6f 6e 74 ;.....................m_TempCont
33a0 65 6e 74 2e 74 6f 6f 6c 74 69 70 20 3d 20 53 74 79 6c 65 73 2e 49 6e 68 65 72 69 74 65 64 54 6f ent.tooltip.=.Styles.InheritedTo
33c0 6f 6c 54 69 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 olTip;.................}........
33e0 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 45 64 69 74 6f 72 47 55 49 2e 44 ..........using.(new.EditorGUI.D
3400 69 73 61 62 6c 65 64 53 63 6f 70 65 28 74 72 75 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 isabledScope(true)).............
3420 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 46 69 65 ........EditorGUILayout.LabelFie
3440 6c 64 28 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2c 20 6d 5f 54 65 6d ld(Styles.OffsetModeTitle,.m_Tem
3460 70 43 6f 6e 74 65 6e 74 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 70 6f 70 75 70 29 3b 0a 20 pContent,.EditorStyles.popup);..
3480 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 ...........}.............else...
34a0 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 ..........{.................//.W
34c0 65 20 75 73 65 20 61 6e 20 65 6e 75 6d 20 70 6f 70 75 70 20 65 78 70 6c 69 63 69 74 6c 79 20 62 e.use.an.enum.popup.explicitly.b
34e0 65 63 61 75 73 65 20 69 74 20 77 69 6c 6c 20 68 61 6e 64 6c 65 20 74 68 65 20 64 65 73 63 72 69 ecause.it.will.handle.the.descri
3500 70 74 69 6f 6e 20 61 74 74 72 69 62 75 74 65 20 6f 6e 20 74 68 65 20 65 6e 75 6d 0a 20 20 20 20 ption.attribute.on.the.enum.....
3520 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 47 55 49 4d 69 78 65 64 56 ............using.(new.GUIMixedV
3540 61 6c 75 65 53 63 6f 70 65 28 6d 69 78 65 64 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 alueScope(mixed))...............
3560 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 63 74 ..{.....................var.rect
3580 20 3d 20 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 52 65 63 .=.EditorGUILayout.GetControlRec
35a0 74 28 74 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 2e 6b 53 69 6e 67 6c 65 4c 69 6e 65 48 65 69 t(true,.EditorGUI.kSingleLineHei
35c0 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 ght);.....................Editor
35e0 47 55 49 2e 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 72 65 63 74 2c 20 53 74 79 6c 65 73 2e 4f GUI.BeginProperty(rect,.Styles.O
3600 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2c 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 50 72 6f ffsetModeTitle,.m_TrackOffsetPro
3620 70 65 72 74 79 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 perty);.....................Edit
3640 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 0a 20 20 20 20 20 20 orGUI.BeginChangeCheck();.......
3660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 73 75 6c 74 20 3d 20 28 54 72 61 63 ..............var.result.=.(Trac
3680 6b 4f 66 66 73 65 74 29 45 64 69 74 6f 72 47 55 49 2e 45 6e 75 6d 50 6f 70 75 70 28 72 65 63 74 kOffset)EditorGUI.EnumPopup(rect
36a0 2c 20 53 74 79 6c 65 73 2e 4f 66 66 73 65 74 4d 6f 64 65 54 69 74 6c 65 2c 20 28 54 72 61 63 6b ,.Styles.OffsetModeTitle,.(Track
36c0 4f 66 66 73 65 74 29 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 50 72 6f 70 65 72 74 79 2e 69 6e 74 Offset)m_TrackOffsetProperty.int
36e0 56 61 6c 75 65 29 3b 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 Value);.....................if.(
3700 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 0a 20 20 20 20 EditorGUI.EndChangeCheck()).....
3720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
3740 20 20 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 50 72 6f 70 65 72 74 79 2e ..........m_TrackOffsetProperty.
3760 65 6e 75 6d 56 61 6c 75 65 49 6e 64 65 78 20 3d 20 28 69 6e 74 29 72 65 73 75 6c 74 3b 0a 0a 20 enumValueIndex.=.(int)result;...
3780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 69 73 20 70 .......................//.this.p
37a0 72 6f 70 65 72 74 79 20 63 68 61 6e 67 65 73 20 74 68 65 20 72 65 63 6f 72 64 61 62 6c 65 20 73 roperty.changes.the.recordable.s
37c0 74 61 74 65 20 6f 66 20 74 68 65 20 6f 62 6a 65 63 74 73 2c 20 73 6f 20 61 75 74 6f 20 64 69 73 tate.of.the.objects,.so.auto.dis
37e0 61 62 6c 65 20 72 65 63 6f 72 64 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 able.recording..................
3800 20 20 20 20 20 20 20 69 66 20 28 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e 73 74 61 6e .......if.(TimelineWindow.instan
3820 63 65 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ce.!=.null).....................
3840 20 20 20 20 7b 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 20 20 ....{...........................
3860 20 20 69 66 20 28 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e 73 74 61 6e 63 65 2e 73 74 ..if.(TimelineWindow.instance.st
3880 61 74 65 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ate.!=.null)....................
38a0 20 20 20 20 20 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e 73 74 .............TimelineWindow.inst
38c0 61 6e 63 65 2e 73 74 61 74 65 2e 72 65 63 6f 72 64 69 6e 67 20 3d 20 66 61 6c 73 65 3b 0a 20 20 ance.state.recording.=.false;...
38e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 62 75 69 6c ..........................Rebuil
3900 64 47 72 61 70 68 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dGraph();.......................
3920 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ..}.....................}.......
3940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 50 72 6f 70 ...............EditorGUI.EndProp
3960 65 72 74 79 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 erty();.................}.......
3980 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 ......}.........}..........void.
39a0 44 72 61 77 4d 61 74 63 68 46 69 65 6c 64 73 47 55 49 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 DrawMatchFieldsGUI().........{..
39c0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 6e 69 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e ...........if.(!AnimatesRootTran
39e0 73 66 6f 72 6d 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b sform()).................return;
3a00 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 ..............m_MatchFieldsPrope
3a20 72 74 79 2e 69 73 45 78 70 61 6e 64 65 64 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 rty.isExpanded.=.EditorGUILayout
3a40 2e 46 6f 6c 64 6f 75 74 28 6d 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 72 74 79 2e 69 .Foldout(m_MatchFieldsProperty.i
3a60 73 45 78 70 61 6e 64 65 64 2c 20 53 74 79 6c 65 73 2e 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 sExpanded,.Styles.MatchTargetFie
3a80 6c 64 73 54 69 74 6c 65 2c 20 74 72 75 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ldsTitle,.true);.............if.
3aa0 28 6d 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 72 74 79 2e 69 73 45 78 70 61 6e 64 65 (m_MatchFieldsProperty.isExpande
3ac0 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 d).............{................
3ae0 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 2b 2b 3b 0a 20 20 20 20 20 20 .EditorGUI.indentLevel++;.......
3b00 20 20 20 20 20 20 20 20 20 20 4d 61 74 63 68 54 61 72 67 65 74 73 46 69 65 6c 64 47 55 49 28 6d ..........MatchTargetsFieldGUI(m
3b20 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 72 74 79 29 3b 0a 20 20 20 20 20 20 20 20 20 _MatchFieldsProperty);..........
3b40 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 2d 2d 3b 0a .......EditorGUI.indentLevel--;.
3b60 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 ............}.........}.........
3b80 20 76 6f 69 64 20 44 72 61 77 52 6f 6f 74 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 46 69 65 6c 64 73 .void.DrawRootMotionOffsetFields
3ba0 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ().........{.............EditorG
3bc0 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 UI.BeginChangeCheck();..........
3be0 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 48 6f 72 69 7a 6f 6e ....EditorGUILayout.BeginHorizon
3c00 74 61 6c 28 29 3b 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 tal();.............EditorGUILayo
3c20 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f 6e ut.PropertyField(m_TrackPosition
3c40 50 72 6f 70 65 72 74 79 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 Property);.............EditorGUI
3c60 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 0a 20 20 20 20 20 20 20 Layout.EndHorizontal();.........
3c80 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 48 6f 72 69 7a 6f .....EditorGUILayout.BeginHorizo
3ca0 6e 74 61 6c 28 29 3b 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 ntal();.............EditorGUILay
3cc0 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 54 72 61 63 6b 52 6f 74 61 74 69 6f out.PropertyField(m_TrackRotatio
3ce0 6e 50 72 6f 70 65 72 74 79 2c 20 53 74 79 6c 65 73 2e 52 6f 74 61 74 69 6f 6e 54 69 74 6c 65 29 nProperty,.Styles.RotationTitle)
3d00 3b 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 45 6e ;.............EditorGUILayout.En
3d20 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f dHorizontal();.............Edito
3d40 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 rGUILayout.Space();.............
3d60 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0a 0a 20 20 20 20 20 20 EditorGUILayout.Space();........
3d80 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 61 6e 67 65 43 68 65 ......if.(EditorGUI.EndChangeChe
3da0 63 6b 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ck()).............{.............
3dc0 20 20 20 20 55 70 64 61 74 65 4f 66 66 73 65 74 73 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ....UpdateOffsets();............
3de0 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 72 61 77 52 .}.........}..........void.DrawR
3e00 6f 6f 74 4d 6f 74 69 6f 6e 54 6f 6f 6c 42 61 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 ootMotionToolBar().........{....
3e20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 64 69 73 61 62 6c 65 20 3d 20 74 61 72 67 65 74 73 2e .........bool.disable.=.targets.
3e40 4c 65 6e 67 74 68 20 3e 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 63 68 61 Length.>.1;.............bool.cha
3e60 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 nged.=.false;..............if.(!
3e80 64 69 73 61 62 6c 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 disable).............{..........
3ea0 20 20 20 20 20 20 20 2f 2f 20 64 65 74 65 63 74 73 20 65 78 74 65 72 6e 61 6c 20 63 68 61 6e 67 .......//.detects.external.chang
3ec0 65 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 6e 67 65 64 20 7c 3d 20 6d 5f es.................changed.|=.m_
3ee0 6c 61 73 74 50 6f 73 69 74 69 6f 6e 20 21 3d 20 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f 6e 50 lastPosition.!=.m_TrackPositionP
3f00 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 33 56 61 6c 75 65 20 7c 7c 20 6d 5f 6c 61 73 74 52 6f roperty.vector3Value.||.m_lastRo
3f20 74 61 74 69 6f 6e 20 21 3d 20 6d 5f 54 72 61 63 6b 52 6f 74 61 74 69 6f 6e 50 72 6f 70 65 72 74 tation.!=.m_TrackRotationPropert
3f40 79 2e 76 65 63 74 6f 72 33 56 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 y.vector3Value;.................
3f60 6d 5f 6c 61 73 74 50 6f 73 69 74 69 6f 6e 20 3d 20 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f 6e m_lastPosition.=.m_TrackPosition
3f80 50 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 33 56 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 20 Property.vector3Value;..........
3fa0 20 20 20 20 20 20 20 6d 5f 6c 61 73 74 52 6f 74 61 74 69 6f 6e 20 3d 20 6d 5f 54 72 61 63 6b 52 .......m_lastRotation.=.m_TrackR
3fc0 6f 74 61 74 69 6f 6e 50 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 33 56 61 6c 75 65 3b 0a 20 20 otationProperty.vector3Value;...
3fe0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 63 65 6e 65 56 69 65 77 2e 52 65 70 61 69 6e 74 41 ..............SceneView.RepaintA
4000 6c 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 ll();.............}.............
4020 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 0a 20 .EditorGUI.BeginChangeCheck();..
4040 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 45 64 69 74 6f 72 47 55 49 2e ...........using.(new.EditorGUI.
4060 44 69 73 61 62 6c 65 64 53 63 6f 70 65 28 64 69 73 61 62 6c 65 29 29 0a 20 20 20 20 20 20 20 20 DisabledScope(disable)).........
4080 20 20 20 20 20 20 20 20 53 68 6f 77 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 ........ShowMotionOffsetEditMode
40a0 54 6f 6f 6c 62 61 72 28 72 65 66 20 6d 5f 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 29 3b 0a 20 Toolbar(ref.m_OffsetEditMode);..
40c0 20 20 20 20 20 20 20 20 20 20 20 63 68 61 6e 67 65 64 20 7c 3d 20 45 64 69 74 6f 72 47 55 49 2e ...........changed.|=.EditorGUI.
40e0 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 EndChangeCheck();..............i
4100 66 20 28 63 68 61 6e 67 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 f.(changed).............{.......
4120 20 20 20 20 20 20 20 20 20 20 55 70 64 61 74 65 4f 66 66 73 65 74 73 28 29 3b 0a 20 20 20 20 20 ..........UpdateOffsets();......
4140 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 .......}.........}..........void
4160 20 55 70 64 61 74 65 4f 66 66 73 65 74 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 .UpdateOffsets().........{......
4180 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 74 72 61 63 6b 20 69 6e 20 74 61 72 .......foreach.(var.track.in.tar
41a0 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3e 28 29 29 0a 20 gets.OfType<AnimationTrack>())..
41c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 63 6b 2e 55 70 64 61 74 65 43 6c 69 70 4f ...............track.UpdateClipO
41e0 66 66 73 65 74 73 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 61 6c 75 61 74 65 28 29 ffsets();.............Evaluate()
4200 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 72 61 77 41 76 ;.........}..........void.DrawAv
4220 61 74 61 72 50 72 6f 70 65 72 74 69 65 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 atarProperties().........{......
4240 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 .......EditorGUILayout.PropertyF
4260 69 65 6c 64 28 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 50 72 6f 70 65 72 74 79 29 3b ield(m_ApplyAvatarMaskProperty);
4280 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 .............if.(m_ApplyAvatarMa
42a0 73 6b 50 72 6f 70 65 72 74 79 2e 68 61 73 4d 75 6c 74 69 70 6c 65 44 69 66 66 65 72 65 6e 74 56 skProperty.hasMultipleDifferentV
42c0 61 6c 75 65 73 20 7c 7c 20 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 50 72 6f 70 65 72 alues.||.m_ApplyAvatarMaskProper
42e0 74 79 2e 62 6f 6f 6c 56 61 6c 75 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 ty.boolValue).............{.....
4300 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 65 ............EditorGUI.indentLeve
4320 6c 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 l++;.................EditorGUILa
4340 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 41 76 61 74 61 72 4d 61 73 6b 50 yout.PropertyField(m_AvatarMaskP
4360 72 6f 70 65 72 74 79 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 roperty);.................Editor
4380 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 2d 2d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d GUI.indentLevel--;.............}
43a0 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 53 70 61 .............EditorGUILayout.Spa
43c0 63 65 28 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ce();.........}..........public.
43e0 73 74 61 74 69 63 20 76 6f 69 64 20 53 68 6f 77 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 45 64 69 74 static.void.ShowMotionOffsetEdit
4400 4d 6f 64 65 54 6f 6f 6c 62 61 72 28 72 65 66 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d 61 74 69 6f ModeToolbar(ref.TimelineAnimatio
4420 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 20 6d 6f 74 69 6f 6e nUtilities.OffsetEditMode.motion
4440 4f 66 66 73 65 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 Offset).........{.............GU
4460 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 ILayout.BeginHorizontal();......
4480 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 .......GUILayout.FlexibleSpace()
44a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 6c 65 ;.............GUILayout.Flexible
44c0 53 70 61 63 65 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 6e 65 77 4d 6f 74 Space();..............int.newMot
44e0 69 6f 6e 4f 66 66 73 65 74 4d 6f 64 65 20 3d 20 47 55 49 4c 61 79 6f 75 74 2e 54 6f 6f 6c 62 61 ionOffsetMode.=.GUILayout.Toolba
4500 72 28 28 69 6e 74 29 6d 6f 74 69 6f 6e 4f 66 66 73 65 74 2c 20 6e 65 77 5b 5d 20 7b 20 53 74 79 r((int)motionOffset,.new[].{.Sty
4520 6c 65 73 2e 50 6f 73 69 74 69 6f 6e 49 63 6f 6e 2c 20 53 74 79 6c 65 73 2e 52 6f 74 61 74 69 6f les.PositionIcon,.Styles.Rotatio
4540 6e 49 63 6f 6e 20 7d 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 nIcon.});..............if.(GUI.c
4560 68 61 6e 67 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 hanged).............{...........
4580 20 20 20 20 20 20 69 66 20 28 28 69 6e 74 29 6d 6f 74 69 6f 6e 4f 66 66 73 65 74 20 3d 3d 20 6e ......if.((int)motionOffset.==.n
45a0 65 77 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 4d 6f 64 65 29 20 2f 2f 75 6e 74 6f 67 67 6c 65 20 74 ewMotionOffsetMode).//untoggle.t
45c0 68 65 20 62 75 74 74 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f he.button.....................mo
45e0 74 69 6f 6e 4f 66 66 73 65 74 20 3d 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d 61 74 69 6f 6e 55 74 tionOffset.=.TimelineAnimationUt
4600 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 2e 4e 6f 6e 65 3b 0a 20 20 20 ilities.OffsetEditMode.None;....
4620 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............else...............
4640 20 20 20 20 20 20 6d 6f 74 69 6f 6e 4f 66 66 73 65 74 20 3d 20 28 54 69 6d 65 6c 69 6e 65 41 6e ......motionOffset.=.(TimelineAn
4660 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 29 imationUtilities.OffsetEditMode)
4680 6e 65 77 4d 6f 74 69 6f 6e 4f 66 66 73 65 74 4d 6f 64 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 newMotionOffsetMode;............
46a0 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 78 69 62 .}..............GUILayout.Flexib
46c0 6c 65 53 70 61 63 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 leSpace();.............GUILayout
46e0 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 .EndHorizontal();.............GU
4700 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 33 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 ILayout.Space(3);.........}.....
4720 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 6e 45 6e 61 62 .....public.override.void.OnEnab
4740 6c 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 61 73 65 2e le().........{.............base.
4760 4f 6e 45 6e 61 62 6c 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 63 65 6e 65 56 69 65 OnEnable();.............SceneVie
4780 77 2e 64 75 72 69 6e 67 53 63 65 6e 65 47 75 69 20 2b 3d 20 4f 6e 53 63 65 6e 65 47 55 49 3b 0a w.duringSceneGui.+=.OnSceneGUI;.
47a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 61 74 63 68 46 69 65 6c 64 73 50 72 6f 70 65 72 .............m_MatchFieldsProper
47c0 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 ty.=.serializedObject.FindProper
47e0 74 79 28 22 6d 5f 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 22 29 3b 0a 20 20 20 20 20 ty("m_MatchTargetFields");......
4800 20 20 20 20 20 20 20 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 3d .......m_TrackPositionProperty.=
4820 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 .serializedObject.FindProperty("
4840 6d 5f 50 6f 73 69 74 69 6f 6e 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 m_Position");.............m_Trac
4860 6b 52 6f 74 61 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 kRotationProperty.=.serializedOb
4880 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 45 75 6c 65 72 41 6e 67 6c 65 73 ject.FindProperty("m_EulerAngles
48a0 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 50 72 6f ");.............m_TrackOffsetPro
48c0 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f perty.=.serializedObject.FindPro
48e0 70 65 72 74 79 28 22 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 22 29 3b 0a 20 20 20 20 20 20 20 20 perty("m_TrackOffset");.........
4900 20 20 20 20 6d 5f 41 76 61 74 61 72 4d 61 73 6b 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 ....m_AvatarMaskProperty.=.seria
4920 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 76 61 74 lizedObject.FindProperty("m_Avat
4940 61 72 4d 61 73 6b 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 70 70 6c 79 41 76 61 arMask");.............m_ApplyAva
4960 74 61 72 4d 61 73 6b 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 tarMaskProperty.=.serializedObje
4980 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 ct.FindProperty("m_ApplyAvatarMa
49a0 73 6b 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 65 63 6f 72 64 65 64 4f 66 66 73 sk");.............m_RecordedOffs
49c0 65 74 50 6f 73 69 74 69 6f 6e 50 72 6f 70 65 72 74 79 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f etPositionProperty.=.serializedO
49e0 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 49 6e 66 69 6e 69 74 65 43 6c bject.FindProperty("m_InfiniteCl
4a00 69 70 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ipOffsetPosition");.............
4a20 6d 5f 52 65 63 6f 72 64 65 64 4f 66 66 73 65 74 45 75 6c 65 72 50 72 6f 70 65 72 74 79 20 3d 20 m_RecordedOffsetEulerProperty.=.
4a40 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d serializedObject.FindProperty("m
4a60 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 65 74 45 75 6c 65 72 41 6e 67 6c 65 73 22 29 _InfiniteClipOffsetEulerAngles")
4a80 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 61 73 74 50 6f 73 69 74 69 6f 6e 20 3d 20 ;..............m_lastPosition.=.
4aa0 6d 5f 54 72 61 63 6b 50 6f 73 69 74 69 6f 6e 50 72 6f 70 65 72 74 79 2e 76 65 63 74 6f 72 33 56 m_TrackPositionProperty.vector3V
4ac0 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 61 73 74 52 6f 74 61 74 69 6f 6e alue;.............m_lastRotation
4ae0 20 3d 20 6d 5f 54 72 61 63 6b 52 6f 74 61 74 69 6f 6e 50 72 6f 70 65 72 74 79 2e 76 65 63 74 6f .=.m_TrackRotationProperty.vecto
4b00 72 33 56 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c r3Value;.........}..........publ
4b20 69 63 20 76 6f 69 64 20 4f 6e 44 65 73 74 72 6f 79 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 ic.void.OnDestroy().........{...
4b40 20 20 20 20 20 20 20 20 20 20 53 63 65 6e 65 56 69 65 77 2e 64 75 72 69 6e 67 53 63 65 6e 65 47 ..........SceneView.duringSceneG
4b60 75 69 20 2d 3d 20 4f 6e 53 63 65 6e 65 47 55 49 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 ui.-=.OnSceneGUI;.........}.....
4b80 20 20 20 20 20 76 6f 69 64 20 4f 6e 53 63 65 6e 65 47 55 49 28 53 63 65 6e 65 56 69 65 77 20 73 .....void.OnSceneGUI(SceneView.s
4ba0 63 65 6e 65 56 69 65 77 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ceneView).........{.............
4bc0 44 6f 4f 66 66 73 65 74 4d 61 6e 69 70 75 6c 61 74 6f 72 28 29 3b 0a 20 20 20 20 20 20 20 20 7d DoOffsetManipulator();.........}
4be0 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 6f 4f 66 66 73 65 74 4d 61 6e 69 70 75 6c 61 74 ..........void.DoOffsetManipulat
4c00 6f 72 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 or().........{.............if.(t
4c20 61 72 67 65 74 73 2e 4c 65 6e 67 74 68 20 3e 20 31 29 20 2f 2f 64 6f 20 6e 6f 74 20 65 64 69 74 argets.Length.>.1).//do.not.edit
4c40 20 74 68 65 20 74 72 61 63 6b 20 6f 66 66 73 65 74 20 6f 6e 20 61 20 6d 75 6c 74 69 70 6c 65 20 .the.track.offset.on.a.multiple.
4c60 73 65 6c 65 63 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e selection.................return
4c80 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 6c 69 6e 65 57 69 6e 64 6f ;..............if.(timelineWindo
4ca0 77 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 74 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 73 74 61 74 w.==.null.||.timelineWindow.stat
4cc0 65 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 74 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 73 74 61 74 e.==.null.||.timelineWindow.stat
4ce0 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 64 69 72 65 63 74 6f 72 20 3d 3d 20 6e 75 6c 6c 29 e.editSequence.director.==.null)
4d00 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 .................return;........
4d20 20 20 20 20 20 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 20 61 6e 69 6d 61 74 69 6f 6e 54 72 ......AnimationTrack.animationTr
4d40 61 63 6b 20 3d 20 74 61 72 67 65 74 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3b 0a ack.=.target.as.AnimationTrack;.
4d60 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 20 21 ............if.(animationTrack.!
4d80 3d 20 6e 75 6c 6c 20 26 26 20 28 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2e 74 72 61 63 6b 4f =.null.&&.(animationTrack.trackO
4da0 66 66 73 65 74 20 3d 3d 20 54 72 61 63 6b 4f 66 66 73 65 74 2e 41 70 70 6c 79 54 72 61 6e 73 66 ffset.==.TrackOffset.ApplyTransf
4dc0 6f 72 6d 4f 66 66 73 65 74 73 29 20 26 26 20 6d 5f 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 20 ormOffsets).&&.m_OffsetEditMode.
4de0 21 3d 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 !=.TimelineAnimationUtilities.Of
4e00 66 73 65 74 45 64 69 74 4d 6f 64 65 2e 4e 6f 6e 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b fsetEditMode.None).............{
4e20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 6f 75 6e 64 4f 62 6a 65 63 74 .................var.boundObject
4e40 20 3d 20 54 69 6d 65 6c 69 6e 65 55 74 69 6c 69 74 79 2e 47 65 74 53 63 65 6e 65 47 61 6d 65 4f .=.TimelineUtility.GetSceneGameO
4e60 62 6a 65 63 74 28 74 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 73 74 61 74 65 2e 65 64 69 74 53 bject(timelineWindow.state.editS
4e80 65 71 75 65 6e 63 65 2e 64 69 72 65 63 74 6f 72 2c 20 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b equence.director,.animationTrack
4ea0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 6f 75 6e 64 4f 62 6a 65 );.................var.boundObje
4ec0 63 74 54 72 61 6e 73 66 6f 72 6d 20 3d 20 62 6f 75 6e 64 4f 62 6a 65 63 74 20 21 3d 20 6e 75 6c ctTransform.=.boundObject.!=.nul
4ee0 6c 20 3f 20 62 6f 75 6e 64 4f 62 6a 65 63 74 2e 74 72 61 6e 73 66 6f 72 6d 20 3a 20 6e 75 6c 6c l.?.boundObject.transform.:.null
4f00 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 73 65 74 73 20 3d ;..................var.offsets.=
4f20 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 47 65 74 54 .TimelineAnimationUtilities.GetT
4f40 72 61 63 6b 4f 66 66 73 65 74 73 28 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2c 20 62 6f 75 6e rackOffsets(animationTrack,.boun
4f60 64 4f 62 6a 65 63 74 54 72 61 6e 73 66 6f 72 6d 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 dObjectTransform);..............
4f80 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();
4fa0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 6d 5f 4f 66 66 73 ..................switch.(m_Offs
4fc0 65 74 45 64 69 74 4d 6f 64 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 etEditMode).................{...
4fe0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 54 69 6d 65 6c 69 6e 65 41 ..................case.TimelineA
5000 6e 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 nimationUtilities.OffsetEditMode
5020 2e 54 72 61 6e 73 6c 61 74 69 6f 6e 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Translation:...................
5040 20 20 20 20 20 20 6f 66 66 73 65 74 73 2e 70 6f 73 69 74 69 6f 6e 20 3d 20 48 61 6e 64 6c 65 73 ......offsets.position.=.Handles
5060 2e 50 6f 73 69 74 69 6f 6e 48 61 6e 64 6c 65 28 6f 66 66 73 65 74 73 2e 70 6f 73 69 74 69 6f 6e .PositionHandle(offsets.position
5080 2c 20 28 54 6f 6f 6c 73 2e 70 69 76 6f 74 52 6f 74 61 74 69 6f 6e 20 3d 3d 20 50 69 76 6f 74 52 ,.(Tools.pivotRotation.==.PivotR
50a0 6f 74 61 74 69 6f 6e 2e 47 6c 6f 62 61 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 otation.Global).................
50c0 20 20 20 20 20 20 20 20 20 20 20 20 3f 20 51 75 61 74 65 72 6e 69 6f 6e 2e 69 64 65 6e 74 69 74 ............?.Quaternion.identit
50e0 79 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 20 20 20 20 3a 20 y.............................:.
5100 6f 66 66 73 65 74 73 2e 72 6f 74 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 offsets.rotation);..............
5120 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........break;...............
5140 20 20 20 20 20 20 63 61 73 65 20 54 69 6d 65 6c 69 6e 65 41 6e 69 6d 61 74 69 6f 6e 55 74 69 6c ......case.TimelineAnimationUtil
5160 69 74 69 65 73 2e 4f 66 66 73 65 74 45 64 69 74 4d 6f 64 65 2e 52 6f 74 61 74 69 6f 6e 3a 0a 20 ities.OffsetEditMode.Rotation:..
5180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 66 73 65 74 73 2e 72 .......................offsets.r
51a0 6f 74 61 74 69 6f 6e 20 3d 20 48 61 6e 64 6c 65 73 2e 52 6f 74 61 74 69 6f 6e 48 61 6e 64 6c 65 otation.=.Handles.RotationHandle
51c0 28 6f 66 66 73 65 74 73 2e 72 6f 74 61 74 69 6f 6e 2c 20 6f 66 66 73 65 74 73 2e 70 6f 73 69 74 (offsets.rotation,.offsets.posit
51e0 69 6f 6e 29 3b 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 62 72 ion);.........................br
5200 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 eak;.................}..........
5220 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 61 6e 67 65 43 ........if.(EditorGUI.EndChangeC
5240 68 65 63 6b 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 heck()).................{.......
5260 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 55 6e 64 6f 2e 50 75 73 68 55 ..............TimelineUndo.PushU
5280 6e 64 6f 28 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2c 20 22 49 6e 73 70 65 63 74 6f 72 22 29 ndo(animationTrack,."Inspector")
52a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 41 6e ;.....................TimelineAn
52c0 69 6d 61 74 69 6f 6e 55 74 69 6c 69 74 69 65 73 2e 55 70 64 61 74 65 54 72 61 63 6b 4f 66 66 73 imationUtilities.UpdateTrackOffs
52e0 65 74 28 61 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2c 20 62 6f 75 6e 64 4f 62 6a 65 63 74 54 72 et(animationTrack,.boundObjectTr
5300 61 6e 73 66 6f 72 6d 2c 20 6f 66 66 73 65 74 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ansform,.offsets);..............
5320 20 20 20 20 20 20 20 45 76 61 6c 75 61 74 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .......Evaluate();..............
5340 20 20 20 20 20 20 20 52 65 70 61 69 6e 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .......Repaint();...............
5360 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 ..}.............}.........}.....
5380 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 72 61 77 52 65 63 6f 72 64 65 64 4f 66 66 .....public.void.DrawRecordedOff
53a0 73 65 74 50 72 6f 70 65 72 74 69 65 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 setProperties().........{.......
53c0 20 20 20 20 20 20 2f 2f 20 6f 6e 6c 79 20 73 68 6f 77 20 69 66 20 74 68 69 73 20 61 70 70 6c 69 ......//.only.show.if.this.appli
53e0 65 73 20 74 6f 20 61 6c 6c 20 74 61 72 67 65 74 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f es.to.all.targets.............fo
5400 72 65 61 63 68 20 28 76 61 72 20 74 72 61 63 6b 20 69 6e 20 74 61 72 67 65 74 73 29 0a 20 20 20 reach.(var.track.in.targets)....
5420 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 .........{.................var.a
5440 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 20 3d 20 74 72 61 63 6b 20 61 73 20 41 6e 69 6d 61 74 69 nimationTrack.=.track.as.Animati
5460 6f 6e 54 72 61 63 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 6e 69 onTrack;.................if.(ani
5480 6d 61 74 69 6f 6e 54 72 61 63 6b 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 61 6e 69 6d 61 74 69 6f 6e mationTrack.==.null.||.animation
54a0 54 72 61 63 6b 2e 69 6e 43 6c 69 70 4d 6f 64 65 20 7c 7c 20 61 6e 69 6d 61 74 69 6f 6e 54 72 61 Track.inClipMode.||.animationTra
54c0 63 6b 2e 69 6e 66 69 6e 69 74 65 43 6c 69 70 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 61 6e 69 6d 61 ck.infiniteClip.==.null.||.anima
54e0 74 69 6f 6e 54 72 61 63 6b 2e 69 6e 66 69 6e 69 74 65 43 6c 69 70 2e 65 6d 70 74 79 29 0a 20 20 tionTrack.infiniteClip.empty)...
5500 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 0a 20 20 20 20 20 20 ..................return;.......
5520 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 4c ......}..............GUILayout.L
5540 61 62 65 6c 28 53 74 79 6c 65 73 2e 52 65 63 6f 72 64 69 6e 67 4f 66 66 73 65 74 73 29 3b 0a 20 abel(Styles.RecordingOffsets);..
5560 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 65 6c ...........EditorGUI.indentLevel
5580 2b 2b 3b 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.
55a0 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 BeginHorizontal();.............E
55c0 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 52 ditorGUILayout.PropertyField(m_R
55e0 65 63 6f 72 64 65 64 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 50 72 6f 70 65 72 74 79 2c 20 53 ecordedOffsetPositionProperty,.S
5600 74 79 6c 65 73 2e 50 6f 73 69 74 69 6f 6e 54 69 74 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 tyles.PositionTitle);...........
5620 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 ..EditorGUILayout.EndHorizontal(
5640 29 3b 0a 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.
5660 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 BeginHorizontal();.............E
5680 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 52 ditorGUILayout.PropertyField(m_R
56a0 65 63 6f 72 64 65 64 4f 66 66 73 65 74 45 75 6c 65 72 50 72 6f 70 65 72 74 79 2c 20 53 74 79 6c ecordedOffsetEulerProperty,.Styl
56c0 65 73 2e 52 6f 74 61 74 69 6f 6e 54 69 74 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 es.RotationTitle);.............E
56e0 64 69 74 6f 72 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 3b 0a ditorGUILayout.EndHorizontal();.
5700 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 65 ............EditorGUI.indentLeve
5720 6c 2d 2d 3b 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 l--;.............EditorGUILayout
5740 2e 53 70 61 63 65 28 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 .Space();.........}..........pub
5760 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 4d 61 74 63 68 54 61 72 67 65 74 73 46 69 65 6c lic.static.void.MatchTargetsFiel
5780 64 47 55 49 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 dGUI(SerializedProperty.property
57a0 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c ).........{.............const.fl
57c0 6f 61 74 20 54 6f 67 67 6c 65 57 69 64 74 68 20 3d 20 32 30 3b 0a 20 20 20 20 20 20 20 20 20 20 oat.ToggleWidth.=.20;...........
57e0 20 20 69 6e 74 20 76 61 6c 75 65 20 3d 20 30 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 ..int.value.=.0;..............Ma
5800 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 65 6e 75 6d 56 61 6c 75 65 20 3d 20 28 4d 61 74 tchTargetFields.enumValue.=.(Mat
5820 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 29 70 72 6f 70 65 72 74 79 2e 69 6e 74 56 61 6c 75 65 chTargetFields)property.intValue
5840 3b 0a 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 ;..............EditorGUI.BeginCh
5860 61 6e 67 65 43 68 65 63 6b 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 65 angeCheck();.............Rect.re
5880 63 74 20 3d 20 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 52 ct.=.EditorGUILayout.GetControlR
58a0 65 63 74 28 66 61 6c 73 65 2c 20 6b 4c 69 6e 65 48 65 69 67 68 74 20 2a 20 32 29 3b 0a 20 20 20 ect(false,.kLineHeight.*.2);....
58c0 20 20 20 20 20 20 20 20 20 52 65 63 74 20 69 74 65 6d 52 65 63 74 20 3d 20 6e 65 77 20 52 65 63 .........Rect.itemRect.=.new.Rec
58e0 74 28 72 65 63 74 2e 78 2c 20 72 65 63 74 2e 79 2c 20 72 65 63 74 2e 77 69 64 74 68 2c 20 6b 4c t(rect.x,.rect.y,.rect.width,.kL
5900 69 6e 65 48 65 69 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 ineHeight);.............EditorGU
5920 49 2e 42 65 67 69 6e 50 72 6f 70 65 72 74 79 28 72 65 63 74 2c 20 53 74 79 6c 65 73 2e 4d 61 74 I.BeginProperty(rect,.Styles.Mat
5940 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 54 69 74 6c 65 2c 20 70 72 6f 70 65 72 74 79 29 3b 0a chTargetFieldsTitle,.property);.
5960 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6d 69 6e 57 69 64 74 68 20 3d 20 30 2c 20 ............float.minWidth.=.0,.
5980 6d 61 78 57 69 64 74 68 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 maxWidth.=.0;.............Editor
59a0 53 74 79 6c 65 73 2e 6c 61 62 65 6c 2e 43 61 6c 63 4d 69 6e 4d 61 78 57 69 64 74 68 28 53 74 79 Styles.label.CalcMinMaxWidth(Sty
59c0 6c 65 73 2e 58 54 69 74 6c 65 2c 20 6f 75 74 20 6d 69 6e 57 69 64 74 68 2c 20 6f 75 74 20 6d 61 les.XTitle,.out.minWidth,.out.ma
59e0 78 57 69 64 74 68 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 77 69 64 74 68 xWidth);.............float.width
5a00 20 3d 20 6d 69 6e 57 69 64 74 68 20 2b 20 54 6f 67 67 6c 65 57 69 64 74 68 3b 0a 0a 20 20 20 20 .=.minWidth.+.ToggleWidth;......
5a20 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 61 ........GUILayout.BeginHorizonta
5a40 6c 28 29 3b 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 74 6f 72 l();.............Rect.r.=.Editor
5a60 47 55 49 2e 50 72 65 66 69 78 4c 61 62 65 6c 28 69 74 65 6d 52 65 63 74 2c 20 53 74 79 6c 65 73 GUI.PrefixLabel(itemRect,.Styles
5a80 2e 50 6f 73 69 74 69 6f 6e 54 69 74 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 .PositionTitle);.............int
5aa0 20 6f 6c 64 49 6e 64 65 6e 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 .oldIndent.=.EditorGUI.indentLev
5ac0 65 6c 3b 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 el;.............EditorGUI.indent
5ae0 4c 65 76 65 6c 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 77 69 64 74 68 20 3d Level.=.0;.............r.width.=
5b00 20 77 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 7c 3d 20 45 64 69 .width;.............value.|=.Edi
5b20 74 6f 72 47 55 49 2e 54 6f 67 67 6c 65 4c 65 66 74 28 72 2c 20 53 74 79 6c 65 73 2e 58 54 69 74 torGUI.ToggleLeft(r,.Styles.XTit
5b40 6c 65 2c 20 65 6e 75 6d 56 61 6c 75 65 2e 48 61 73 41 6e 79 28 4d 61 74 63 68 54 61 72 67 65 74 le,.enumValue.HasAny(MatchTarget
5b60 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 58 29 29 20 3f 20 28 69 6e 74 29 4d 61 74 63 68 54 Fields.PositionX)).?.(int)MatchT
5b80 61 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 58 20 3a 20 30 3b 0a 20 20 20 20 20 argetFields.PositionX.:.0;......
5ba0 20 20 20 20 20 20 20 72 2e 78 20 2b 3d 20 77 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .......r.x.+=.width;............
5bc0 20 76 61 6c 75 65 20 7c 3d 20 45 64 69 74 6f 72 47 55 49 2e 54 6f 67 67 6c 65 4c 65 66 74 28 72 .value.|=.EditorGUI.ToggleLeft(r
5be0 2c 20 53 74 79 6c 65 73 2e 59 54 69 74 6c 65 2c 20 65 6e 75 6d 56 61 6c 75 65 2e 48 61 73 41 6e ,.Styles.YTitle,.enumValue.HasAn
5c00 79 28 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 59 29 29 20 y(MatchTargetFields.PositionY)).
5c20 3f 20 28 69 6e 74 29 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f ?.(int)MatchTargetFields.Positio
5c40 6e 59 20 3a 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 78 20 2b 3d 20 77 69 64 74 68 nY.:.0;.............r.x.+=.width
5c60 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 7c 3d 20 45 64 69 74 6f 72 47 55 49 ;.............value.|=.EditorGUI
5c80 2e 54 6f 67 67 6c 65 4c 65 66 74 28 72 2c 20 53 74 79 6c 65 73 2e 5a 54 69 74 6c 65 2c 20 65 6e .ToggleLeft(r,.Styles.ZTitle,.en
5ca0 75 6d 56 61 6c 75 65 2e 48 61 73 41 6e 79 28 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 umValue.HasAny(MatchTargetFields
5cc0 2e 50 6f 73 69 74 69 6f 6e 5a 29 29 20 3f 20 28 69 6e 74 29 4d 61 74 63 68 54 61 72 67 65 74 46 .PositionZ)).?.(int)MatchTargetF
5ce0 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 5a 20 3a 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ields.PositionZ.:.0;............
5d00 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 6f 6c 64 49 6e 64 65 .EditorGUI.indentLevel.=.oldInde
5d20 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 nt;.............GUILayout.EndHor
5d40 69 7a 6f 6e 74 61 6c 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 izontal();..............GUILayou
5d60 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 t.BeginHorizontal();............
5d80 20 69 74 65 6d 52 65 63 74 2e 79 20 2b 3d 20 6b 4c 69 6e 65 48 65 69 67 68 74 3b 0a 20 20 20 20 .itemRect.y.+=.kLineHeight;.....
5da0 20 20 20 20 20 20 20 20 72 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 50 72 65 66 69 78 4c 61 62 65 ........r.=.EditorGUI.PrefixLabe
5dc0 6c 28 69 74 65 6d 52 65 63 74 2c 20 53 74 79 6c 65 73 2e 52 6f 74 61 74 69 6f 6e 54 69 74 6c 65 l(itemRect,.Styles.RotationTitle
5de0 29 3b 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 );.............EditorGUI.indentL
5e00 65 76 65 6c 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 77 69 64 74 68 20 3d 20 evel.=.0;.............r.width.=.
5e20 77 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 7c 3d 20 45 64 69 74 width;.............value.|=.Edit
5e40 6f 72 47 55 49 2e 54 6f 67 67 6c 65 4c 65 66 74 28 72 2c 20 53 74 79 6c 65 73 2e 58 54 69 74 6c orGUI.ToggleLeft(r,.Styles.XTitl
5e60 65 2c 20 65 6e 75 6d 56 61 6c 75 65 2e 48 61 73 41 6e 79 28 4d 61 74 63 68 54 61 72 67 65 74 46 e,.enumValue.HasAny(MatchTargetF
5e80 69 65 6c 64 73 2e 52 6f 74 61 74 69 6f 6e 58 29 29 20 3f 20 28 69 6e 74 29 4d 61 74 63 68 54 61 ields.RotationX)).?.(int)MatchTa
5ea0 72 67 65 74 46 69 65 6c 64 73 2e 52 6f 74 61 74 69 6f 6e 58 20 3a 20 30 3b 0a 20 20 20 20 20 20 rgetFields.RotationX.:.0;.......
5ec0 20 20 20 20 20 20 72 2e 78 20 2b 3d 20 77 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ......r.x.+=.width;.............
5ee0 76 61 6c 75 65 20 7c 3d 20 45 64 69 74 6f 72 47 55 49 2e 54 6f 67 67 6c 65 4c 65 66 74 28 72 2c value.|=.EditorGUI.ToggleLeft(r,
5f00 20 53 74 79 6c 65 73 2e 59 54 69 74 6c 65 2c 20 65 6e 75 6d 56 61 6c 75 65 2e 48 61 73 41 6e 79 .Styles.YTitle,.enumValue.HasAny
5f20 28 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 52 6f 74 61 74 69 6f 6e 59 29 29 20 3f (MatchTargetFields.RotationY)).?
5f40 20 28 69 6e 74 29 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 52 6f 74 61 74 69 6f 6e .(int)MatchTargetFields.Rotation
5f60 59 20 3a 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 2e 78 20 2b 3d 20 77 69 64 74 68 3b Y.:.0;.............r.x.+=.width;
5f80 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 7c 3d 20 45 64 69 74 6f 72 47 55 49 2e .............value.|=.EditorGUI.
5fa0 54 6f 67 67 6c 65 4c 65 66 74 28 72 2c 20 53 74 79 6c 65 73 2e 5a 54 69 74 6c 65 2c 20 65 6e 75 ToggleLeft(r,.Styles.ZTitle,.enu
5fc0 6d 56 61 6c 75 65 2e 48 61 73 41 6e 79 28 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e mValue.HasAny(MatchTargetFields.
5fe0 52 6f 74 61 74 69 6f 6e 5a 29 29 20 3f 20 28 69 6e 74 29 4d 61 74 63 68 54 61 72 67 65 74 46 69 RotationZ)).?.(int)MatchTargetFi
6000 65 6c 64 73 2e 52 6f 74 61 74 69 6f 6e 5a 20 3a 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 elds.RotationZ.:.0;.............
6020 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 6f 6c 64 49 6e 64 65 6e EditorGUI.indentLevel.=.oldInden
6040 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 t;.............GUILayout.EndHori
6060 7a 6f 6e 74 61 6c 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 zontal();..............EditorGUI
6080 2e 45 6e 64 50 72 6f 70 65 72 74 79 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 .EndProperty();.............if.(
60a0 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 0a 20 20 20 20 EditorGUI.EndChangeCheck()).....
60c0 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 ........{.................proper
60e0 74 79 2e 69 6e 74 56 61 6c 75 65 20 3d 20 76 61 6c 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ty.intValue.=.value;............
6100 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 54 72 61 .}.........}..........static.Tra
6120 63 6b 4f 66 66 73 65 74 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 28 41 6e 69 6d 61 74 69 6f 6e ckOffset.GetOffsetMode(Animation
6140 54 72 61 63 6b 20 74 72 61 63 6b 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 Track.track).........{..........
6160 20 20 20 69 66 20 28 74 72 61 63 6b 2e 69 73 53 75 62 54 72 61 63 6b 29 0a 20 20 20 20 20 20 20 ...if.(track.isSubTrack)........
6180 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 65 6e .....{.................var.paren
61a0 74 20 3d 20 74 72 61 63 6b 2e 70 61 72 65 6e 74 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 t.=.track.parent.as.AnimationTra
61c0 63 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 61 72 65 6e 74 20 21 ck;.................if.(parent.!
61e0 3d 20 6e 75 6c 6c 29 20 2f 2f 20 66 61 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 20 63 75 72 72 65 =.null).//.fallback.to.the.curre
6200 6e 74 20 74 72 61 63 6b 20 69 66 20 74 68 65 72 65 20 69 73 20 61 6e 20 65 72 72 6f 72 0a 20 20 nt.track.if.there.is.an.error...
6220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 63 6b 20 3d 20 70 61 72 65 6e 74 ..................track.=.parent
6240 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 ;.............}..............ret
6260 75 72 6e 20 74 72 61 63 6b 2e 74 72 61 63 6b 4f 66 66 73 65 74 3b 0a 20 20 20 20 20 20 20 20 7d urn.track.trackOffset;.........}
6280 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 67 65 74 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 6d 6f ..........//.gets.the.current.mo
62a0 64 65 2c 0a 20 20 20 20 20 20 20 20 54 72 61 63 6b 4f 66 66 73 65 74 20 47 65 74 4f 66 66 73 65 de,.........TrackOffset.GetOffse
62c0 74 4d 6f 64 65 28 6f 75 74 20 62 6f 6f 6c 20 68 61 73 4d 75 6c 74 69 70 6c 65 29 0a 20 20 20 20 tMode(out.bool.hasMultiple).....
62e0 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 6f 6f 74 4f 66 66 73 65 74 ....{.............var.rootOffset
6300 4d 6f 64 65 20 3d 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 28 74 61 72 67 65 74 20 61 73 20 41 Mode.=.GetOffsetMode(target.as.A
6320 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 68 61 73 4d nimationTrack);.............hasM
6340 75 6c 74 69 70 6c 65 20 3d 20 74 61 72 67 65 74 73 2e 4f 66 54 79 70 65 3c 41 6e 69 6d 61 74 69 ultiple.=.targets.OfType<Animati
6360 6f 6e 54 72 61 63 6b 3e 28 29 2e 41 6e 79 28 74 20 3d 3e 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 onTrack>().Any(t.=>.GetOffsetMod
6380 65 28 74 29 20 21 3d 20 72 6f 6f 74 4f 66 66 73 65 74 4d 6f 64 65 29 3b 0a 20 20 20 20 20 20 20 e(t).!=.rootOffsetMode);........
63a0 20 20 20 20 20 72 65 74 75 72 6e 20 72 6f 6f 74 4f 66 66 73 65 74 4d 6f 64 65 3b 0a 20 20 20 20 .....return.rootOffsetMode;.....
63c0 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....}.....}.}...................
63e0 00 00 00 00 17 00 00 00 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 49 6e 73 70 65 63 74 6f 72 00 ........AnimationTrackInspector.
6400 14 00 00 00 55 6e 69 74 79 45 64 69 74 6f 72 2e 54 69 6d 65 6c 69 6e 65 ....UnityEditor.Timeline