summaryrefslogtreecommitdiff
path: root/Library/Artifacts/17/17b2c32f969af2621abaef46533ac179
blob: 91b4d24ec5a37694e63d32a1686ad82896f59d38 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 a0 88 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ....................2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 28 90 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (...............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 0e 00 00 00 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 00 00 a6 8f 00 00 ............AnimationTrack......
10a0 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 6c 6c 65 using.System;.using.System.Colle
10c0 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e ctions.Generic;.using.UnityEngin
10e0 65 2e 41 6e 69 6d 61 74 69 6f 6e 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e e.Animations;.using.UnityEngine.
1100 45 78 70 65 72 69 6d 65 6e 74 61 6c 2e 41 6e 69 6d 61 74 69 6f 6e 73 3b 0a 75 73 69 6e 67 20 55 Experimental.Animations;.using.U
1120 6e 69 74 79 45 6e 67 69 6e 65 2e 50 6c 61 79 61 62 6c 65 73 3b 0a 75 73 69 6e 67 20 55 6e 69 74 nityEngine.Playables;.using.Unit
1140 79 45 6e 67 69 6e 65 2e 53 65 72 69 61 6c 69 7a 61 74 69 6f 6e 3b 0a 0a 23 69 66 20 55 4e 49 54 yEngine.Serialization;..#if.UNIT
1160 59 5f 45 44 49 54 4f 52 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0a 23 65 6e 64 Y_EDITOR.using.UnityEditor;.#end
1180 69 66 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 69 6d 65 6c 69 if..namespace.UnityEngine.Timeli
11a0 6e 65 0a 7b 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 46 ne.{.....///.<summary>.....///.F
11c0 6c 61 67 73 20 73 70 65 63 69 66 79 69 6e 67 20 77 68 69 63 68 20 6f 66 66 73 65 74 20 66 69 65 lags.specifying.which.offset.fie
11e0 6c 64 73 20 74 6f 20 6d 61 74 63 68 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a lds.to.match.....///.</summary>.
1200 20 20 20 20 5b 46 6c 61 67 73 5d 0a 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 4d 61 74 63 ....[Flags].....public.enum.Matc
1220 68 54 61 72 67 65 74 46 69 65 6c 64 73 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 hTargetFields.....{.........///.
1240 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 72 61 6e 73 6c 61 74 69 6f <summary>.........///.Translatio
1260 6e 20 58 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e n.X.value.........///.</summary>
1280 0a 20 20 20 20 20 20 20 20 50 6f 73 69 74 69 6f 6e 58 20 3d 20 31 20 3c 3c 20 30 2c 0a 20 20 20 .........PositionX.=.1.<<.0,....
12a0 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 .....///.<summary>.........///.T
12c0 72 61 6e 73 6c 61 74 69 6f 6e 20 59 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ranslation.Y.value.........///.<
12e0 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 50 6f 73 69 74 69 6f 6e 59 20 3d 20 31 20 /summary>.........PositionY.=.1.
1300 3c 3c 20 31 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 <<.1,.........///.<summary>.....
1320 20 20 20 20 2f 2f 2f 20 54 72 61 6e 73 6c 61 74 69 6f 6e 20 5a 20 76 61 6c 75 65 0a 20 20 20 20 ....///.Translation.Z.value.....
1340 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 50 6f 73 69 74 ....///.</summary>.........Posit
1360 69 6f 6e 5a 20 3d 20 31 20 3c 3c 20 32 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d ionZ.=.1.<<.2,.........///.<summ
1380 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 6f 74 61 74 69 6f 6e 20 45 75 6c 65 72 20 ary>.........///.Rotation.Euler.
13a0 41 6e 67 6c 65 20 58 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d Angle.X.value.........///.</summ
13c0 61 72 79 3e 0a 20 20 20 20 20 20 20 20 52 6f 74 61 74 69 6f 6e 58 20 3d 20 31 20 3c 3c 20 33 2c ary>.........RotationX.=.1.<<.3,
13e0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f .........///.<summary>........./
1400 2f 2f 20 52 6f 74 61 74 69 6f 6e 20 45 75 6c 65 72 20 41 6e 67 6c 65 20 59 20 76 61 6c 75 65 0a //.Rotation.Euler.Angle.Y.value.
1420 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 52 ........///.</summary>.........R
1440 6f 74 61 74 69 6f 6e 59 20 3d 20 31 20 3c 3c 20 34 2c 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c otationY.=.1.<<.4,.........///.<
1460 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 6f 74 61 74 69 6f 6e 20 45 75 summary>.........///.Rotation.Eu
1480 6c 65 72 20 41 6e 67 6c 65 20 5a 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f ler.Angle.Z.value.........///.</
14a0 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 52 6f 74 61 74 69 6f 6e 5a 20 3d 20 31 20 3c summary>.........RotationZ.=.1.<
14c0 3c 20 35 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 <.5.....}......///.<summary>....
14e0 20 2f 2f 2f 20 44 65 73 63 72 69 62 65 73 20 77 68 61 74 20 69 73 20 75 73 65 64 20 74 6f 20 73 .///.Describes.what.is.used.to.s
1500 65 74 20 74 68 65 20 73 74 61 72 74 69 6e 67 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6f 72 69 et.the.starting.position.and.ori
1520 65 6e 74 61 74 69 6f 6e 20 6f 66 20 65 61 63 68 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b entation.of.each.Animation.Track
1540 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 ......///.</summary>.....///.<re
1560 6d 61 72 6b 73 3e 0a 20 20 20 20 2f 2f 2f 20 42 79 20 64 65 66 61 75 6c 74 2c 20 65 61 63 68 20 marks>.....///.By.default,.each.
1580 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 20 75 73 65 73 20 41 70 70 6c 79 54 72 61 6e 73 66 Animation.Track.uses.ApplyTransf
15a0 6f 72 6d 4f 66 66 73 65 74 73 20 74 6f 20 73 74 61 72 74 20 66 72 6f 6d 20 61 20 73 65 74 20 70 ormOffsets.to.start.from.a.set.p
15c0 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6f 72 69 65 6e 74 61 74 69 6f 6e 2e 0a 20 20 20 20 2f 2f 2f osition.and.orientation......///
15e0 20 54 6f 20 6f 66 66 73 65 74 20 65 61 63 68 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 20 .To.offset.each.Animation.Track.
1600 62 61 73 65 64 20 6f 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 6f 73 69 74 69 6f 6e 20 61 6e based.on.the.current.position.an
1620 64 20 6f 72 69 65 6e 74 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 73 63 65 6e 65 2c 20 75 73 65 20 d.orientation.in.the.scene,.use.
1640 41 70 70 6c 79 53 63 65 6e 65 4f 66 66 73 65 74 73 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d ApplySceneOffsets......///.</rem
1660 61 72 6b 73 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 54 72 61 63 6b 4f 66 66 73 65 arks>.....public.enum.TrackOffse
1680 74 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 t.....{.........///.<summary>...
16a0 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 20 74 68 69 73 20 73 65 74 74 69 6e 67 20 74 6f 20 6f 66 ......///.Use.this.setting.to.of
16c0 66 73 65 74 20 65 61 63 68 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 20 62 61 73 65 64 20 fset.each.Animation.Track.based.
16e0 6f 6e 20 61 20 73 65 74 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6f 72 69 65 6e 74 61 74 69 6f on.a.set.position.and.orientatio
1700 6e 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 n..........///.</summary>.......
1720 20 20 41 70 70 6c 79 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 73 2c 0a 20 20 20 20 20 20 20 ..ApplyTransformOffsets,........
1740 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 20 74 .///.<summary>.........///.Use.t
1760 68 69 73 20 73 65 74 74 69 6e 67 20 74 6f 20 6f 66 66 73 65 74 20 65 61 63 68 20 41 6e 69 6d 61 his.setting.to.offset.each.Anima
1780 74 69 6f 6e 20 54 72 61 63 6b 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 tion.Track.based.on.the.current.
17a0 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6f 72 69 65 6e 74 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 position.and.orientation.in.the.
17c0 73 63 65 6e 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 scene..........///.</summary>...
17e0 20 20 20 20 20 20 41 70 70 6c 79 53 63 65 6e 65 4f 66 66 73 65 74 73 2c 0a 20 20 20 20 20 20 20 ......ApplySceneOffsets,........
1800 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 65 20 74 .///.<summary>.........///.Use.t
1820 68 69 73 20 73 65 74 74 69 6e 67 20 74 6f 20 6f 66 66 73 65 74 20 72 6f 6f 74 20 74 72 61 6e 73 his.setting.to.offset.root.trans
1840 66 6f 72 6d 73 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 73 74 61 74 65 20 6f 66 20 74 68 65 20 forms.based.on.the.state.of.the.
1860 61 6e 69 6d 61 74 6f 72 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e animator..........///.</summary>
1880 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f .........///.<remarks>........./
18a0 2f 2f 20 4f 6e 6c 79 20 75 73 65 20 74 68 69 73 20 73 65 74 74 69 6e 67 20 74 6f 20 73 75 70 70 //.Only.use.this.setting.to.supp
18c0 6f 72 74 20 6c 65 67 61 63 79 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 73 2e 20 54 68 69 ort.legacy.Animation.Tracks..Thi
18e0 73 20 6d 6f 64 65 20 6d 61 79 20 62 65 20 64 65 70 72 65 63 61 74 65 64 20 69 6e 20 61 20 66 75 s.mode.may.be.deprecated.in.a.fu
1900 74 75 72 65 20 72 65 6c 65 61 73 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0a 20 20 20 20 20 20 ture.release..........///.......
1920 20 20 2f 2f 2f 20 49 6e 20 41 75 74 6f 20 6d 6f 64 65 2c 20 77 68 65 6e 20 74 68 65 20 61 6e 69 ..///.In.Auto.mode,.when.the.ani
1940 6d 61 74 6f 72 20 62 6f 75 6e 64 20 74 6f 20 74 68 65 20 61 6e 69 6d 61 74 69 6f 6e 20 74 72 61 mator.bound.to.the.animation.tra
1960 63 6b 20 63 6f 6e 74 61 69 6e 73 20 61 6e 20 41 6e 69 6d 61 74 6f 72 43 6f 6e 74 72 6f 6c 6c 65 ck.contains.an.AnimatorControlle
1980 72 2c 20 69 74 20 6f 66 66 73 65 74 73 20 61 6c 6c 20 61 6e 69 6d 61 74 69 6f 6e 73 20 73 69 6d r,.it.offsets.all.animations.sim
19a0 69 6c 61 72 20 74 6f 20 41 70 70 6c 79 53 63 65 6e 65 4f 66 66 73 65 74 73 2e 0a 20 20 20 20 20 ilar.to.ApplySceneOffsets.......
19c0 20 20 20 2f 2f 2f 20 49 66 20 6e 6f 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 69 73 20 61 73 73 69 67 ...///.If.no.controller.is.assig
19e0 6e 65 64 2c 20 74 68 65 6e 20 61 6c 6c 20 6f 66 66 73 65 74 73 20 61 72 65 20 73 65 74 20 74 6f ned,.then.all.offsets.are.set.to
1a00 20 73 74 61 72 74 20 66 72 6f 6d 20 61 20 66 69 78 65 64 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 .start.from.a.fixed.position.and
1a20 20 6f 72 69 65 6e 74 61 74 69 6f 6e 2c 20 73 69 6d 69 6c 61 72 20 74 6f 20 41 70 70 6c 79 54 72 .orientation,.similar.to.ApplyTr
1a40 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 20 41 ansformOffsets..........///.In.A
1a60 75 74 6f 20 6d 6f 64 65 2c 20 69 6e 20 6d 6f 73 74 20 63 61 73 65 73 2c 20 72 6f 6f 74 20 74 72 uto.mode,.in.most.cases,.root.tr
1a80 61 6e 73 66 6f 72 6d 73 20 61 72 65 20 6e 6f 74 20 61 66 66 65 63 74 65 64 20 62 79 20 6c 6f 63 ansforms.are.not.affected.by.loc
1aa0 61 6c 20 73 63 61 6c 65 20 6f 72 20 41 6e 69 6d 61 74 6f 72 2e 68 75 6d 61 6e 53 63 61 6c 65 2c al.scale.or.Animator.humanScale,
1ac0 20 75 6e 6c 65 73 73 20 74 68 65 20 61 6e 69 6d 61 74 6f 72 20 68 61 73 20 61 6e 20 41 6e 69 6d .unless.the.animator.has.an.Anim
1ae0 61 74 6f 72 43 6f 6e 74 72 6f 6c 6c 65 72 20 61 6e 64 20 41 6e 69 6d 61 74 6f 72 2e 61 70 70 6c atorController.and.Animator.appl
1b00 79 52 6f 6f 74 4d 6f 74 69 6f 6e 20 69 73 20 73 65 74 20 74 6f 20 74 72 75 65 2e 0a 20 20 20 20 yRootMotion.is.set.to.true......
1b20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 41 75 74 6f 0a ....///.</remarks>.........Auto.
1b40 20 20 20 20 7d 0a 0a 0a 20 20 20 20 2f 2f 20 6f 66 66 73 65 74 20 6d 6f 64 65 0a 20 20 20 20 65 ....}.......//.offset.mode.....e
1b60 6e 75 6d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 0a 20 20 20 20 7b 0a 20 20 20 20 num.AppliedOffsetMode.....{.....
1b80 20 20 20 20 4e 6f 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 2c 0a 20 20 20 20 20 20 20 20 54 72 61 ....NoRootTransform,.........Tra
1ba0 6e 73 66 6f 72 6d 4f 66 66 73 65 74 2c 0a 20 20 20 20 20 20 20 20 53 63 65 6e 65 4f 66 66 73 65 nsformOffset,.........SceneOffse
1bc0 74 2c 0a 20 20 20 20 20 20 20 20 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 4c 65 67 61 63 79 t,.........TransformOffsetLegacy
1be0 2c 0a 20 20 20 20 20 20 20 20 53 63 65 6e 65 4f 66 66 73 65 74 4c 65 67 61 63 79 2c 0a 20 20 20 ,.........SceneOffsetLegacy,....
1c00 20 20 20 20 20 53 63 65 6e 65 4f 66 66 73 65 74 45 64 69 74 6f 72 2c 20 2f 2f 20 73 63 65 6e 65 .....SceneOffsetEditor,.//.scene
1c20 20 6f 66 66 73 65 74 20 6d 6f 64 65 20 69 6e 20 65 64 69 74 6f 72 0a 20 20 20 20 20 20 20 20 53 .offset.mode.in.editor.........S
1c40 63 65 6e 65 4f 66 66 73 65 74 4c 65 67 61 63 79 45 64 69 74 6f 72 2c 0a 20 20 20 20 7d 0a 0a 0a ceneOffsetLegacyEditor,.....}...
1c60 20 20 20 20 2f 2f 20 73 65 70 61 72 61 74 65 20 66 72 6f 6d 20 74 68 65 20 65 6e 75 6d 20 74 6f ....//.separate.from.the.enum.to
1c80 20 68 69 64 65 20 74 68 65 6d 20 66 72 6f 6d 20 55 49 20 65 6c 65 6d 65 6e 74 73 0a 20 20 20 20 .hide.them.from.UI.elements.....
1ca0 73 74 61 74 69 63 20 63 6c 61 73 73 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 43 6f 6e static.class.MatchTargetFieldCon
1cc0 73 74 61 6e 74 73 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 stants.....{.........public.stat
1ce0 69 63 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 41 6c 6c 20 3d 20 4d 61 74 63 68 ic.MatchTargetFields.All.=.Match
1d00 54 61 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 58 20 7c 20 4d 61 74 63 68 54 61 TargetFields.PositionX.|.MatchTa
1d20 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 59 20 7c 0a 20 20 20 20 20 20 20 20 20 rgetFields.PositionY.|..........
1d40 20 20 20 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 5a 20 7c ...MatchTargetFields.PositionZ.|
1d60 20 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 58 20 7c 0a 20 .MatchTargetFields.RotationX.|..
1d80 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 52 6f 74 ...........MatchTargetFields.Rot
1da0 61 74 69 6f 6e 59 20 7c 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 52 6f 74 61 74 ationY.|.MatchTargetFields.Rotat
1dc0 69 6f 6e 5a 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 4d 61 74 ionZ;..........public.static.Mat
1de0 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 4e 6f 6e 65 20 3d 20 30 3b 0a 0a 20 20 20 20 20 20 chTargetFields.None.=.0;........
1e00 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 ..public.static.MatchTargetField
1e20 73 20 50 6f 73 69 74 69 6f 6e 20 3d 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 50 s.Position.=.MatchTargetFields.P
1e40 6f 73 69 74 69 6f 6e 58 20 7c 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e 50 6f 73 ositionX.|.MatchTargetFields.Pos
1e60 69 74 69 6f 6e 59 20 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 63 68 54 61 72 67 65 74 itionY.|.............MatchTarget
1e80 46 69 65 6c 64 73 2e 50 6f 73 69 74 69 6f 6e 5a 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 Fields.PositionZ;..........publi
1ea0 63 20 73 74 61 74 69 63 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 52 6f 74 61 74 c.static.MatchTargetFields.Rotat
1ec0 69 6f 6e 20 3d 20 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 ion.=.MatchTargetFields.Rotation
1ee0 58 20 7c 20 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 20 X.|.MatchTargetFields.RotationY.
1f00 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 2e |.............MatchTargetFields.
1f20 52 6f 74 61 74 69 6f 6e 5a 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 RotationZ;..........public.stati
1f40 63 20 62 6f 6f 6c 20 48 61 73 41 6e 79 28 74 68 69 73 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 c.bool.HasAny(this.MatchTargetFi
1f60 65 6c 64 73 20 6d 65 2c 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 66 69 65 6c 64 elds.me,.MatchTargetFields.field
1f80 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 s).........{.............return.
1fa0 28 6d 65 20 26 20 66 69 65 6c 64 73 29 20 21 3d 20 4e 6f 6e 65 3b 0a 20 20 20 20 20 20 20 20 7d (me.&.fields).!=.None;.........}
1fc0 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 4d 61 74 63 68 54 61 72 ..........public.static.MatchTar
1fe0 67 65 74 46 69 65 6c 64 73 20 54 6f 67 67 6c 65 28 74 68 69 73 20 4d 61 74 63 68 54 61 72 67 65 getFields.Toggle(this.MatchTarge
2000 74 46 69 65 6c 64 73 20 6d 65 2c 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 66 6c tFields.me,.MatchTargetFields.fl
2020 61 67 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e ag).........{.............return
2040 20 6d 65 20 5e 20 66 6c 61 67 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 0a 0a 20 20 .me.^.flag;.........}.....}.....
2060 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 41 20 54 69 6d 65 6c 69 ..///.<summary>.....///.A.Timeli
2080 6e 65 20 74 72 61 63 6b 20 75 73 65 64 20 66 6f 72 20 70 6c 61 79 69 6e 67 20 62 61 63 6b 20 61 ne.track.used.for.playing.back.a
20a0 6e 69 6d 61 74 69 6f 6e 73 20 6f 6e 20 61 6e 20 41 6e 69 6d 61 74 6f 72 2e 0a 20 20 20 20 2f 2f nimations.on.an.Animator......//
20c0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 61 62 6c 65 5d 0a /.</summary>.....[Serializable].
20e0 20 20 20 20 5b 54 72 61 63 6b 43 6c 69 70 54 79 70 65 28 74 79 70 65 6f 66 28 41 6e 69 6d 61 74 ....[TrackClipType(typeof(Animat
2100 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 29 2c 20 66 61 6c 73 65 29 5d 0a 20 20 20 20 5b ionPlayableAsset),.false)].....[
2120 54 72 61 63 6b 42 69 6e 64 69 6e 67 54 79 70 65 28 74 79 70 65 6f 66 28 41 6e 69 6d 61 74 6f 72 TrackBindingType(typeof(Animator
2140 29 29 5d 0a 20 20 20 20 5b 45 78 63 6c 75 64 65 46 72 6f 6d 50 72 65 73 65 74 5d 0a 20 20 20 20 ))].....[ExcludeFromPreset].....
2160 70 75 62 6c 69 63 20 70 61 72 74 69 61 6c 20 63 6c 61 73 73 20 41 6e 69 6d 61 74 69 6f 6e 54 72 public.partial.class.AnimationTr
2180 61 63 6b 20 3a 20 54 72 61 63 6b 41 73 73 65 74 2c 20 49 4c 61 79 65 72 61 62 6c 65 0a 20 20 20 ack.:.TrackAsset,.ILayerable....
21a0 20 7b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 5f 44 65 66 61 75 6c .{.........const.string.k_Defaul
21c0 74 49 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 20 3d 20 22 52 65 63 6f 72 64 65 64 22 3b 0a tInfiniteClipName.=."Recorded";.
21e0 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 5f 44 65 66 61 75 6c 74 52 65 ........const.string.k_DefaultRe
2200 63 6f 72 64 61 62 6c 65 43 6c 69 70 4e 61 6d 65 20 3d 20 22 52 65 63 6f 72 64 65 64 22 3b 0a 0a cordableClipName.=."Recorded";..
2220 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 6c ........[SerializeField,.Formerl
2240 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 6d 5f 4f 70 65 6e 43 6c 69 70 50 72 65 45 78 74 72 ySerializedAs("m_OpenClipPreExtr
2260 61 70 6f 6c 61 74 69 6f 6e 22 29 5d 0a 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 43 6c 69 apolation")].........TimelineCli
2280 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c p.ClipExtrapolation.m_InfiniteCl
22a0 69 70 50 72 65 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 54 69 6d 65 6c 69 6e 65 43 6c 69 ipPreExtrapolation.=.TimelineCli
22c0 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 2e 4e 6f 6e 65 3b 0a 0a 20 20 20 20 20 p.ClipExtrapolation.None;.......
22e0 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 6c 79 53 65 72 69 ...[SerializeField,.FormerlySeri
2300 61 6c 69 7a 65 64 41 73 28 22 6d 5f 4f 70 65 6e 43 6c 69 70 50 6f 73 74 45 78 74 72 61 70 6f 6c alizedAs("m_OpenClipPostExtrapol
2320 61 74 69 6f 6e 22 29 5d 0a 20 20 20 20 20 20 20 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 43 6c ation")].........TimelineClip.Cl
2340 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 50 6f ipExtrapolation.m_InfiniteClipPo
2360 73 74 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 43 stExtrapolation.=.TimelineClip.C
2380 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 2e 4e 6f 6e 65 3b 0a 0a 20 20 20 20 20 20 20 20 lipExtrapolation.None;..........
23a0 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 [SerializeField,.FormerlySeriali
23c0 7a 65 64 41 73 28 22 6d 5f 4f 70 65 6e 43 6c 69 70 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 22 zedAs("m_OpenClipOffsetPosition"
23e0 29 5d 0a 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 33 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 )].........Vector3.m_InfiniteCli
2400 70 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a pOffsetPosition.=.Vector3.zero;.
2420 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 .........[SerializeField,.Former
2440 6c 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 6d 5f 4f 70 65 6e 43 6c 69 70 4f 66 66 73 65 74 lySerializedAs("m_OpenClipOffset
2460 45 75 6c 65 72 41 6e 67 6c 65 73 22 29 5d 0a 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 33 20 6d EulerAngles")].........Vector3.m
2480 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 20 3d _InfiniteClipOffsetEulerAngles.=
24a0 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 .Vector3.zero;..........[Seriali
24c0 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 6c 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 6d zeField,.FormerlySerializedAs("m
24e0 5f 4f 70 65 6e 43 6c 69 70 54 69 6d 65 4f 66 66 73 65 74 22 29 5d 0a 20 20 20 20 20 20 20 20 64 _OpenClipTimeOffset")].........d
2500 6f 75 62 6c 65 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 54 69 6d 65 4f 66 66 73 65 74 3b 0a ouble.m_InfiniteClipTimeOffset;.
2520 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 46 6f 72 6d 65 72 .........[SerializeField,.Former
2540 6c 79 53 65 72 69 61 6c 69 7a 65 64 41 73 28 22 6d 5f 4f 70 65 6e 43 6c 69 70 52 65 6d 6f 76 65 lySerializedAs("m_OpenClipRemove
2560 4f 66 66 73 65 74 22 29 5d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 49 6e 66 69 6e 69 74 Offset")].........bool.m_Infinit
2580 65 43 6c 69 70 52 65 6d 6f 76 65 4f 66 66 73 65 74 3b 20 2f 2f 20 63 61 63 68 65 64 20 76 61 6c eClipRemoveOffset;.//.cached.val
25a0 75 65 20 66 6f 72 20 72 65 6d 6f 76 65 20 6f 66 66 73 65 74 0a 0a 20 20 20 20 20 20 20 20 5b 53 ue.for.remove.offset..........[S
25c0 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 6d 5f 49 6e erializeField].........bool.m_In
25e0 66 69 6e 69 74 65 43 6c 69 70 41 70 70 6c 79 46 6f 6f 74 49 4b 20 3d 20 74 72 75 65 3b 0a 0a 20 finiteClipApplyFootIK.=.true;...
2600 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 48 69 64 65 49 6e 49 6e .......[SerializeField,.HideInIn
2620 73 70 65 63 74 6f 72 5d 0a 20 20 20 20 20 20 20 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 spector].........AnimationPlayab
2640 6c 65 41 73 73 65 74 2e 4c 6f 6f 70 4d 6f 64 65 20 6d 49 6e 66 69 6e 69 74 65 43 6c 69 70 4c 6f leAsset.LoopMode.mInfiniteClipLo
2660 6f 70 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 2e 4c 6f 6f 70 op.=.AnimationPlayableAsset.Loop
2680 4d 6f 64 65 2e 55 73 65 53 6f 75 72 63 65 41 73 73 65 74 3b 0a 0a 20 20 20 20 20 20 20 20 5b 53 Mode.UseSourceAsset;..........[S
26a0 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 4d 61 74 63 68 54 61 72 67 erializeField].........MatchTarg
26c0 65 74 46 69 65 6c 64 73 20 6d 5f 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 3d 20 4d etFields.m_MatchTargetFields.=.M
26e0 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 43 6f 6e 73 74 61 6e 74 73 2e 41 6c 6c 3b 0a 20 20 atchTargetFieldConstants.All;...
2700 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 56 ......[SerializeField].........V
2720 65 63 74 6f 72 33 20 6d 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f ector3.m_Position.=.Vector3.zero
2740 3b 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 ;.........[SerializeField]......
2760 20 20 20 56 65 63 74 6f 72 33 20 6d 5f 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 56 65 63 74 6f ...Vector3.m_EulerAngles.=.Vecto
2780 72 33 2e 7a 65 72 6f 3b 0a 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 r3.zero;...........[SerializeFie
27a0 6c 64 5d 20 41 76 61 74 61 72 4d 61 73 6b 20 6d 5f 41 76 61 74 61 72 4d 61 73 6b 3b 0a 20 20 20 ld].AvatarMask.m_AvatarMask;....
27c0 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 62 6f 6f 6c 20 20 20 20 20 20 .....[SerializeField].bool......
27e0 20 6d 5f 41 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 20 20 3d 20 74 72 75 65 3b 0a 0a 20 20 20 .m_ApplyAvatarMask..=.true;.....
2800 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 20 54 72 61 63 6b 4f 66 66 73 65 .....[SerializeField].TrackOffse
2820 74 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 20 3d 20 54 72 61 63 6b 4f 66 66 73 65 74 2e 41 70 t.m_TrackOffset.=.TrackOffset.Ap
2840 70 6c 79 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 73 3b 0a 0a 20 20 20 20 20 20 20 20 5b 53 plyTransformOffsets;..........[S
2860 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 2c 20 48 69 64 65 49 6e 49 6e 73 70 65 63 74 6f 72 5d 20 erializeField,.HideInInspector].
2880 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 3b 0a 0a 0a AnimationClip.m_InfiniteClip;...
28a0 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 #if.UNITY_EDITOR.........private
28c0 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 6d 5f 44 65 66 61 75 6c 74 50 6f 73 65 43 6c 69 70 .AnimationClip.m_DefaultPoseClip
28e0 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 ;.........private.AnimationClip.
2900 6d 5f 43 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 70 3b 0a 0a 20 20 20 20 20 20 20 m_CachedPropertiesClip;.........
2920 20 41 6e 69 6d 61 74 69 6f 6e 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 20 6d 5f 43 6c 69 70 4f .AnimationOffsetPlayable.m_ClipO
2940 66 66 73 65 74 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 56 65 63 74 6f 72 33 20 ffset;..........private.Vector3.
2960 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e m_SceneOffsetPosition.=.Vector3.
2980 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 56 65 63 74 6f 72 33 20 6d 5f zero;.........private.Vector3.m_
29a0 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 SceneOffsetRotation.=.Vector3.ze
29c0 72 6f 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 48 61 73 50 ro;..........private.bool.m_HasP
29e0 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 20 3d 20 66 61 6c 73 65 3b 0a 23 65 6e 64 69 66 reviewComponents.=.false;.#endif
2a00 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 ..........///.<summary>.........
2a20 2f 2f 2f 20 54 68 65 20 74 72 61 6e 73 6c 61 74 69 6f 6e 20 6f 66 66 73 65 74 20 6f 66 20 74 68 ///.The.translation.offset.of.th
2a40 65 20 65 6e 74 69 72 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 e.entire.track..........///.</su
2a60 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 33 20 70 6f mmary>.........public.Vector3.po
2a80 73 69 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 sition.........{.............get
2aa0 20 7b 20 72 65 74 75 72 6e 20 6d 5f 50 6f 73 69 74 69 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 20 .{.return.m_Position;.}.........
2ac0 20 20 20 20 73 65 74 20 7b 20 6d 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d 0a ....set.{.m_Position.=.value;.}.
2ae0 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e ........}..........///.<summary>
2b00 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 6f 74 61 74 69 6f 6e 20 6f 66 66 73 65 74 .........///.The.rotation.offset
2b20 20 6f 66 20 74 68 65 20 65 6e 74 69 72 65 20 74 72 61 63 6b 2c 20 65 78 70 72 65 73 73 65 64 20 .of.the.entire.track,.expressed.
2b40 61 73 20 61 20 71 75 61 74 65 72 6e 69 6f 6e 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 as.a.quaternion..........///.</s
2b60 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 51 75 61 74 65 72 6e 69 6f ummary>.........public.Quaternio
2b80 6e 20 72 6f 74 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 n.rotation.........{............
2ba0 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 51 75 61 74 65 72 6e 69 6f 6e 2e 45 75 6c 65 72 28 6d .get.{.return.Quaternion.Euler(m
2bc0 5f 45 75 6c 65 72 41 6e 67 6c 65 73 29 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 _EulerAngles);.}.............set
2be0 20 7b 20 6d 5f 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 76 61 6c 75 65 2e 65 75 6c 65 72 41 6e .{.m_EulerAngles.=.value.eulerAn
2c00 67 6c 65 73 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c gles;.}.........}..........///.<
2c20 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 65 75 6c 65 72 20 61 summary>.........///.The.euler.a
2c40 6e 67 6c 65 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 72 6f 74 61 74 ngle.representation.of.the.rotat
2c60 69 6f 6e 20 6f 66 66 73 65 74 20 6f 66 20 74 68 65 20 65 6e 74 69 72 65 20 74 72 61 63 6b 2e 0a ion.offset.of.the.entire.track..
2c80 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 ........///.</summary>.........p
2ca0 75 62 6c 69 63 20 56 65 63 74 6f 72 33 20 65 75 6c 65 72 41 6e 67 6c 65 73 0a 20 20 20 20 20 20 ublic.Vector3.eulerAngles.......
2cc0 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 45 ..{.............get.{.return.m_E
2ce0 75 6c 65 72 41 6e 67 6c 65 73 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 ulerAngles;.}.............set.{.
2d00 6d 5f 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 m_EulerAngles.=.value;.}........
2d20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 .}..........///.<summary>.......
2d40 20 20 2f 2f 2f 20 53 70 65 63 69 66 69 65 73 20 77 68 65 74 68 65 72 20 74 6f 20 61 70 70 6c 79 ..///.Specifies.whether.to.apply
2d60 20 74 72 61 63 6b 20 6f 66 66 73 65 74 73 20 74 6f 20 61 6c 6c 20 63 6c 69 70 73 20 6f 6e 20 74 .track.offsets.to.all.clips.on.t
2d80 68 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e he.track..........///.</summary>
2da0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f .........///.<remarks>........./
2dc0 2f 2f 20 54 68 69 73 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 6f 66 66 73 65 74 20 61 6c //.This.can.be.used.to.offset.al
2de0 6c 20 63 6c 69 70 73 20 6f 6e 20 61 20 74 72 61 63 6b 2c 20 69 6e 20 61 64 64 69 74 69 6f 6e 20 l.clips.on.a.track,.in.addition.
2e00 74 6f 20 74 68 65 20 63 6c 69 70 73 20 69 6e 64 69 76 69 64 75 61 6c 20 6f 66 66 73 65 74 73 2e to.the.clips.individual.offsets.
2e20 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 .........///.</remarks>.........
2e40 5b 4f 62 73 6f 6c 65 74 65 28 22 61 70 70 6c 79 4f 66 66 73 65 74 20 69 73 20 64 65 70 72 65 63 [Obsolete("applyOffset.is.deprec
2e60 61 74 65 64 2e 20 55 73 65 20 74 72 61 63 6b 4f 66 66 73 65 74 20 69 6e 73 74 65 61 64 22 2c 20 ated..Use.trackOffset.instead",.
2e80 74 72 75 65 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 61 70 70 6c 79 true)].........public.bool.apply
2ea0 4f 66 66 73 65 74 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 Offsets.........{.............ge
2ec0 74 20 7b 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t.{.return.false;.}.............
2ee0 73 65 74 20 7b 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 set.{}.........}..........///.<s
2f00 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 65 63 69 66 69 65 73 20 77 68 ummary>.........///.Specifies.wh
2f20 61 74 20 69 73 20 75 73 65 64 20 74 6f 20 73 65 74 20 74 68 65 20 73 74 61 72 74 69 6e 67 20 70 at.is.used.to.set.the.starting.p
2f40 6f 73 69 74 69 6f 6e 20 61 6e 64 20 6f 72 69 65 6e 74 61 74 69 6f 6e 20 6f 66 20 61 6e 20 41 6e osition.and.orientation.of.an.An
2f60 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d imation.Track..........///.</sum
2f80 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 mary>.........///.<remarks>.....
2fa0 20 20 20 20 2f 2f 2f 20 54 72 61 63 6b 20 4f 66 66 73 65 74 20 69 73 20 6f 6e 6c 79 20 61 70 70 ....///.Track.Offset.is.only.app
2fc0 6c 69 65 64 20 77 68 65 6e 20 74 68 65 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 20 63 6f lied.when.the.Animation.Track.co
2fe0 6e 74 61 69 6e 73 20 61 6e 69 6d 61 74 69 6f 6e 20 74 68 61 74 20 6d 6f 64 69 66 69 65 73 20 74 ntains.animation.that.modifies.t
3000 68 65 20 72 6f 6f 74 20 54 72 61 6e 73 66 6f 72 6d 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c he.root.Transform..........///.<
3020 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 72 61 63 6b 4f 66 /remarks>.........public.TrackOf
3040 66 73 65 74 20 74 72 61 63 6b 4f 66 66 73 65 74 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 fset.trackOffset.........{......
3060 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 54 72 61 63 6b 4f 66 66 73 65 .......get.{.return.m_TrackOffse
3080 74 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 54 72 61 63 6b 4f 66 t;.}.............set.{.m_TrackOf
30a0 66 73 65 74 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 fset.=.value;.}.........}.......
30c0 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 65 ...///.<summary>.........///.Spe
30e0 63 69 66 69 65 73 20 77 68 69 63 68 20 66 69 65 6c 64 73 20 74 6f 20 6d 61 74 63 68 20 77 68 65 cifies.which.fields.to.match.whe
3100 6e 20 61 6c 69 67 6e 69 6e 67 20 6f 66 66 73 65 74 73 20 6f 66 20 63 6c 69 70 73 2e 0a 20 20 20 n.aligning.offsets.of.clips.....
3120 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c .....///.</summary>.........publ
3140 69 63 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 20 6d 61 74 63 68 54 61 72 67 65 74 ic.MatchTargetFields.matchTarget
3160 46 69 65 6c 64 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 Fields.........{.............get
3180 20 7b 20 72 65 74 75 72 6e 20 6d 5f 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c 64 73 3b 20 7d .{.return.m_MatchTargetFields;.}
31a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 4d 61 74 63 68 54 61 72 67 65 74 .............set.{.m_MatchTarget
31c0 46 69 65 6c 64 73 20 3d 20 76 61 6c 75 65 20 26 20 4d 61 74 63 68 54 61 72 67 65 74 46 69 65 6c Fields.=.value.&.MatchTargetFiel
31e0 64 43 6f 6e 73 74 61 6e 74 73 2e 41 6c 6c 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 dConstants.All;.}.........}.....
3200 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 .....///.<summary>.........///.A
3220 6e 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 73 74 6f 72 69 6e 67 20 74 68 65 20 64 61 74 61 n.AnimationClip.storing.the.data
3240 20 66 6f 72 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 .for.an.infinite.track..........
3260 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 ///.</summary>.........///.<rema
3280 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 rks>.........///.The.value.of.th
32a0 69 73 20 70 72 6f 70 65 72 74 79 20 69 73 20 6e 75 6c 6c 20 77 68 65 6e 20 74 68 65 20 41 6e 69 is.property.is.null.when.the.Ani
32c0 6d 61 74 69 6f 6e 54 72 61 63 6b 20 69 73 20 69 6e 20 43 6c 69 70 20 4d 6f 64 65 2e 0a 20 20 20 mationTrack.is.in.Clip.Mode.....
32e0 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c .....///.</remarks>.........publ
3300 69 63 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 0a 20 20 ic.AnimationClip.infiniteClip...
3320 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e ......{.............get.{.return
3340 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 .m_InfiniteClip;.}.............i
3360 6e 74 65 72 6e 61 6c 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 20 3d 20 76 nternal.set.{.m_InfiniteClip.=.v
3380 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 73 61 alue;.}.........}..........//.sa
33a0 76 65 64 20 76 61 6c 75 65 20 66 6f 72 20 63 6f 6e 76 65 72 74 69 6e 67 20 74 6f 2f 66 72 6f 6d ved.value.for.converting.to/from
33c0 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 .infinite.mode.........internal.
33e0 62 6f 6f 6c 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 52 65 6d 6f 76 65 4f 66 66 73 65 74 0a 20 20 bool.infiniteClipRemoveOffset...
3400 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e ......{.............get.{.return
3420 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 52 65 6d 6f 76 65 4f 66 66 73 65 74 3b 20 7d 0a 20 .m_InfiniteClipRemoveOffset;.}..
3440 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 52 ...........set.{.m_InfiniteClipR
3460 65 6d 6f 76 65 4f 66 66 73 65 74 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d emoveOffset.=.value;.}.........}
3480 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 ..........///.<summary>.........
34a0 2f 2f 2f 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 41 76 61 74 61 72 4d 61 73 6b 20 74 6f 20 ///.Specifies.the.AvatarMask.to.
34c0 62 65 20 61 70 70 6c 69 65 64 20 74 6f 20 61 6c 6c 20 63 6c 69 70 73 20 6f 6e 20 74 68 65 20 74 be.applied.to.all.clips.on.the.t
34e0 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 rack..........///.</summary>....
3500 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 .....///.<remarks>.........///.A
3520 70 70 6c 79 69 6e 67 20 61 6e 20 41 76 61 74 61 72 4d 61 73 6b 20 74 6f 20 61 6e 20 61 6e 69 6d pplying.an.AvatarMask.to.an.anim
3540 61 74 69 6f 6e 20 74 72 61 63 6b 20 77 69 6c 6c 20 61 6c 6c 6f 77 20 64 69 73 63 61 72 64 69 6e ation.track.will.allow.discardin
3560 67 20 70 6f 72 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 61 6e 69 6d 61 74 69 6f 6e 20 62 65 69 6e g.portions.of.the.animation.bein
3580 67 20 61 70 70 6c 69 65 64 20 6f 6e 20 74 68 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 g.applied.on.the.track..........
35a0 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 41 76 ///.</remarks>.........public.Av
35c0 61 74 61 72 4d 61 73 6b 20 61 76 61 74 61 72 4d 61 73 6b 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 atarMask.avatarMask.........{...
35e0 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 41 76 61 74 61 72 4d ..........get.{.return.m_AvatarM
3600 61 73 6b 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 41 76 61 74 61 ask;.}.............set.{.m_Avata
3620 72 4d 61 73 6b 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 rMask.=.value;.}.........}......
3640 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 ....///.<summary>.........///.Sp
3660 65 63 69 66 69 65 73 20 77 68 65 74 68 65 72 20 74 6f 20 61 70 70 6c 79 20 74 68 65 20 41 76 61 ecifies.whether.to.apply.the.Ava
3680 74 61 72 4d 61 73 6b 20 74 6f 20 74 68 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f tarMask.to.the.track..........//
36a0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c /.</summary>.........public.bool
36c0 20 61 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 .applyAvatarMask.........{......
36e0 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 41 70 70 6c 79 41 76 61 74 61 .......get.{.return.m_ApplyAvata
3700 72 4d 61 73 6b 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 41 70 70 rMask;.}.............set.{.m_App
3720 6c 79 41 76 61 74 61 72 4d 61 73 6b 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 lyAvatarMask.=.value;.}.........
3740 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 69 73 20 74 68 69 73 20 74 72 61 63 6b 20 63 6f 6d 70 }..........//.is.this.track.comp
3760 69 6c 61 62 6c 65 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 6f 76 65 72 72 69 64 ilable..........internal.overrid
3780 65 20 62 6f 6f 6c 20 43 61 6e 43 6f 6d 70 69 6c 65 43 6c 69 70 73 28 29 0a 20 20 20 20 20 20 20 e.bool.CanCompileClips()........
37a0 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 21 6d 75 74 65 64 20 26 26 20 .{.............return.!muted.&&.
37c0 28 6d 5f 43 6c 69 70 73 2e 43 6f 75 6e 74 20 3e 20 30 20 7c 7c 20 28 6d 5f 49 6e 66 69 6e 69 74 (m_Clips.Count.>.0.||.(m_Infinit
37e0 65 43 6c 69 70 20 21 3d 20 6e 75 6c 6c 20 26 26 20 21 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 eClip.!=.null.&&.!m_InfiniteClip
3800 2e 65 6d 70 74 79 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f .empty));.........}..........///
3820 20 3c 69 6e 68 65 72 69 74 64 6f 63 2f 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 .<inheritdoc/>.........public.ov
3840 65 72 72 69 64 65 20 49 45 6e 75 6d 65 72 61 62 6c 65 3c 50 6c 61 79 61 62 6c 65 42 69 6e 64 69 erride.IEnumerable<PlayableBindi
3860 6e 67 3e 20 6f 75 74 70 75 74 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 ng>.outputs.........{...........
3880 20 20 67 65 74 20 7b 20 79 69 65 6c 64 20 72 65 74 75 72 6e 20 41 6e 69 6d 61 74 69 6f 6e 50 6c ..get.{.yield.return.AnimationPl
38a0 61 79 61 62 6c 65 42 69 6e 64 69 6e 67 2e 43 72 65 61 74 65 28 6e 61 6d 65 2c 20 74 68 69 73 29 ayableBinding.Create(name,.this)
38c0 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d ;.}.........}...........///.<sum
38e0 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 70 65 63 69 66 69 65 73 20 77 68 65 74 mary>.........///.Specifies.whet
3900 68 65 72 20 74 68 65 20 41 6e 69 6d 61 74 69 6f 6e 20 54 72 61 63 6b 20 68 61 73 20 63 6c 69 70 her.the.Animation.Track.has.clip
3920 73 2c 20 6f 72 20 69 73 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 s,.or.is.in.infinite.mode.......
3940 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ...///.</summary>.........public
3960 20 62 6f 6f 6c 20 69 6e 43 6c 69 70 4d 6f 64 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 .bool.inClipMode.........{......
3980 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 63 6c 69 70 73 20 21 3d 20 6e 75 6c .......get.{.return.clips.!=.nul
39a0 6c 20 26 26 20 63 6c 69 70 73 2e 4c 65 6e 67 74 68 20 21 3d 20 30 3b 20 7d 0a 20 20 20 20 20 20 l.&&.clips.Length.!=.0;.}.......
39c0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 ..}..........///.<summary>......
39e0 20 20 20 2f 2f 2f 20 54 68 65 20 74 72 61 6e 73 6c 61 74 69 6f 6e 20 6f 66 66 73 65 74 20 6f 66 ...///.The.translation.offset.of
3a00 20 61 20 74 72 61 63 6b 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 .a.track.in.infinite.mode.......
3a20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ...///.</summary>.........public
3a40 20 56 65 63 74 6f 72 33 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 65 74 50 6f 73 69 74 .Vector3.infiniteClipOffsetPosit
3a60 69 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 ion.........{.............get.{.
3a80 72 65 74 75 72 6e 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 65 74 50 6f 73 69 74 return.m_InfiniteClipOffsetPosit
3aa0 69 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e ion;.}.............set.{.m_Infin
3ac0 69 74 65 43 6c 69 70 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d iteClipOffsetPosition.=.value;.}
3ae0 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .........}..........///.<summary
3b00 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 72 6f 74 61 74 69 6f 6e 20 6f 66 66 73 65 >.........///.The.rotation.offse
3b20 74 20 6f 66 20 61 20 74 72 61 63 6b 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 t.of.a.track.in.infinite.mode...
3b40 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 .......///.</summary>.........pu
3b60 62 6c 69 63 20 51 75 61 74 65 72 6e 69 6f 6e 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 blic.Quaternion.infiniteClipOffs
3b80 65 74 52 6f 74 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 etRotation.........{............
3ba0 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 51 75 61 74 65 72 6e 69 6f 6e 2e 45 75 6c 65 72 28 6d .get.{.return.Quaternion.Euler(m
3bc0 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 29 3b _InfiniteClipOffsetEulerAngles);
3be0 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 43 .}.............set.{.m_InfiniteC
3c00 6c 69 70 4f 66 66 73 65 74 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 76 61 6c 75 65 2e 65 75 6c lipOffsetEulerAngles.=.value.eul
3c20 65 72 41 6e 67 6c 65 73 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f erAngles;.}.........}........../
3c40 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 65 75 6c //.<summary>.........///.The.eul
3c60 65 72 20 61 6e 67 6c 65 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 72 er.angle.representation.of.the.r
3c80 6f 74 61 74 69 6f 6e 20 6f 66 66 73 65 74 20 6f 66 20 74 68 65 20 74 72 61 63 6b 20 77 68 65 6e otation.offset.of.the.track.when
3ca0 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c .in.infinite.mode..........///.<
3cc0 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 56 65 63 74 6f 72 33 /summary>.........public.Vector3
3ce0 20 69 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 0a 20 .infiniteClipOffsetEulerAngles..
3d00 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 .......{.............get.{.retur
3d20 6e 20 6d 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 n.m_InfiniteClipOffsetEulerAngle
3d40 73 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 s;.}.............set.{.m_Infinit
3d60 65 43 6c 69 70 4f 66 66 73 65 74 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 76 61 6c 75 65 3b 20 eClipOffsetEulerAngles.=.value;.
3d80 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 62 6f }.........}..........internal.bo
3da0 6f 6c 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 41 70 70 6c 79 46 6f 6f 74 49 4b 0a 20 20 20 20 20 ol.infiniteClipApplyFootIK......
3dc0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f ...{.............get.{.return.m_
3de0 49 6e 66 69 6e 69 74 65 43 6c 69 70 41 70 70 6c 79 46 6f 6f 74 49 4b 3b 20 20 7d 0a 20 20 20 20 InfiniteClipApplyFootIK;..}.....
3e00 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 41 70 70 6c ........set.{.m_InfiniteClipAppl
3e20 79 46 6f 6f 74 49 4b 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 yFootIK.=.value;.}.........}....
3e40 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 64 6f 75 62 6c 65 20 69 6e 66 69 6e 69 74 65 43 6c ......internal.double.infiniteCl
3e60 69 70 54 69 6d 65 4f 66 66 73 65 74 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 ipTimeOffset.........{..........
3e80 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 54 69 ...get.{.return.m_InfiniteClipTi
3ea0 6d 65 4f 66 66 73 65 74 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f meOffset;.}.............set.{.m_
3ec0 49 6e 66 69 6e 69 74 65 43 6c 69 70 54 69 6d 65 4f 66 66 73 65 74 20 3d 20 76 61 6c 75 65 3b 20 InfiniteClipTimeOffset.=.value;.
3ee0 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 }.........}..........///.<summar
3f00 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 61 76 65 64 20 73 74 61 74 65 20 6f y>.........///.The.saved.state.o
3f20 66 20 70 72 65 2d 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 66 6f 72 20 63 6c 69 70 73 20 63 6f f.pre-extrapolation.for.clips.co
3f40 6e 76 65 72 74 65 64 20 74 6f 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 20 nverted.to.infinite.mode........
3f60 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ..///.</summary>.........public.
3f80 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 69 TimelineClip.ClipExtrapolation.i
3fa0 6e 66 69 6e 69 74 65 43 6c 69 70 50 72 65 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 0a 20 20 20 20 nfiniteClipPreExtrapolation.....
3fc0 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d ....{.............get.{.return.m
3fe0 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 50 72 65 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 3b 20 7d _InfiniteClipPreExtrapolation;.}
4000 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 .............set.{.m_InfiniteCli
4020 70 50 72 65 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 pPreExtrapolation.=.value;.}....
4040 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 .....}..........///.<summary>...
4060 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 61 76 65 64 20 73 74 61 74 65 20 6f 66 20 70 6f 73 ......///.The.saved.state.of.pos
4080 74 2d 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 66 6f 72 20 63 6c 69 70 73 20 77 68 65 6e 20 63 t-extrapolation.for.clips.when.c
40a0 6f 6e 76 65 72 74 65 64 20 74 6f 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 onverted.to.infinite.mode.......
40c0 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ...///.</summary>.........public
40e0 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 .TimelineClip.ClipExtrapolation.
4100 69 6e 66 69 6e 69 74 65 43 6c 69 70 50 6f 73 74 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 0a 20 20 infiniteClipPostExtrapolation...
4120 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e ......{.............get.{.return
4140 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 50 6f 73 74 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e .m_InfiniteClipPostExtrapolation
4160 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 66 69 6e 69 74 65 ;.}.............set.{.m_Infinite
4180 43 6c 69 70 50 6f 73 74 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d ClipPostExtrapolation.=.value;.}
41a0 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .........}..........///.<summary
41c0 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 61 76 65 64 20 73 74 61 74 65 20 6f 66 >.........///.The.saved.state.of
41e0 20 61 6e 69 6d 61 74 69 6f 6e 20 63 6c 69 70 20 6c 6f 6f 70 20 73 74 61 74 65 20 77 68 65 6e 20 .animation.clip.loop.state.when.
4200 63 6f 6e 76 65 72 74 65 64 20 74 6f 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 0a 20 20 20 20 20 converted.to.infinite.mode......
4220 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e ...///.</summary>.........intern
4240 61 6c 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 2e 4c 6f 6f 70 4d 6f al.AnimationPlayableAsset.LoopMo
4260 64 65 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 4c 6f 6f 70 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 de.infiniteClipLoop.........{...
4280 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 49 6e 66 69 6e 69 74 65 ..........get.{.return.mInfinite
42a0 43 6c 69 70 4c 6f 6f 70 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 49 ClipLoop;.}.............set.{.mI
42c0 6e 66 69 6e 69 74 65 43 6c 69 70 4c 6f 6f 70 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 nfiniteClipLoop.=.value;.}......
42e0 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 43 6f 6e 74 65 78 74 4d 65 6e 75 28 22 52 65 73 65 ...}..........[ContextMenu("Rese
4300 74 20 4f 66 66 73 65 74 73 22 29 5d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 52 65 73 65 74 4f t.Offsets")].........void.ResetO
4320 66 66 73 65 74 73 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d ffsets().........{.............m
4340 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 _Position.=.Vector3.zero;.......
4360 20 20 20 20 20 20 6d 5f 45 75 6c 65 72 41 6e 67 6c 65 73 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 ......m_EulerAngles.=.Vector3.ze
4380 72 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 70 64 61 74 65 43 6c 69 70 4f 66 66 73 65 74 ro;.............UpdateClipOffset
43a0 73 28 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d s();.........}..........///.<sum
43c0 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 72 65 61 74 65 73 20 61 20 54 69 6d 65 mary>.........///.Creates.a.Time
43e0 6c 69 6e 65 43 6c 69 70 20 6f 6e 20 74 68 69 73 20 74 72 61 63 6b 20 74 68 61 74 20 75 73 65 73 lineClip.on.this.track.that.uses
4400 20 61 6e 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c .an.AnimationClip..........///.<
4420 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d /summary>.........///.<param.nam
4440 65 3d 22 63 6c 69 70 22 3e 53 6f 75 72 63 65 20 61 6e 69 6d 61 74 69 6f 6e 20 63 6c 69 70 20 6f e="clip">Source.animation.clip.o
4460 66 20 74 68 65 20 72 65 73 75 6c 74 69 6e 67 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 3c 2f 70 f.the.resulting.TimelineClip.</p
4480 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 41 20 6e 65 77 aram>.........///.<returns>A.new
44a0 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 77 68 69 63 68 20 68 61 73 20 61 6e 20 41 6e 69 6d 61 .TimelineClip.which.has.an.Anima
44c0 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 20 61 73 73 65 74 20 61 74 74 61 63 68 65 64 tionPlayableAsset.asset.attached
44e0 2e 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 69 6d 65 6c .</returns>.........public.Timel
4500 69 6e 65 43 6c 69 70 20 43 72 65 61 74 65 43 6c 69 70 28 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 ineClip.CreateClip(AnimationClip
4520 20 63 6c 69 70 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 .clip).........{.............if.
4540 28 63 6c 69 70 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 (clip.==.null).................r
4560 65 74 75 72 6e 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 eturn.null;..............var.new
4580 43 6c 69 70 20 3d 20 43 72 65 61 74 65 43 6c 69 70 3c 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 Clip.=.CreateClip<AnimationPlaya
45a0 62 6c 65 41 73 73 65 74 3e 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 69 67 6e 41 bleAsset>();.............AssignA
45c0 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 28 6e 65 77 43 6c 69 70 2c 20 63 6c 69 70 29 3b 0a 20 20 20 nimationClip(newClip,.clip);....
45e0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 43 6c 69 70 3b 0a 20 20 20 20 20 20 20 .........return.newClip;........
4600 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 .}..........///.<summary>.......
4620 20 20 2f 2f 2f 20 43 72 65 61 74 65 73 20 61 6e 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 74 ..///.Creates.an.AnimationClip.t
4640 68 61 74 20 73 74 6f 72 65 73 20 74 68 65 20 64 61 74 61 20 66 6f 72 20 61 6e 20 69 6e 66 69 6e hat.stores.the.data.for.an.infin
4660 69 74 65 20 74 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 ite.track..........///.</summary
4680 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 >.........///.<remarks>.........
46a0 2f 2f 2f 20 49 66 20 61 6e 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 20 61 6c 72 65 61 64 79 20 65 ///.If.an.infiniteClip.already.e
46c0 78 69 73 74 73 2c 20 74 68 69 73 20 6d 65 74 68 6f 64 20 70 72 6f 64 75 63 65 73 20 6e 6f 20 72 xists,.this.method.produces.no.r
46e0 65 73 75 6c 74 2c 20 65 76 65 6e 20 69 66 20 79 6f 75 20 70 72 6f 76 69 64 65 20 61 20 64 69 66 esult,.even.if.you.provide.a.dif
4700 66 65 72 65 6e 74 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 66 6f 72 20 69 6e 66 ferent.value.........///.for.inf
4720 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d initeClipName..........///.</rem
4740 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 arks>.........///.<remarks>.....
4760 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 63 61 6e 27 74 20 63 72 65 61 74 65 ....///.This.method.can't.create
4780 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 20 66 6f 72 20 61 6e 20 41 6e 69 6d 61 74 69 .an.infinite.clip.for.an.Animati
47a0 6f 6e 54 72 61 63 6b 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 73 20 6f 6e 65 20 6f 72 20 6d 6f 72 onTrack.that.contains.one.or.mor
47c0 65 20 54 69 6d 65 6c 69 6e 65 20 63 6c 69 70 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 73 e.Timeline.clips..........///.Us
47e0 65 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2e 69 6e 43 6c 69 70 4d 6f 64 65 20 74 6f 20 64 e.AnimationTrack.inClipMode.to.d
4800 65 74 65 72 6d 69 6e 65 20 77 68 65 74 68 65 72 20 69 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 etermine.whether.it.is.possible.
4820 74 6f 20 63 72 65 61 74 65 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 20 6f 6e 20 61 6e to.create.an.infinite.clip.on.an
4840 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 .AnimationTrack..........///.</r
4860 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 emarks>.........///.<remarks>...
4880 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 75 73 65 64 20 66 72 6f 6d 20 74 68 65 20 65 64 69 ......///.When.used.from.the.edi
48a0 74 6f 72 2c 20 74 68 69 73 20 6d 65 74 68 6f 64 20 61 74 74 65 6d 70 74 73 20 74 6f 20 73 61 76 tor,.this.method.attempts.to.sav
48c0 65 20 74 68 65 20 63 72 65 61 74 65 64 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 20 74 6f 20 74 e.the.created.infinite.clip.to.t
48e0 68 65 20 54 69 6d 65 6c 69 6e 65 41 73 73 65 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 he.TimelineAsset..........///.Th
4900 65 20 54 69 6d 65 6c 69 6e 65 41 73 73 65 74 20 6d 75 73 74 20 61 6c 72 65 61 64 79 20 65 78 69 e.TimelineAsset.must.already.exi
4920 73 74 20 69 6e 20 74 68 65 20 41 73 73 65 74 44 61 74 61 62 61 73 65 20 74 6f 20 73 61 76 65 20 st.in.the.AssetDatabase.to.save.
4940 74 68 65 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 2e 20 49 66 20 74 68 65 20 54 69 6d 65 6c 69 the.infinite.clip..If.the.Timeli
4960 6e 65 41 73 73 65 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 6f 65 73 20 6e 6f 74 20 65 78 69 neAsset.........///.does.not.exi
4980 73 74 2c 20 74 68 65 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 20 69 73 20 73 74 69 6c 6c 20 63 st,.the.infinite.clip.is.still.c
49a0 72 65 61 74 65 64 20 62 75 74 20 69 74 20 69 73 20 6e 6f 74 20 73 61 76 65 64 2e 0a 20 20 20 20 reated.but.it.is.not.saved......
49c0 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ....///.</remarks>.........///.<
49e0 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 22 3e 0a 20 param.name="infiniteClipName">..
4a00 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 41 6e 69 6d 61 .......///.The.name.of.the.Anima
4a20 74 69 6f 6e 43 6c 69 70 20 74 6f 20 63 72 65 61 74 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 tionClip.to.create..........///.
4a40 54 68 69 73 20 6d 65 74 68 6f 64 20 64 6f 65 73 20 6e 6f 74 20 65 6e 73 75 72 65 20 75 6e 69 71 This.method.does.not.ensure.uniq
4a60 75 65 20 6e 61 6d 65 73 2e 20 49 66 20 79 6f 75 20 77 61 6e 74 20 61 20 75 6e 69 71 75 65 20 63 ue.names..If.you.want.a.unique.c
4a80 6c 69 70 20 6e 61 6d 65 2c 20 79 6f 75 20 6d 75 73 74 20 70 72 6f 76 69 64 65 20 6f 6e 65 2e 0a lip.name,.you.must.provide.one..
4aa0 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 65 20 4f 62 6a 65 63 74 4e 61 6d 65 73 2e 47 65 74 55 ........///.See.ObjectNames.GetU
4ac0 6e 69 71 75 65 4e 61 6d 65 20 66 6f 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 61 20 6d niqueName.for.information.on.a.m
4ae0 65 74 68 6f 64 20 74 68 61 74 20 63 72 65 61 74 65 73 20 75 6e 69 71 75 65 20 6e 61 6d 65 73 2e ethod.that.creates.unique.names.
4b00 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 75 .........///.</param>.........pu
4b20 62 6c 69 63 20 76 6f 69 64 20 43 72 65 61 74 65 49 6e 66 69 6e 69 74 65 43 6c 69 70 28 73 74 72 blic.void.CreateInfiniteClip(str
4b40 69 6e 67 20 69 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 29 0a 20 20 20 20 20 20 20 20 7b 0a ing.infiniteClipName).........{.
4b60 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 43 6c 69 70 4d 6f 64 65 29 0a 20 20 20 20 ............if.(inClipMode).....
4b80 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 44 65 62 75 67 2e ........{.................Debug.
4ba0 4c 6f 67 57 61 72 6e 69 6e 67 28 22 43 72 65 61 74 65 49 6e 66 69 6e 69 74 65 43 6c 69 70 20 63 LogWarning("CreateInfiniteClip.c
4bc0 61 6e 6e 6f 74 20 63 72 65 61 74 65 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 63 6c 69 70 20 66 6f annot.create.an.infinite.clip.fo
4be0 72 20 61 6e 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 20 74 68 61 74 20 63 6f 6e 74 61 69 6e r.an.AnimationTrack.that.contain
4c00 73 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 54 69 6d 65 6c 69 6e 65 20 43 6c 69 70 73 2e 22 29 3b s.one.or.more.Timeline.Clips.");
4c20 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 20 20 20 20 20 20 20 .................return;........
4c40 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 66 69 6e 69 .....}..............if.(m_Infini
4c60 74 65 43 6c 69 70 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 teClip.!=.null).................
4c80 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 66 69 6e 69 74 65 43 return;..............m_InfiniteC
4ca0 6c 69 70 20 3d 20 54 69 6d 65 6c 69 6e 65 43 72 65 61 74 65 55 74 69 6c 69 74 69 65 73 2e 43 72 lip.=.TimelineCreateUtilities.Cr
4cc0 65 61 74 65 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 46 6f 72 54 72 61 63 6b 28 73 74 72 69 6e 67 eateAnimationClipForTrack(string
4ce0 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 69 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 29 .IsNullOrEmpty(infiniteClipName)
4d00 20 3f 20 6b 5f 44 65 66 61 75 6c 74 49 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 20 3a 20 69 .?.k_DefaultInfiniteClipName.:.i
4d20 6e 66 69 6e 69 74 65 43 6c 69 70 4e 61 6d 65 2c 20 74 68 69 73 2c 20 66 61 6c 73 65 29 3b 0a 20 nfiniteClipName,.this,.false);..
4d40 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a .......}..........///.<summary>.
4d60 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 72 65 61 74 65 73 20 61 20 54 69 6d 65 6c 69 6e 65 43 6c ........///.Creates.a.TimelineCl
4d80 69 70 2c 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 20 61 6e 64 20 61 ip,.AnimationPlayableAsset.and.a
4da0 6e 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 2e 20 55 73 65 20 74 68 69 73 20 63 6c 69 70 20 74 n.AnimationClip..Use.this.clip.t
4dc0 6f 20 72 65 63 6f 72 64 20 69 6e 20 61 20 74 69 6d 65 6c 69 6e 65 2e 0a 20 20 20 20 20 20 20 20 o.record.in.a.timeline..........
4de0 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 ///.</summary>.........///.<rema
4e00 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 6e 20 75 73 65 64 20 66 72 6f 6d 20 rks>.........///.When.used.from.
4e20 74 68 65 20 65 64 69 74 6f 72 2c 20 74 68 69 73 20 6d 65 74 68 6f 64 20 61 74 74 65 6d 70 74 73 the.editor,.this.method.attempts
4e40 20 74 6f 20 73 61 76 65 20 74 68 65 20 63 72 65 61 74 65 64 20 72 65 63 6f 72 64 61 62 6c 65 20 .to.save.the.created.recordable.
4e60 63 6c 69 70 20 74 6f 20 74 68 65 20 54 69 6d 65 6c 69 6e 65 41 73 73 65 74 2e 0a 20 20 20 20 20 clip.to.the.TimelineAsset.......
4e80 20 20 20 2f 2f 2f 20 54 68 65 20 54 69 6d 65 6c 69 6e 65 41 73 73 65 74 20 6d 75 73 74 20 61 6c ...///.The.TimelineAsset.must.al
4ea0 72 65 61 64 79 20 65 78 69 73 74 20 69 6e 20 74 68 65 20 41 73 73 65 74 44 61 74 61 62 61 73 65 ready.exist.in.the.AssetDatabase
4ec0 20 74 6f 20 73 61 76 65 20 74 68 65 20 72 65 63 6f 72 64 61 62 6c 65 20 63 6c 69 70 2e 20 49 66 .to.save.the.recordable.clip..If
4ee0 20 74 68 65 20 54 69 6d 65 6c 69 6e 65 41 73 73 65 74 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 64 .the.TimelineAsset.........///.d
4f00 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 2c 20 74 68 65 20 72 65 63 6f 72 64 61 62 6c 65 20 63 6c oes.not.exist,.the.recordable.cl
4f20 69 70 20 69 73 20 73 74 69 6c 6c 20 63 72 65 61 74 65 64 20 62 75 74 20 69 74 20 69 73 20 6e 6f ip.is.still.created.but.it.is.no
4f40 74 20 73 61 76 65 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a t.saved..........///.</remarks>.
4f60 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 61 6e 69 6d 43 6c 69 ........///.<param.name="animCli
4f80 70 4e 61 6d 65 22 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 6e 61 6d 65 20 6f 66 20 pName">.........///.The.name.of.
4fa0 74 68 65 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 74 6f 20 63 72 65 61 74 65 2e 0a 20 20 20 the.AnimationClip.to.create.....
4fc0 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 64 6f 65 73 20 6e 6f 74 20 65 6e .....///.This.method.does.not.en
4fe0 73 75 72 65 20 75 6e 69 71 75 65 20 6e 61 6d 65 73 2e 20 49 66 20 79 6f 75 20 77 61 6e 74 20 61 sure.unique.names..If.you.want.a
5000 20 75 6e 69 71 75 65 20 63 6c 69 70 20 6e 61 6d 65 2c 20 79 6f 75 20 6d 75 73 74 20 70 72 6f 76 .unique.clip.name,.you.must.prov
5020 69 64 65 20 6f 6e 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 65 20 4f 62 6a 65 63 74 4e ide.one..........///.See.ObjectN
5040 61 6d 65 73 2e 47 65 74 55 6e 69 71 75 65 4e 61 6d 65 20 66 6f 72 20 69 6e 66 6f 72 6d 61 74 69 ames.GetUniqueName.for.informati
5060 6f 6e 20 6f 6e 20 61 20 6d 65 74 68 6f 64 20 74 68 61 74 20 63 72 65 61 74 65 73 20 75 6e 69 71 on.on.a.method.that.creates.uniq
5080 75 65 20 6e 61 6d 65 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 70 61 72 61 6d 3e 0a 20 ue.names..........///.</param>..
50a0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f .......///.<returns>.........///
50c0 20 52 65 74 75 72 6e 73 20 61 20 6e 65 77 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 77 69 74 68 .Returns.a.new.TimelineClip.with
50e0 20 61 6e 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 20 61 73 73 65 74 .an.AnimationPlayableAsset.asset
5100 20 61 74 74 61 63 68 65 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 74 75 72 6e 73 .attached..........///.</returns
5120 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 43 72 >.........public.TimelineClip.Cr
5140 65 61 74 65 52 65 63 6f 72 64 61 62 6c 65 43 6c 69 70 28 73 74 72 69 6e 67 20 61 6e 69 6d 43 6c eateRecordableClip(string.animCl
5160 69 70 4e 61 6d 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ipName).........{.............va
5180 72 20 63 6c 69 70 20 3d 20 54 69 6d 65 6c 69 6e 65 43 72 65 61 74 65 55 74 69 6c 69 74 69 65 73 r.clip.=.TimelineCreateUtilities
51a0 2e 43 72 65 61 74 65 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 46 6f 72 54 72 61 63 6b 28 73 74 72 .CreateAnimationClipForTrack(str
51c0 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 61 6e 69 6d 43 6c 69 70 4e 61 6d 65 29 20 ing.IsNullOrEmpty(animClipName).
51e0 3f 20 6b 5f 44 65 66 61 75 6c 74 52 65 63 6f 72 64 61 62 6c 65 43 6c 69 70 4e 61 6d 65 20 3a 20 ?.k_DefaultRecordableClipName.:.
5200 61 6e 69 6d 43 6c 69 70 4e 61 6d 65 2c 20 74 68 69 73 2c 20 66 61 6c 73 65 29 3b 0a 0a 20 20 20 animClipName,.this,.false);.....
5220 20 20 20 20 20 20 20 20 20 76 61 72 20 74 69 6d 65 6c 69 6e 65 43 6c 69 70 20 3d 20 43 72 65 61 .........var.timelineClip.=.Crea
5240 74 65 43 6c 69 70 28 63 6c 69 70 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 6c 69 teClip(clip);.............timeli
5260 6e 65 43 6c 69 70 2e 64 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 61 6e 69 6d 43 6c 69 70 4e 61 6d neClip.displayName.=.animClipNam
5280 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 72 65 63 6f e;.............timelineClip.reco
52a0 72 64 61 62 6c 65 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 6c rdable.=.true;.............timel
52c0 69 6e 65 43 6c 69 70 2e 73 74 61 72 74 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 ineClip.start.=.0;.............t
52e0 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 64 75 72 61 74 69 6f 6e 20 3d 20 31 3b 0a 0a 20 20 20 20 20 imelineClip.duration.=.1;.......
5300 20 20 20 20 20 20 20 76 61 72 20 61 70 61 20 3d 20 74 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 61 73 .......var.apa.=.timelineClip.as
5320 73 65 74 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 3b 0a 20 set.as.AnimationPlayableAsset;..
5340 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 70 61 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 ...........if.(apa.!=.null).....
5360 20 20 20 20 20 20 20 20 20 20 20 20 61 70 61 2e 72 65 6d 6f 76 65 53 74 61 72 74 4f 66 66 73 65 ............apa.removeStartOffse
5380 74 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 t.=.false;..............return.t
53a0 69 6d 65 6c 69 6e 65 43 6c 69 70 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 23 69 66 20 55 4e 49 54 imelineClip;.........}..#if.UNIT
53c0 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 56 65 63 74 6f 72 Y_EDITOR.........internal.Vector
53e0 33 20 73 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 3.sceneOffsetPosition.........{.
5400 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 63 65 6e 65 ............get.{.return.m_Scene
5420 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 OffsetPosition;.}.............se
5440 74 20 7b 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 76 61 6c 75 t.{.m_SceneOffsetPosition.=.valu
5460 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c e;.}.........}..........internal
5480 20 56 65 63 74 6f 72 33 20 73 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 0a 20 20 20 .Vector3.sceneOffsetRotation....
54a0 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 .....{.............get.{.return.
54c0 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 m_SceneOffsetRotation;.}........
54e0 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e .....set.{.m_SceneOffsetRotation
5500 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 .=.value;.}.........}..........i
5520 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 68 61 73 50 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 nternal.bool.hasPreviewComponent
5540 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0a 20 20 20 20 s.........{.............get.....
5560 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 69 66 20 28 6d 5f ........{.................if.(m_
5580 48 61 73 50 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 29 0a 20 20 20 20 20 20 20 20 20 20 HasPreviewComponents)...........
55a0 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 20 20 20 ..........return.true;..........
55c0 20 20 20 20 20 20 20 20 76 61 72 20 70 61 72 65 6e 74 54 72 61 63 6b 20 3d 20 70 61 72 65 6e 74 ........var.parentTrack.=.parent
55e0 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 .as.AnimationTrack;.............
5600 20 20 20 20 69 66 20 28 70 61 72 65 6e 74 54 72 61 63 6b 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 ....if.(parentTrack.!=.null)....
5620 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 20 20 20 .............{..................
5640 20 20 20 72 65 74 75 72 6e 20 70 61 72 65 6e 74 54 72 61 63 6b 2e 68 61 73 50 72 65 76 69 65 77 ...return.parentTrack.hasPreview
5660 43 6f 6d 70 6f 6e 65 6e 74 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 Components;.................}...
5680 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 20 20 20 ...............return.false;....
56a0 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 23 65 6e 64 69 66 0a 0a 20 20 20 .........}.........}.#endif.....
56c0 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 55 .....///.<summary>.........///.U
56e0 73 65 64 20 74 6f 20 69 6e 69 74 69 61 6c 69 7a 65 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 73 sed.to.initialize.default.values
5700 20 6f 6e 20 61 20 6e 65 77 6c 79 20 63 72 65 61 74 65 64 20 63 6c 69 70 0a 20 20 20 20 20 20 20 .on.a.newly.created.clip........
5720 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 .///.</summary>.........///.<par
5740 61 6d 20 6e 61 6d 65 3d 22 63 6c 69 70 22 3e 54 68 65 20 63 6c 69 70 20 61 64 64 65 64 20 74 6f am.name="clip">The.clip.added.to
5760 20 74 68 65 20 74 72 61 63 6b 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 .the.track</param>.........prote
5780 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 4f 6e 43 72 65 61 74 65 43 6c 69 70 28 cted.override.void.OnCreateClip(
57a0 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 63 6c 69 70 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 TimelineClip.clip).........{....
57c0 20 20 20 20 20 20 20 20 20 76 61 72 20 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 54 69 6d .........var.extrapolation.=.Tim
57e0 65 6c 69 6e 65 43 6c 69 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 2e 4e 6f 6e 65 elineClip.ClipExtrapolation.None
5800 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 69 73 53 75 62 54 72 61 63 6b 29 0a 20 ;.............if.(!isSubTrack)..
5820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 20 3d 20 54 ...............extrapolation.=.T
5840 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 43 6c 69 70 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 2e 48 6f imelineClip.ClipExtrapolation.Ho
5860 6c 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 69 70 2e 70 72 65 45 78 74 72 61 70 6f 6c ld;.............clip.preExtrapol
5880 61 74 69 6f 6e 4d 6f 64 65 20 3d 20 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 3b 0a 20 20 20 20 20 ationMode.=.extrapolation;......
58a0 20 20 20 20 20 20 20 63 6c 69 70 2e 70 6f 73 74 45 78 74 72 61 70 6f 6c 61 74 69 6f 6e 4d 6f 64 .......clip.postExtrapolationMod
58c0 65 20 3d 20 65 78 74 72 61 70 6f 6c 61 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 e.=.extrapolation;.........}....
58e0 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 69 6e 74 65 72 6e 61 6c 20 6f 76 65 72 72 69 64 ......protected.internal.overrid
5900 65 20 69 6e 74 20 43 61 6c 63 75 6c 61 74 65 49 74 65 6d 73 48 61 73 68 28 29 0a 20 20 20 20 20 e.int.CalculateItemsHash()......
5920 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 41 6e 69 6d 61 ...{.............return.GetAnima
5940 74 69 6f 6e 43 6c 69 70 48 61 73 68 28 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 29 2e 43 6f 6d tionClipHash(m_InfiniteClip).Com
5960 62 69 6e 65 48 61 73 68 28 62 61 73 65 2e 43 61 6c 63 75 6c 61 74 65 49 74 65 6d 73 48 61 73 68 bineHash(base.CalculateItemsHash
5980 28 29 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c ());.........}..........internal
59a0 20 76 6f 69 64 20 55 70 64 61 74 65 43 6c 69 70 4f 66 66 73 65 74 73 28 29 0a 20 20 20 20 20 20 .void.UpdateClipOffsets().......
59c0 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 ..{.#if.UNITY_EDITOR............
59e0 20 69 66 20 28 6d 5f 43 6c 69 70 4f 66 66 73 65 74 2e 49 73 56 61 6c 69 64 28 29 29 0a 20 20 20 .if.(m_ClipOffset.IsValid())....
5a00 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 6d 5f 43 6c 69 .........{.................m_Cli
5a20 70 4f 66 66 73 65 74 2e 53 65 74 50 6f 73 69 74 69 6f 6e 28 70 6f 73 69 74 69 6f 6e 29 3b 0a 20 pOffset.SetPosition(position);..
5a40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6c 69 70 4f 66 66 73 65 74 2e 53 65 74 52 ...............m_ClipOffset.SetR
5a60 6f 74 61 74 69 6f 6e 28 72 6f 74 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d otation(rotation);.............}
5a80 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 50 6c 61 79 61 .#endif.........}..........Playa
5aa0 62 6c 65 20 43 6f 6d 70 69 6c 65 54 72 61 63 6b 50 6c 61 79 61 62 6c 65 28 50 6c 61 79 61 62 6c ble.CompileTrackPlayable(Playabl
5ac0 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 54 72 61 63 6b 41 73 73 65 74 20 74 72 61 63 6b 2c 20 eGraph.graph,.TrackAsset.track,.
5ae0 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 49 6e 74 65 72 76 61 6c 54 72 65 65 3c 52 75 6e 74 GameObject.go,.IntervalTree<Runt
5b00 69 6d 65 45 6c 65 6d 65 6e 74 3e 20 74 72 65 65 2c 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d imeElement>.tree,.AppliedOffsetM
5b20 6f 64 65 20 6d 6f 64 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ode.mode).........{.............
5b40 76 61 72 20 6d 69 78 65 72 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 4d 69 78 65 72 50 6c 61 79 61 62 var.mixer.=.AnimationMixerPlayab
5b60 6c 65 2e 43 72 65 61 74 65 28 67 72 61 70 68 2c 20 74 72 61 63 6b 2e 63 6c 69 70 73 2e 4c 65 6e le.Create(graph,.track.clips.Len
5b80 67 74 68 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 gth);.............for.(int.i.=.0
5ba0 3b 20 69 20 3c 20 74 72 61 63 6b 2e 63 6c 69 70 73 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0a 20 ;.i.<.track.clips.Length;.i++)..
5bc0 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ...........{.................var
5be0 20 63 20 3d 20 74 72 61 63 6b 2e 63 6c 69 70 73 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .c.=.track.clips[i];............
5c00 20 20 20 20 20 76 61 72 20 61 73 73 65 74 20 3d 20 63 2e 61 73 73 65 74 20 61 73 20 50 6c 61 79 .....var.asset.=.c.asset.as.Play
5c20 61 62 6c 65 41 73 73 65 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 ableAsset;.................if.(a
5c40 73 73 65 74 20 3d 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 sset.==.null)...................
5c60 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ..continue;..................var
5c80 20 61 6e 69 6d 61 74 69 6f 6e 41 73 73 65 74 20 3d 20 61 73 73 65 74 20 61 73 20 41 6e 69 6d 61 .animationAsset.=.asset.as.Anima
5ca0 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 tionPlayableAsset;..............
5cc0 20 20 20 69 66 20 28 61 6e 69 6d 61 74 69 6f 6e 41 73 73 65 74 20 21 3d 20 6e 75 6c 6c 29 0a 20 ...if.(animationAsset.!=.null)..
5ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 69 6d 61 74 69 6f 6e 41 73 73 65 ...................animationAsse
5d00 74 2e 61 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 20 3d 20 6d 6f 64 65 3b 0a 0a 20 20 20 t.appliedOffsetMode.=.mode;.....
5d20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 6f 75 72 63 65 20 3d 20 61 73 73 65 74 2e .............var.source.=.asset.
5d40 43 72 65 61 74 65 50 6c 61 79 61 62 6c 65 28 67 72 61 70 68 2c 20 67 6f 29 3b 0a 20 20 20 20 20 CreatePlayable(graph,.go);......
5d60 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 2e 49 73 56 61 6c 69 64 28 29 29 ...........if.(source.IsValid())
5d80 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 20 .................{..............
5da0 20 20 20 20 20 20 20 76 61 72 20 63 6c 69 70 20 3d 20 6e 65 77 20 52 75 6e 74 69 6d 65 43 6c 69 .......var.clip.=.new.RuntimeCli
5dc0 70 28 63 2c 20 73 6f 75 72 63 65 2c 20 6d 69 78 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 p(c,.source,.mixer);............
5de0 20 20 20 20 20 20 20 20 20 74 72 65 65 2e 41 64 64 28 63 6c 69 70 29 3b 0a 20 20 20 20 20 20 20 .........tree.Add(clip);........
5e00 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 73 6f 75 72 63 .............graph.Connect(sourc
5e20 65 2c 20 30 2c 20 6d 69 78 65 72 2c 20 69 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e,.0,.mixer,.i);................
5e40 20 20 20 20 20 6d 69 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 69 2c 20 30 2e 30 .....mixer.SetInputWeight(i,.0.0
5e60 66 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 f);.................}...........
5e80 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 79 54 72 61 ..}..............return.ApplyTra
5ea0 63 6b 4f 66 66 73 65 74 28 67 72 61 70 68 2c 20 6d 69 78 65 72 2c 20 67 6f 2c 20 6d 6f 64 65 29 ckOffset(graph,.mixer,.go,.mode)
5ec0 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 50 6c 61 79 61 62 6c 65 20 49 4c ;.........}..........Playable.IL
5ee0 61 79 65 72 61 62 6c 65 2e 43 72 65 61 74 65 4c 61 79 65 72 4d 69 78 65 72 28 50 6c 61 79 61 62 ayerable.CreateLayerMixer(Playab
5f00 6c 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 69 6e leGraph.graph,.GameObject.go,.in
5f20 74 20 69 6e 70 75 74 43 6f 75 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 t.inputCount).........{.........
5f40 20 20 20 20 72 65 74 75 72 6e 20 50 6c 61 79 61 62 6c 65 2e 4e 75 6c 6c 3b 0a 20 20 20 20 20 20 ....return.Playable.Null;.......
5f60 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 6f 76 65 72 72 69 64 65 20 50 ..}..........internal.override.P
5f80 6c 61 79 61 62 6c 65 20 4f 6e 43 72 65 61 74 65 43 6c 69 70 50 6c 61 79 61 62 6c 65 47 72 61 70 layable.OnCreateClipPlayableGrap
5fa0 68 28 50 6c 61 79 61 62 6c 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 47 61 6d 65 4f 62 6a 65 63 h(PlayableGraph.graph,.GameObjec
5fc0 74 20 67 6f 2c 20 49 6e 74 65 72 76 61 6c 54 72 65 65 3c 52 75 6e 74 69 6d 65 45 6c 65 6d 65 6e t.go,.IntervalTree<RuntimeElemen
5fe0 74 3e 20 74 72 65 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 t>.tree).........{.............i
6000 66 20 28 69 73 53 75 62 54 72 61 63 6b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 f.(isSubTrack).................t
6020 68 72 6f 77 20 6e 65 77 20 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 hrow.new.InvalidOperationExcepti
6040 6f 6e 28 22 4e 65 73 74 65 64 20 61 6e 69 6d 61 74 69 6f 6e 20 74 72 61 63 6b 73 20 73 68 6f 75 on("Nested.animation.tracks.shou
6060 6c 64 20 6e 65 76 65 72 20 62 65 20 61 73 6b 65 64 20 74 6f 20 63 72 65 61 74 65 20 61 20 67 72 ld.never.be.asked.to.create.a.gr
6080 61 70 68 20 64 69 72 65 63 74 6c 79 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 69 73 aph.directly");..............Lis
60a0 74 3c 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3e 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 20 t<AnimationTrack>.flattenTracks.
60c0 3d 20 6e 65 77 20 4c 69 73 74 3c 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3e 28 29 3b 0a 20 20 =.new.List<AnimationTrack>();...
60e0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 43 61 6e 43 6f 6d 70 69 6c 65 43 6c 69 70 73 28 29 29 ..........if.(CanCompileClips())
6100 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 2e 41 .................flattenTracks.A
6120 64 64 28 74 68 69 73 29 3b 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 61 6e 69 dd(this);...............bool.ani
6140 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 20 3d 20 41 6e 69 6d 61 74 65 73 52 6f 6f matesRootTransform.=.AnimatesRoo
6160 74 54 72 61 6e 73 66 6f 72 6d 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 tTransform();.............foreac
6180 68 20 28 76 61 72 20 73 75 62 54 72 61 63 6b 20 69 6e 20 47 65 74 43 68 69 6c 64 54 72 61 63 6b h.(var.subTrack.in.GetChildTrack
61a0 73 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 20 s()).............{..............
61c0 20 20 20 76 61 72 20 63 68 69 6c 64 20 3d 20 73 75 62 54 72 61 63 6b 20 61 73 20 41 6e 69 6d 61 ...var.child.=.subTrack.as.Anima
61e0 74 69 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 63 tionTrack;.................if.(c
6200 68 69 6c 64 20 21 3d 20 6e 75 6c 6c 20 26 26 20 63 68 69 6c 64 2e 43 61 6e 43 6f 6d 70 69 6c 65 hild.!=.null.&&.child.CanCompile
6220 43 6c 69 70 73 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 Clips()).................{......
6240 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 69 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 ...............animatesRootTrans
6260 66 6f 72 6d 20 7c 3d 20 63 68 69 6c 64 2e 41 6e 69 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 66 form.|=.child.AnimatesRootTransf
6280 6f 72 6d 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 74 74 orm();.....................flatt
62a0 65 6e 54 72 61 63 6b 73 2e 41 64 64 28 63 68 69 6c 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 enTracks.Add(child);............
62c0 20 20 20 20 20 7d 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 .....}.............}............
62e0 20 20 2f 2f 20 66 69 67 75 72 65 20 6f 75 74 20 77 68 69 63 68 20 6d 6f 64 65 20 74 6f 20 61 70 ..//.figure.out.which.mode.to.ap
6300 70 6c 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 ply.............AppliedOffsetMod
6320 65 20 6d 6f 64 65 20 3d 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 65 28 67 6f 2c 20 61 6e 69 6d 61 e.mode.=.GetOffsetMode(go,.anima
6340 74 65 73 52 6f 6f 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 76 tesRootTransform);.............v
6360 61 72 20 6c 61 79 65 72 4d 69 78 65 72 20 3d 20 43 72 65 61 74 65 47 72 6f 75 70 4d 69 78 65 72 ar.layerMixer.=.CreateGroupMixer
6380 28 67 72 61 70 68 2c 20 67 6f 2c 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 2e 43 6f 75 6e 74 29 (graph,.go,.flattenTracks.Count)
63a0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 63 20 3d 20 30 3b 20 63 20 ;.............for.(int.c.=.0;.c.
63c0 3c 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 2e 43 6f 75 6e 74 3b 20 63 2b 2b 29 0a 20 20 20 20 <.flattenTracks.Count;.c++).....
63e0 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 63 6f ........{.................var.co
6400 6d 70 69 6c 65 64 54 72 61 63 6b 50 6c 61 79 61 62 6c 65 20 3d 20 66 6c 61 74 74 65 6e 54 72 61 mpiledTrackPlayable.=.flattenTra
6420 63 6b 73 5b 63 5d 2e 69 6e 43 6c 69 70 4d 6f 64 65 20 3f 0a 20 20 20 20 20 20 20 20 20 20 20 20 cks[c].inClipMode.?.............
6440 20 20 20 20 20 20 20 20 43 6f 6d 70 69 6c 65 54 72 61 63 6b 50 6c 61 79 61 62 6c 65 28 67 72 61 ........CompileTrackPlayable(gra
6460 70 68 2c 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 5b 63 5d 2c 20 67 6f 2c 20 74 72 65 65 2c 20 ph,.flattenTracks[c],.go,.tree,.
6480 6d 6f 64 65 29 20 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 61 74 mode).:.....................flat
64a0 74 65 6e 54 72 61 63 6b 73 5b 63 5d 2e 43 72 65 61 74 65 49 6e 66 69 6e 69 74 65 54 72 61 63 6b tenTracks[c].CreateInfiniteTrack
64c0 50 6c 61 79 61 62 6c 65 28 67 72 61 70 68 2c 20 67 6f 2c 20 74 72 65 65 2c 20 6d 6f 64 65 29 3b Playable(graph,.go,.tree,.mode);
64e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 63 .................graph.Connect(c
6500 6f 6d 70 69 6c 65 64 54 72 61 63 6b 50 6c 61 79 61 62 6c 65 2c 20 30 2c 20 6c 61 79 65 72 4d 69 ompiledTrackPlayable,.0,.layerMi
6520 78 65 72 2c 20 63 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 79 65 72 4d 69 xer,.c);.................layerMi
6540 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 63 2c 20 66 6c 61 74 74 65 6e 54 72 61 xer.SetInputWeight(c,.flattenTra
6560 63 6b 73 5b 63 5d 2e 69 6e 43 6c 69 70 4d 6f 64 65 20 3f 20 30 20 3a 20 31 29 3b 0a 20 20 20 20 cks[c].inClipMode.?.0.:.1);.....
6580 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 5b 63 5d ............if.(flattenTracks[c]
65a0 2e 61 70 70 6c 79 41 76 61 74 61 72 4d 61 73 6b 20 26 26 20 66 6c 61 74 74 65 6e 54 72 61 63 6b .applyAvatarMask.&&.flattenTrack
65c0 73 5b 63 5d 2e 61 76 61 74 61 72 4d 61 73 6b 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 s[c].avatarMask.!=.null)........
65e0 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 6c .........{.....................l
6600 61 79 65 72 4d 69 78 65 72 2e 53 65 74 4c 61 79 65 72 4d 61 73 6b 46 72 6f 6d 41 76 61 74 61 72 ayerMixer.SetLayerMaskFromAvatar
6620 4d 61 73 6b 28 28 75 69 6e 74 29 63 2c 20 66 6c 61 74 74 65 6e 54 72 61 63 6b 73 5b 63 5d 2e 61 Mask((uint)c,.flattenTracks[c].a
6640 76 61 74 61 72 4d 61 73 6b 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 vatarMask);.................}...
6660 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 62 6f 6f 6c 20 72 65 ..........}..............bool.re
6680 71 75 69 72 65 73 4d 6f 74 69 6f 6e 58 50 6c 61 79 61 62 6c 65 20 3d 20 52 65 71 75 69 72 65 73 quiresMotionXPlayable.=.Requires
66a0 4d 6f 74 69 6f 6e 58 50 6c 61 79 61 62 6c 65 28 6d 6f 64 65 2c 20 67 6f 29 3b 0a 0a 20 20 20 20 MotionXPlayable(mode,.go);......
66c0 20 20 20 20 20 20 20 20 50 6c 61 79 61 62 6c 65 20 6d 69 78 65 72 20 3d 20 6c 61 79 65 72 4d 69 ........Playable.mixer.=.layerMi
66e0 78 65 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 78 65 72 20 3d 20 43 72 65 61 74 65 44 xer;.............mixer.=.CreateD
6700 65 66 61 75 6c 74 42 6c 65 6e 64 28 67 72 61 70 68 2c 20 67 6f 2c 20 6d 69 78 65 72 2c 20 72 65 efaultBlend(graph,.go,.mixer,.re
6720 71 75 69 72 65 73 4d 6f 74 69 6f 6e 58 50 6c 61 79 61 62 6c 65 29 3b 0a 0a 20 20 20 20 20 20 20 quiresMotionXPlayable);.........
6740 20 20 20 20 20 2f 2f 20 6d 6f 74 69 6f 6e 58 20 70 6c 61 79 61 62 6c 65 20 6e 6f 74 20 72 65 71 .....//.motionX.playable.not.req
6760 75 69 72 65 64 20 69 6e 20 73 63 65 6e 65 20 6f 66 66 73 65 74 20 6d 6f 64 65 2c 20 6f 72 20 72 uired.in.scene.offset.mode,.or.r
6780 6f 6f 74 20 74 72 61 6e 73 66 6f 72 6d 20 6d 6f 64 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 oot.transform.mode.............i
67a0 66 20 28 72 65 71 75 69 72 65 73 4d 6f 74 69 6f 6e 58 50 6c 61 79 61 62 6c 65 29 0a 20 20 20 20 f.(requiresMotionXPlayable).....
67c0 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 49 66 20 ........{.................//.If.
67e0 77 65 20 61 72 65 20 61 6e 69 6d 61 74 69 6e 67 20 61 20 72 6f 6f 74 20 74 72 61 6e 73 66 6f 72 we.are.animating.a.root.transfor
6800 6d 2c 20 61 64 64 20 74 68 65 20 6d 6f 74 69 6f 6e 58 20 74 6f 20 64 65 6c 74 61 20 70 6c 61 79 m,.add.the.motionX.to.delta.play
6820 61 62 6c 65 20 61 73 20 74 68 65 20 72 6f 6f 74 20 6e 6f 64 65 0a 20 20 20 20 20 20 20 20 20 20 able.as.the.root.node...........
6840 20 20 20 20 20 20 76 61 72 20 6d 6f 74 69 6f 6e 58 54 6f 44 65 6c 74 61 20 3d 20 41 6e 69 6d 61 ......var.motionXToDelta.=.Anima
6860 74 69 6f 6e 4d 6f 74 69 6f 6e 58 54 6f 44 65 6c 74 61 50 6c 61 79 61 62 6c 65 2e 43 72 65 61 74 tionMotionXToDeltaPlayable.Creat
6880 65 28 67 72 61 70 68 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e e(graph);.................graph.
68a0 43 6f 6e 6e 65 63 74 28 6d 69 78 65 72 2c 20 30 2c 20 6d 6f 74 69 6f 6e 58 54 6f 44 65 6c 74 61 Connect(mixer,.0,.motionXToDelta
68c0 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 74 69 6f 6e 58 54 6f 44 ,.0);.................motionXToD
68e0 65 6c 74 61 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 30 2c 20 31 2e 30 66 29 3b 0a 20 20 elta.SetInputWeight(0,.1.0f);...
6900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 74 69 6f 6e 58 54 6f 44 65 6c 74 61 2e 53 65 74 ..............motionXToDelta.Set
6920 41 62 73 6f 6c 75 74 65 4d 6f 74 69 6f 6e 28 55 73 65 73 41 62 73 6f 6c 75 74 65 4d 6f 74 69 6f AbsoluteMotion(UsesAbsoluteMotio
6940 6e 28 6d 6f 64 65 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 78 65 72 20 n(mode));.................mixer.
6960 3d 20 28 50 6c 61 79 61 62 6c 65 29 6d 6f 74 69 6f 6e 58 54 6f 44 65 6c 74 61 3b 0a 20 20 20 20 =.(Playable)motionXToDelta;.....
6980 20 20 20 20 20 20 20 20 7d 0a 0a 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 ........}...#if.UNITY_EDITOR....
69a0 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 6c 61 79 .........if.(!Application.isPlay
69c0 69 6e 67 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 ing).............{..............
69e0 20 20 20 76 61 72 20 61 6e 69 6d 61 74 6f 72 20 3d 20 47 65 74 42 69 6e 64 69 6e 67 28 67 6f 20 ...var.animator.=.GetBinding(go.
6a00 21 3d 20 6e 75 6c 6c 20 3f 20 67 6f 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 50 6c 61 79 61 62 !=.null.?.go.GetComponent<Playab
6a20 6c 65 44 69 72 65 63 74 6f 72 3e 28 29 20 3a 20 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 leDirector>().:.null);..........
6a40 20 20 20 20 20 20 20 69 66 20 28 61 6e 69 6d 61 74 6f 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 .......if.(animator.!=.null)....
6a60 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 20 20 20 .............{..................
6a80 20 20 20 47 61 6d 65 4f 62 6a 65 63 74 20 74 61 72 67 65 74 47 4f 20 3d 20 61 6e 69 6d 61 74 6f ...GameObject.targetGO.=.animato
6aa0 72 2e 67 61 6d 65 4f 62 6a 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r.gameObject;...................
6ac0 20 20 49 41 6e 69 6d 61 74 69 6f 6e 57 69 6e 64 6f 77 50 72 65 76 69 65 77 5b 5d 20 70 72 65 76 ..IAnimationWindowPreview[].prev
6ae0 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 20 3d 20 74 61 72 67 65 74 47 4f 2e 47 65 74 43 6f 6d 70 iewComponents.=.targetGO.GetComp
6b00 6f 6e 65 6e 74 73 3c 49 41 6e 69 6d 61 74 69 6f 6e 57 69 6e 64 6f 77 50 72 65 76 69 65 77 3e 28 onents<IAnimationWindowPreview>(
6b20 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 48 61 73 50 72 65 );......................m_HasPre
6b40 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 20 3d 20 70 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e viewComponents.=.previewComponen
6b60 74 73 2e 4c 65 6e 67 74 68 20 3e 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ts.Length.>.0;..................
6b80 20 20 20 69 66 20 28 6d 5f 48 61 73 50 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 29 0a 20 ...if.(m_HasPreviewComponents)..
6ba0 20 20 20 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 ...................{............
6bc0 20 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 63 6f 6d 70 6f 6e .............foreach.(var.compon
6be0 65 6e 74 20 69 6e 20 70 72 65 76 69 65 77 43 6f 6d 70 6f 6e 65 6e 74 73 29 0a 20 20 20 20 20 20 ent.in.previewComponents).......
6c00 20 20 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 ..................{.............
6c20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 78 65 72 20 3d 20 63 6f 6d 70 6f 6e 65 6e ................mixer.=.componen
6c40 74 2e 42 75 69 6c 64 50 72 65 76 69 65 77 47 72 61 70 68 28 67 72 61 70 68 2c 20 6d 69 78 65 72 t.BuildPreviewGraph(graph,.mixer
6c60 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 7d 0a 20 20 20 );.........................}....
6c80 20 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 20 20 20 .................}..............
6ca0 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 23 65 6e 64 69 66 0a 0a 20 20 20 20 20 ...}.............}.#endif.......
6cc0 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 69 78 65 72 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a .......return.mixer;.........}..
6ce0 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 73 20 61 20 6c 61 79 65 72 20 6d 69 78 65 72 ........//.Creates.a.layer.mixer
6d00 20 63 6f 6e 74 61 69 6e 69 6e 67 20 64 65 66 61 75 6c 74 20 62 6c 65 6e 64 73 0a 20 20 20 20 20 .containing.default.blends......
6d20 20 20 20 2f 2f 20 74 68 65 20 62 61 73 65 20 6c 61 79 65 72 20 69 73 20 61 20 64 65 66 61 75 6c ...//.the.base.layer.is.a.defaul
6d40 74 20 63 6c 69 70 20 6f 66 20 61 6c 6c 20 64 72 69 76 65 6e 20 70 72 6f 70 65 72 74 69 65 73 0a t.clip.of.all.driven.properties.
6d60 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 6e 65 78 74 20 6c 61 79 65 72 20 69 73 20 6f 70 74 ........//.the.next.layer.is.opt
6d80 69 6f 6e 61 6c 6c 79 20 74 68 65 20 64 65 73 69 72 65 64 20 64 65 66 61 75 6c 74 20 70 6f 73 65 ionally.the.desired.default.pose
6da0 20 28 69 6e 20 74 68 65 20 63 61 73 65 20 6f 66 20 68 75 6d 61 6e 6f 69 64 2c 20 74 68 65 20 74 .(in.the.case.of.humanoid,.the.t
6dc0 70 6f 73 65 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 50 6c 61 79 61 62 6c 65 20 43 72 pose.........private.Playable.Cr
6de0 65 61 74 65 44 65 66 61 75 6c 74 42 6c 65 6e 64 28 50 6c 61 79 61 62 6c 65 47 72 61 70 68 20 67 eateDefaultBlend(PlayableGraph.g
6e00 72 61 70 68 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 50 6c 61 79 61 62 6c 65 20 6d 69 raph,.GameObject.go,.Playable.mi
6e20 78 65 72 2c 20 62 6f 6f 6c 20 72 65 71 75 69 72 65 4f 66 66 73 65 74 29 0a 20 20 20 20 20 20 20 xer,.bool.requireOffset)........
6e40 20 7b 0a 23 69 66 20 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 .{.#if..UNITY_EDITOR............
6e60 20 69 66 20 28 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 6c 61 79 69 6e 67 29 0a 20 20 20 20 .if.(Application.isPlaying).....
6e80 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 69 78 65 72 3b 0a 0a 20 20 20 20 20 ............return.mixer;.......
6ea0 20 20 20 20 20 20 20 69 6e 74 20 69 6e 70 75 74 73 20 3d 20 31 20 2b 20 28 28 6d 5f 43 61 63 68 .......int.inputs.=.1.+.((m_Cach
6ec0 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 70 20 21 3d 20 6e 75 6c 6c 29 20 3f 20 31 20 3a 20 edPropertiesClip.!=.null).?.1.:.
6ee0 30 29 20 2b 20 28 28 6d 5f 44 65 66 61 75 6c 74 50 6f 73 65 43 6c 69 70 20 21 3d 20 6e 75 6c 6c 0).+.((m_DefaultPoseClip.!=.null
6f00 29 20 3f 20 31 20 3a 20 30 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 70 75 ).?.1.:.0);.............if.(inpu
6f20 74 73 20 3d 3d 20 31 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 ts.==.1).................return.
6f40 6d 69 78 65 72 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 66 61 75 6c 74 50 mixer;..............var.defaultP
6f60 6f 73 65 4d 69 78 65 72 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 4c 61 79 65 72 4d 69 78 65 72 50 6c oseMixer.=.AnimationLayerMixerPl
6f80 61 79 61 62 6c 65 2e 43 72 65 61 74 65 28 67 72 61 70 68 2c 20 69 6e 70 75 74 73 29 3b 0a 0a 20 ayable.Create(graph,.inputs);...
6fa0 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 6d 69 78 65 72 49 6e 70 75 74 20 3d 20 30 3b 0a 20 ...........int.mixerInput.=.0;..
6fc0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 ...........if.(m_CachedPropertie
6fe0 73 43 6c 69 70 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 sClip).............{............
7000 20 20 20 20 20 76 61 72 20 63 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 70 20 3d 20 .....var.cachedPropertiesClip.=.
7020 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 50 6c 61 79 61 62 6c 65 2e 43 72 65 61 74 65 28 67 72 61 AnimationClipPlayable.Create(gra
7040 70 68 2c 20 6d 5f 43 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 70 29 3b 0a 20 20 20 ph,.m_CachedPropertiesClip);....
7060 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 .............cachedPropertiesCli
7080 70 2e 53 65 74 41 70 70 6c 79 46 6f 6f 74 49 4b 28 66 61 6c 73 65 29 3b 0a 20 20 20 20 20 20 20 p.SetApplyFootIK(false);........
70a0 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 66 61 75 6c 74 73 20 3d 20 28 50 6c 61 79 61 62 6c .........var.defaults.=.(Playabl
70c0 65 29 20 63 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c 69 70 3b 0a 20 20 20 20 20 20 20 e).cachedPropertiesClip;........
70e0 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 71 75 69 72 65 4f 66 66 73 65 74 29 0a 20 20 20 20 .........if.(requireOffset).....
7100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 73 20 3d 20 41 74 74 61 63 ................defaults.=.Attac
7120 68 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 28 67 72 61 70 68 2c 20 64 65 66 61 75 6c 74 73 2c hOffsetPlayable(graph,.defaults,
7140 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 2c 20 51 75 61 74 65 72 6e 69 .m_SceneOffsetPosition,.Quaterni
7160 6f 6e 2e 45 75 6c 65 72 28 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 29 29 on.Euler(m_SceneOffsetRotation))
7180 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 ;.................graph.Connect(
71a0 64 65 66 61 75 6c 74 73 2c 20 30 2c 20 64 65 66 61 75 6c 74 50 6f 73 65 4d 69 78 65 72 2c 20 6d defaults,.0,.defaultPoseMixer,.m
71c0 69 78 65 72 49 6e 70 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 61 ixerInput);.................defa
71e0 75 6c 74 50 6f 73 65 4d 69 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 6d 69 78 65 ultPoseMixer.SetInputWeight(mixe
7200 72 49 6e 70 75 74 2c 20 31 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d rInput,.1.0f);.................m
7220 69 78 65 72 49 6e 70 75 74 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ixerInput++;.............}......
7240 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 65 66 61 75 6c 74 50 6f 73 65 43 6c 69 70 29 0a 20 ........if.(m_DefaultPoseClip)..
7260 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ...........{.................var
7280 20 64 65 66 61 75 6c 74 50 6f 73 65 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 50 6c 61 79 .defaultPose.=.AnimationClipPlay
72a0 61 62 6c 65 2e 43 72 65 61 74 65 28 67 72 61 70 68 2c 20 6d 5f 44 65 66 61 75 6c 74 50 6f 73 65 able.Create(graph,.m_DefaultPose
72c0 43 6c 69 70 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 50 6f Clip);.................defaultPo
72e0 73 65 2e 53 65 74 41 70 70 6c 79 46 6f 6f 74 49 4b 28 66 61 6c 73 65 29 3b 0a 20 20 20 20 20 20 se.SetApplyFootIK(false);.......
7300 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 6c 65 6e 64 44 65 66 61 75 6c 74 20 3d 20 28 50 6c ..........var.blendDefault.=.(Pl
7320 61 79 61 62 6c 65 29 20 64 65 66 61 75 6c 74 50 6f 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ayable).defaultPose;............
7340 20 20 20 20 20 69 66 20 28 72 65 71 75 69 72 65 4f 66 66 73 65 74 29 0a 20 20 20 20 20 20 20 20 .....if.(requireOffset).........
7360 20 20 20 20 20 20 20 20 20 20 20 20 62 6c 65 6e 64 44 65 66 61 75 6c 74 20 3d 20 41 74 74 61 63 ............blendDefault.=.Attac
7380 68 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 28 67 72 61 70 68 2c 20 62 6c 65 6e 64 44 65 66 61 hOffsetPlayable(graph,.blendDefa
73a0 75 6c 74 2c 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 2c 20 51 75 61 74 ult,.m_SceneOffsetPosition,.Quat
73c0 65 72 6e 69 6f 6e 2e 45 75 6c 65 72 28 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 ernion.Euler(m_SceneOffsetRotati
73e0 6f 6e 29 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e on));..................graph.Con
7400 6e 65 63 74 28 62 6c 65 6e 64 44 65 66 61 75 6c 74 2c 20 30 2c 20 64 65 66 61 75 6c 74 50 6f 73 nect(blendDefault,.0,.defaultPos
7420 65 4d 69 78 65 72 2c 20 6d 69 78 65 72 49 6e 70 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 eMixer,.mixerInput);............
7440 20 20 20 20 20 64 65 66 61 75 6c 74 50 6f 73 65 4d 69 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 .....defaultPoseMixer.SetInputWe
7460 69 67 68 74 28 6d 69 78 65 72 49 6e 70 75 74 2c 20 31 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 ight(mixerInput,.1.0f);.........
7480 20 20 20 20 20 20 20 20 6d 69 78 65 72 49 6e 70 75 74 2b 2b 3b 0a 20 20 20 20 20 20 20 20 20 20 ........mixerInput++;...........
74a0 20 20 7d 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 ..}...............graph.Connect(
74c0 6d 69 78 65 72 2c 20 30 2c 20 64 65 66 61 75 6c 74 50 6f 73 65 4d 69 78 65 72 2c 20 6d 69 78 65 mixer,.0,.defaultPoseMixer,.mixe
74e0 72 49 6e 70 75 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 50 6f 73 65 rInput);.............defaultPose
7500 4d 69 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 6d 69 78 65 72 49 6e 70 75 74 2c Mixer.SetInputWeight(mixerInput,
7520 20 31 2e 30 66 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 65 66 61 .1.0f);..............return.defa
7540 75 6c 74 50 6f 73 65 4d 69 78 65 72 3b 0a 23 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 ultPoseMixer;.#else.............
7560 72 65 74 75 72 6e 20 6d 69 78 65 72 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 7d 0a 0a return.mixer;.#endif.........}..
7580 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 50 6c 61 79 61 62 6c 65 20 41 74 74 61 63 68 4f ........private.Playable.AttachO
75a0 66 66 73 65 74 50 6c 61 79 61 62 6c 65 28 50 6c 61 79 61 62 6c 65 47 72 61 70 68 20 67 72 61 70 ffsetPlayable(PlayableGraph.grap
75c0 68 2c 20 50 6c 61 79 61 62 6c 65 20 70 6c 61 79 61 62 6c 65 2c 20 56 65 63 74 6f 72 33 20 70 6f h,.Playable.playable,.Vector3.po
75e0 73 2c 20 51 75 61 74 65 72 6e 69 6f 6e 20 72 6f 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 s,.Quaternion.rot).........{....
7600 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 20 3d 20 41 6e .........var.offsetPlayable.=.An
7620 69 6d 61 74 69 6f 6e 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 2e 43 72 65 61 74 65 28 67 72 61 imationOffsetPlayable.Create(gra
7640 70 68 2c 20 70 6f 73 2c 20 72 6f 74 2c 20 31 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 ph,.pos,.rot,.1);.............of
7660 66 73 65 74 50 6c 61 79 61 62 6c 65 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 30 2c 20 31 fsetPlayable.SetInputWeight(0,.1
7680 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 .0f);.............graph.Connect(
76a0 70 6c 61 79 61 62 6c 65 2c 20 30 2c 20 6f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 2c 20 30 29 3b playable,.0,.offsetPlayable,.0);
76c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6f 66 66 73 65 74 50 6c 61 79 61 62 .............return.offsetPlayab
76e0 6c 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a le;.........}..#if.UNITY_EDITOR.
7700 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 20 6b 5f ........private.static.string.k_
7720 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 50 61 74 68 20 3d 20 22 50 61 63 6b 61 DefaultHumanoidClipPath.=."Packa
7740 67 65 73 2f 63 6f 6d 2e 75 6e 69 74 79 2e 74 69 6d 65 6c 69 6e 65 2f 45 64 69 74 6f 72 2f 53 74 ges/com.unity.timeline/Editor/St
7760 79 6c 65 53 68 65 65 74 73 2f 72 65 73 2f 48 75 6d 61 6e 6f 69 64 44 65 66 61 75 6c 74 2e 61 6e yleSheets/res/HumanoidDefault.an
7780 69 6d 22 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 41 6e 69 6d im";.........private.static.Anim
77a0 61 74 69 6f 6e 43 6c 69 70 20 73 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 20 ationClip.s_DefaultHumanoidClip.
77c0 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 20 47 =.null;..........AnimationClip.G
77e0 65 74 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 28 29 0a 20 20 20 20 20 20 20 20 etDefaultHumanoidClip().........
7800 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e {.............if.(s_DefaultHuman
7820 6f 69 64 43 6c 69 70 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 oidClip.==.null).............{..
7840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 ...............s_DefaultHumanoid
7860 43 6c 69 70 20 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 4c 6f 61 64 52 65 71 75 Clip.=.EditorGUIUtility.LoadRequ
7880 69 72 65 64 28 6b 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 50 61 74 68 29 20 ired(k_DefaultHumanoidClipPath).
78a0 61 73 20 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 as.AnimationClip;...............
78c0 20 20 69 66 20 28 73 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 20 3d 3d 20 6e ..if.(s_DefaultHumanoidClip.==.n
78e0 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 44 65 62 75 67 2e 4c ull).....................Debug.L
7900 6f 67 45 72 72 6f 72 28 22 43 6f 75 6c 64 20 6e 6f 74 20 6c 6f 61 64 20 64 65 66 61 75 6c 74 20 ogError("Could.not.load.default.
7920 68 75 6d 61 6e 6f 69 64 20 61 6e 69 6d 61 74 69 6f 6e 20 63 6c 69 70 20 66 6f 72 20 54 69 6d 65 humanoid.animation.clip.for.Time
7940 6c 69 6e 65 22 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 line");.............}...........
7960 20 20 20 72 65 74 75 72 6e 20 73 5f 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 3b ...return.s_DefaultHumanoidClip;
7980 0a 20 20 20 20 20 20 20 20 7d 0a 0a 23 65 6e 64 69 66 0a 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c .........}..#endif..........bool
79a0 20 52 65 71 75 69 72 65 73 4d 6f 74 69 6f 6e 58 50 6c 61 79 61 62 6c 65 28 41 70 70 6c 69 65 64 .RequiresMotionXPlayable(Applied
79c0 4f 66 66 73 65 74 4d 6f 64 65 20 6d 6f 64 65 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 61 6d 65 OffsetMode.mode,.GameObject.game
79e0 4f 62 6a 65 63 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 69 66 Object).........{.............if
7a00 20 28 6d 6f 64 65 20 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 4e 6f 52 6f .(mode.==.AppliedOffsetMode.NoRo
7a20 6f 74 54 72 61 6e 73 66 6f 72 6d 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 otTransform).................ret
7a40 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 6f 64 65 20 urn.false;.............if.(mode.
7a60 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f 66 66 73 65 74 ==.AppliedOffsetMode.SceneOffset
7a80 4c 65 67 61 63 79 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 Legacy).............{...........
7aa0 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d 61 74 6f 72 20 3d 20 47 65 74 42 69 6e 64 69 6e 67 28 ......var.animator.=.GetBinding(
7ac0 67 61 6d 65 4f 62 6a 65 63 74 20 21 3d 20 6e 75 6c 6c 20 3f 20 67 61 6d 65 4f 62 6a 65 63 74 2e gameObject.!=.null.?.gameObject.
7ae0 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 50 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 3e 28 29 GetComponent<PlayableDirector>()
7b00 20 3a 20 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e .:.null);.................return
7b20 20 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 72 2e 68 61 .animator.!=.null.&&.animator.ha
7b40 73 52 6f 6f 74 4d 6f 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 sRootMotion;.............}......
7b60 20 20 20 20 20 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 .......return.true;.........}...
7b80 20 20 20 20 20 20 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 55 73 65 73 41 62 73 6f 6c 75 74 65 4d .......static.bool.UsesAbsoluteM
7ba0 6f 74 69 6f 6e 28 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 20 6d 6f 64 65 29 0a 20 20 otion(AppliedOffsetMode.mode)...
7bc0 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 ......{.#if.UNITY_EDITOR........
7be0 20 20 20 20 20 2f 2f 20 69 6e 20 65 64 69 74 6f 72 2c 20 70 72 65 76 69 65 77 69 6e 67 20 69 73 .....//.in.editor,.previewing.is
7c00 20 61 6c 77 61 79 73 20 64 6f 6e 65 20 69 6e 20 61 62 73 6f 6c 75 74 65 20 6d 6f 74 69 6f 6e 0a .always.done.in.absolute.motion.
7c20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 ............if.(!Application.isP
7c40 6c 61 79 69 6e 67 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 74 laying).................return.t
7c60 72 75 65 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d rue;.#endif.............return.m
7c80 6f 64 65 20 21 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f 66 ode.!=.AppliedOffsetMode.SceneOf
7ca0 66 73 65 74 20 26 26 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 64 65 20 21 3d 20 fset.&&.................mode.!=.
7cc0 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f 66 66 73 65 74 4c 65 67 AppliedOffsetMode.SceneOffsetLeg
7ce0 61 63 79 3b 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 48 61 73 acy;.........}..........bool.Has
7d00 43 6f 6e 74 72 6f 6c 6c 65 72 28 47 61 6d 65 4f 62 6a 65 63 74 20 67 61 6d 65 4f 62 6a 65 63 74 Controller(GameObject.gameObject
7d20 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d ).........{.............var.anim
7d40 61 74 6f 72 20 3d 20 47 65 74 42 69 6e 64 69 6e 67 28 67 61 6d 65 4f 62 6a 65 63 74 20 21 3d 20 ator.=.GetBinding(gameObject.!=.
7d60 6e 75 6c 6c 20 3f 20 67 61 6d 65 4f 62 6a 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 50 null.?.gameObject.GetComponent<P
7d80 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 3e 28 29 20 3a 20 6e 75 6c 6c 29 3b 0a 0a 20 20 20 layableDirector>().:.null);.....
7da0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 6e 69 6d 61 74 6f 72 20 21 3d 20 6e 75 6c 6c .........return.animator.!=.null
7dc0 20 26 26 20 61 6e 69 6d 61 74 6f 72 2e 72 75 6e 74 69 6d 65 41 6e 69 6d 61 74 6f 72 43 6f 6e 74 .&&.animator.runtimeAnimatorCont
7de0 72 6f 6c 6c 65 72 20 21 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 roller.!=.null;.........}.......
7e00 20 20 20 69 6e 74 65 72 6e 61 6c 20 41 6e 69 6d 61 74 6f 72 20 47 65 74 42 69 6e 64 69 6e 67 28 ...internal.Animator.GetBinding(
7e20 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 29 0a 20 20 20 20 20 PlayableDirector.director)......
7e40 20 20 20 7b 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 ...{.............if.(director.==
7e60 20 6e 75 6c 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 6e 75 .null).................return.nu
7e80 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 4f 62 6a ll;..............UnityEngine.Obj
7ea0 65 63 74 20 6b 65 79 20 3d 20 74 68 69 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ect.key.=.this;.............if.(
7ec0 69 73 53 75 62 54 72 61 63 6b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 65 79 20 isSubTrack).................key.
7ee0 3d 20 70 61 72 65 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 69 74 79 45 6e 67 69 =.parent;..............UnityEngi
7f00 6e 65 2e 4f 62 6a 65 63 74 20 62 69 6e 64 69 6e 67 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 ne.Object.binding.=.null;.......
7f20 20 20 20 20 20 20 69 66 20 28 64 69 72 65 63 74 6f 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 ......if.(director.!=.null).....
7f40 20 20 20 20 20 20 20 20 20 20 20 20 62 69 6e 64 69 6e 67 20 3d 20 64 69 72 65 63 74 6f 72 2e 47 ............binding.=.director.G
7f60 65 74 47 65 6e 65 72 69 63 42 69 6e 64 69 6e 67 28 6b 65 79 29 3b 0a 0a 20 20 20 20 20 20 20 20 etGenericBinding(key);..........
7f80 20 20 20 20 41 6e 69 6d 61 74 6f 72 20 61 6e 69 6d 61 74 6f 72 20 3d 20 6e 75 6c 6c 3b 0a 20 20 ....Animator.animator.=.null;...
7fa0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 69 6e 64 69 6e 67 20 21 3d 20 6e 75 6c 6c 29 20 2f ..........if.(binding.!=.null)./
7fc0 2f 20 74 68 65 20 62 69 6e 64 69 6e 67 20 63 61 6e 20 62 65 20 61 6e 20 61 6e 69 6d 61 74 6f 72 /.the.binding.can.be.an.animator
7fe0 20 6f 72 20 67 61 6d 65 20 6f 62 6a 65 63 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 .or.game.object.............{...
8000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 69 6d 61 74 6f 72 20 3d 20 62 69 6e 64 69 6e 67 ..............animator.=.binding
8020 20 61 73 20 41 6e 69 6d 61 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 .as.Animator;.................va
8040 72 20 67 61 6d 65 4f 62 6a 65 63 74 20 3d 20 62 69 6e 64 69 6e 67 20 61 73 20 47 61 6d 65 4f 62 r.gameObject.=.binding.as.GameOb
8060 6a 65 63 74 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 6d 61 74 ject;.................if.(animat
8080 6f 72 20 3d 3d 20 6e 75 6c 6c 20 26 26 20 67 61 6d 65 4f 62 6a 65 63 74 20 21 3d 20 6e 75 6c 6c or.==.null.&&.gameObject.!=.null
80a0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 69 6d 61 74 6f 72 20 3d ).....................animator.=
80c0 20 67 61 6d 65 4f 62 6a 65 63 74 2e 47 65 74 43 6f 6d 70 6f 6e 65 6e 74 3c 41 6e 69 6d 61 74 6f .gameObject.GetComponent<Animato
80e0 72 3e 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 r>();.............}.............
8100 20 72 65 74 75 72 6e 20 61 6e 69 6d 61 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 .return.animator;.........}.....
8120 20 20 20 20 20 73 74 61 74 69 63 20 41 6e 69 6d 61 74 69 6f 6e 4c 61 79 65 72 4d 69 78 65 72 50 .....static.AnimationLayerMixerP
8140 6c 61 79 61 62 6c 65 20 43 72 65 61 74 65 47 72 6f 75 70 4d 69 78 65 72 28 50 6c 61 79 61 62 6c layable.CreateGroupMixer(Playabl
8160 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 69 6e 74 eGraph.graph,.GameObject.go,.int
8180 20 69 6e 70 75 74 43 6f 75 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 .inputCount).........{..........
81a0 20 20 20 72 65 74 75 72 6e 20 41 6e 69 6d 61 74 69 6f 6e 4c 61 79 65 72 4d 69 78 65 72 50 6c 61 ...return.AnimationLayerMixerPla
81c0 79 61 62 6c 65 2e 43 72 65 61 74 65 28 67 72 61 70 68 2c 20 69 6e 70 75 74 43 6f 75 6e 74 29 3b yable.Create(graph,.inputCount);
81e0 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 50 6c 61 79 61 62 6c 65 20 43 72 65 .........}..........Playable.Cre
8200 61 74 65 49 6e 66 69 6e 69 74 65 54 72 61 63 6b 50 6c 61 79 61 62 6c 65 28 50 6c 61 79 61 62 6c ateInfiniteTrackPlayable(Playabl
8220 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 49 6e 74 eGraph.graph,.GameObject.go,.Int
8240 65 72 76 61 6c 54 72 65 65 3c 52 75 6e 74 69 6d 65 45 6c 65 6d 65 6e 74 3e 20 74 72 65 65 2c 20 ervalTree<RuntimeElement>.tree,.
8260 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 20 6d 6f 64 65 29 0a 20 20 20 20 20 20 20 20 AppliedOffsetMode.mode).........
8280 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 {.............if.(m_InfiniteClip
82a0 20 3d 3d 20 6e 75 6c 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 .==.null).................return
82c0 20 50 6c 61 79 61 62 6c 65 2e 4e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 .Playable.Null;..............var
82e0 20 6d 69 78 65 72 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 4d 69 78 65 72 50 6c 61 79 61 62 6c 65 2e .mixer.=.AnimationMixerPlayable.
8300 43 72 65 61 74 65 28 67 72 61 70 68 2c 20 31 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f Create(graph,.1);............../
8320 2f 20 49 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2c 20 77 65 20 61 6c 77 61 79 73 20 66 6f /.In.infinite.mode,.we.always.fo
8340 72 63 65 20 74 68 65 20 6c 6f 6f 70 20 6d 6f 64 65 20 6f 66 20 74 68 65 20 63 6c 69 70 20 6f 66 rce.the.loop.mode.of.the.clip.of
8360 66 20 62 65 63 61 75 73 65 20 74 68 65 20 63 6c 69 70 20 6b 65 79 73 20 61 72 65 20 6f 66 66 73 f.because.the.clip.keys.are.offs
8380 65 74 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 et.in.infinite.mode.............
83a0 2f 2f 20 20 77 68 69 63 68 20 63 61 75 73 65 73 20 6c 6f 6f 70 20 74 6f 20 62 65 68 61 76 65 20 //..which.causes.loop.to.behave.
83c0 64 69 66 66 65 72 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 20 69 6e different..............//.The.in
83e0 6c 69 6e 65 20 63 75 72 76 65 20 65 64 69 74 6f 72 20 6e 65 76 65 72 20 73 68 6f 77 73 20 6c 6f line.curve.editor.never.shows.lo
8400 6f 70 73 20 69 6e 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 2e 0a 20 20 20 20 20 20 20 20 20 20 ops.in.infinite.mode............
8420 20 20 76 61 72 20 70 6c 61 79 61 62 6c 65 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 ..var.playable.=.AnimationPlayab
8440 6c 65 41 73 73 65 74 2e 43 72 65 61 74 65 50 6c 61 79 61 62 6c 65 28 67 72 61 70 68 2c 20 6d 5f leAsset.CreatePlayable(graph,.m_
8460 49 6e 66 69 6e 69 74 65 43 6c 69 70 2c 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 InfiniteClip,.m_InfiniteClipOffs
8480 65 74 50 6f 73 69 74 69 6f 6e 2c 20 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 4f 66 66 73 65 74 etPosition,.m_InfiniteClipOffset
84a0 45 75 6c 65 72 41 6e 67 6c 65 73 2c 20 66 61 6c 73 65 2c 20 6d 6f 64 65 2c 20 69 6e 66 69 6e 69 EulerAngles,.false,.mode,.infini
84c0 74 65 43 6c 69 70 41 70 70 6c 79 46 6f 6f 74 49 4b 2c 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 teClipApplyFootIK,.AnimationPlay
84e0 61 62 6c 65 41 73 73 65 74 2e 4c 6f 6f 70 4d 6f 64 65 2e 4f 66 66 29 3b 0a 20 20 20 20 20 20 20 ableAsset.LoopMode.Off);........
8500 20 20 20 20 20 69 66 20 28 70 6c 61 79 61 62 6c 65 2e 49 73 56 61 6c 69 64 28 29 29 0a 20 20 20 .....if.(playable.IsValid())....
8520 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 74 72 65 65 2e .........{.................tree.
8540 41 64 64 28 6e 65 77 20 49 6e 66 69 6e 69 74 65 52 75 6e 74 69 6d 65 43 6c 69 70 28 70 6c 61 79 Add(new.InfiniteRuntimeClip(play
8560 61 62 6c 65 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 61 70 68 2e 43 6f able));.................graph.Co
8580 6e 6e 65 63 74 28 70 6c 61 79 61 62 6c 65 2c 20 30 2c 20 6d 69 78 65 72 2c 20 30 29 3b 0a 20 20 nnect(playable,.0,.mixer,.0);...
85a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 78 65 72 2e 53 65 74 49 6e 70 75 74 57 65 69 67 ..............mixer.SetInputWeig
85c0 68 74 28 30 2c 20 31 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ht(0,.1.0f);.............}......
85e0 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 79 54 72 61 63 6b 4f 66 66 73 65 74 28 ........return.ApplyTrackOffset(
8600 67 72 61 70 68 2c 20 6d 69 78 65 72 2c 20 67 6f 2c 20 6d 6f 64 65 29 3b 0a 20 20 20 20 20 20 20 graph,.mixer,.go,.mode);........
8620 20 7d 0a 0a 20 20 20 20 20 20 20 20 50 6c 61 79 61 62 6c 65 20 41 70 70 6c 79 54 72 61 63 6b 4f .}..........Playable.ApplyTrackO
8640 66 66 73 65 74 28 50 6c 61 79 61 62 6c 65 47 72 61 70 68 20 67 72 61 70 68 2c 20 50 6c 61 79 61 ffset(PlayableGraph.graph,.Playa
8660 62 6c 65 20 72 6f 6f 74 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 41 70 70 6c 69 65 64 ble.root,.GameObject.go,.Applied
8680 4f 66 66 73 65 74 4d 6f 64 65 20 6d 6f 64 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 OffsetMode.mode).........{.#if.U
86a0 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6c 69 70 4f 66 NITY_EDITOR.............m_ClipOf
86c0 66 73 65 74 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 2e 4e fset.=.AnimationOffsetPlayable.N
86e0 75 6c 6c 3b 0a 23 65 6e 64 69 66 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 66 66 73 ull;.#endif..............//.offs
8700 65 74 73 20 64 6f 6e 27 74 20 61 70 70 6c 79 20 69 6e 20 73 63 65 6e 65 20 6f 66 66 73 65 74 2c ets.don't.apply.in.scene.offset,
8720 20 6f 72 20 69 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 72 6f 6f 74 20 74 72 61 6e 73 66 6f 72 .or.if.there.is.no.root.transfor
8740 6d 20 28 67 6c 6f 62 61 6c 6c 79 20 6f 72 20 6f 6e 20 74 68 69 73 20 74 72 61 63 6b 29 0a 20 20 m.(globally.or.on.this.track)...
8760 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 6f 64 65 20 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 ..........if.(mode.==.AppliedOff
8780 73 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f 66 66 73 65 74 4c 65 67 61 63 79 20 7c 7c 0a 20 20 20 setMode.SceneOffsetLegacy.||....
87a0 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 64 65 20 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 .............mode.==.AppliedOffs
87c0 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f 66 66 73 65 74 20 20 20 20 20 7c 7c 0a 20 20 20 20 20 20 etMode.SceneOffset.....||.......
87e0 20 20 20 20 20 20 20 20 20 20 6d 6f 64 65 20 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d ..........mode.==.AppliedOffsetM
8800 6f 64 65 2e 4e 6f 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 20 7c 7c 0a 20 20 20 20 20 20 20 20 20 ode.NoRootTransform.||..........
8820 20 20 20 20 20 20 20 21 41 6e 69 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 28 29 0a .......!AnimatesRootTransform().
8840 20 20 20 20 20 20 20 20 20 20 20 20 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 ............).................re
8860 74 75 72 6e 20 72 6f 6f 74 3b 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6f 73 turn.root;...............var.pos
8880 20 3d 20 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 6f 74 .=.position;.............var.rot
88a0 20 3d 20 72 6f 74 61 74 69 6f 6e 3b 0a 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 .=.rotation;..#if.UNITY_EDITOR..
88c0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 6e 20 74 68 65 20 65 64 69 74 6f 72 20 75 73 65 20 ...........//.in.the.editor.use.
88e0 74 68 65 20 70 72 65 76 69 65 77 20 70 6f 73 69 74 69 6f 6e 20 74 6f 20 70 6c 61 79 62 61 63 6b the.preview.position.to.playback
8900 20 66 72 6f 6d 20 69 66 20 61 76 61 69 6c 61 62 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 .from.if.available.............i
8920 66 20 28 6d 6f 64 65 20 3d 3d 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 f.(mode.==.AppliedOffsetMode.Sce
8940 6e 65 4f 66 66 73 65 74 45 64 69 74 6f 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 neOffsetEditor).............{...
8960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 20 3d 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 ..............pos.=.m_SceneOffse
8980 74 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 6f 74 20 3d tPosition;.................rot.=
89a0 20 51 75 61 74 65 72 6e 69 6f 6e 2e 45 75 6c 65 72 28 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 .Quaternion.Euler(m_SceneOffsetR
89c0 6f 74 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 23 65 6e 64 69 66 0a 0a otation);.............}.#endif..
89e0 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 20 3d ............var.offsetPlayable.=
8a00 20 41 6e 69 6d 61 74 69 6f 6e 4f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 2e 43 72 65 61 74 65 28 .AnimationOffsetPlayable.Create(
8a20 67 72 61 70 68 2c 20 70 6f 73 2c 20 72 6f 74 2c 20 31 29 3b 0a 23 69 66 20 55 4e 49 54 59 5f 45 graph,.pos,.rot,.1);.#if.UNITY_E
8a40 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6c 69 70 4f 66 66 73 65 74 20 3d DITOR.............m_ClipOffset.=
8a60 20 6f 66 66 73 65 74 50 6c 61 79 61 62 6c 65 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 .offsetPlayable;.#endif.........
8a80 20 20 20 20 67 72 61 70 68 2e 43 6f 6e 6e 65 63 74 28 72 6f 6f 74 2c 20 30 2c 20 6f 66 66 73 65 ....graph.Connect(root,.0,.offse
8aa0 74 50 6c 61 79 61 62 6c 65 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 66 73 65 tPlayable,.0);.............offse
8ac0 74 50 6c 61 79 61 62 6c 65 2e 53 65 74 49 6e 70 75 74 57 65 69 67 68 74 28 30 2c 20 31 29 3b 0a tPlayable.SetInputWeight(0,.1);.
8ae0 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6f 66 66 73 65 74 50 6c 61 79 61 62 .............return.offsetPlayab
8b00 6c 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 65 76 le;.........}..........//.the.ev
8b20 61 6c 75 61 74 69 6f 6e 20 74 69 6d 65 20 69 73 20 6c 61 72 67 65 20 73 6f 20 74 68 61 74 20 74 aluation.time.is.large.so.that.t
8b40 68 65 20 70 72 6f 70 65 72 74 69 65 73 20 61 6c 77 61 79 73 20 67 65 74 20 65 76 61 6c 75 61 74 he.properties.always.get.evaluat
8b60 65 64 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 6f 76 65 72 72 69 64 65 20 76 6f 69 ed.........internal.override.voi
8b80 64 20 47 65 74 45 76 61 6c 75 61 74 69 6f 6e 54 69 6d 65 28 6f 75 74 20 64 6f 75 62 6c 65 20 6f d.GetEvaluationTime(out.double.o
8ba0 75 74 53 74 61 72 74 2c 20 6f 75 74 20 64 6f 75 62 6c 65 20 6f 75 74 44 75 72 61 74 69 6f 6e 29 utStart,.out.double.outDuration)
8bc0 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 69 6e 43 6c 69 .........{.............if.(inCli
8be0 70 4d 6f 64 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 20 20 pMode).............{............
8c00 20 20 20 20 20 62 61 73 65 2e 47 65 74 45 76 61 6c 75 61 74 69 6f 6e 54 69 6d 65 28 6f 75 74 20 .....base.GetEvaluationTime(out.
8c20 6f 75 74 53 74 61 72 74 2c 20 6f 75 74 20 6f 75 74 44 75 72 61 74 69 6f 6e 29 3b 0a 20 20 20 20 outStart,.out.outDuration);.....
8c40 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 20 20 20 ........}.............else......
8c60 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 6f 75 74 53 74 61 72 .......{.................outStar
8c80 74 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 75 74 44 75 72 61 74 69 t.=.0;.................outDurati
8ca0 6f 6e 20 3d 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 6b 4d 61 78 54 69 6d 65 56 61 6c 75 65 3b on.=.TimelineClip.kMaxTimeValue;
8cc0 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 20 20 20 .............}.........}........
8ce0 20 20 69 6e 74 65 72 6e 61 6c 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 47 65 74 53 65 71 75 ..internal.override.void.GetSequ
8d00 65 6e 63 65 54 69 6d 65 28 6f 75 74 20 64 6f 75 62 6c 65 20 6f 75 74 53 74 61 72 74 2c 20 6f 75 enceTime(out.double.outStart,.ou
8d20 74 20 64 6f 75 62 6c 65 20 6f 75 74 44 75 72 61 74 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 7b 0a t.double.outDuration).........{.
8d40 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 43 6c 69 70 4d 6f 64 65 29 0a 20 20 20 20 ............if.(inClipMode).....
8d60 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 62 61 73 65 2e 47 ........{.................base.G
8d80 65 74 53 65 71 75 65 6e 63 65 54 69 6d 65 28 6f 75 74 20 6f 75 74 53 74 61 72 74 2c 20 6f 75 74 etSequenceTime(out.outStart,.out
8da0 20 6f 75 74 44 75 72 61 74 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 .outDuration);.............}....
8dc0 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 7b 0a 20 20 20 20 .........else.............{.....
8de0 20 20 20 20 20 20 20 20 20 20 20 20 6f 75 74 53 74 61 72 74 20 3d 20 30 3b 0a 20 20 20 20 20 20 ............outStart.=.0;.......
8e00 20 20 20 20 20 20 20 20 20 20 6f 75 74 44 75 72 61 74 69 6f 6e 20 3d 20 4d 61 74 68 2e 4d 61 78 ..........outDuration.=.Math.Max
8e20 28 47 65 74 4e 6f 74 69 66 69 63 61 74 69 6f 6e 44 75 72 61 74 69 6f 6e 28 29 2c 20 54 69 6d 65 (GetNotificationDuration(),.Time
8e40 55 74 69 6c 69 74 79 2e 47 65 74 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 4c 65 6e 67 74 68 28 6d Utility.GetAnimationClipLength(m
8e60 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 29 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 _InfiniteClip));.............}..
8e80 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 41 73 73 69 67 6e 41 6e 69 .......}..........void.AssignAni
8ea0 6d 61 74 69 6f 6e 43 6c 69 70 28 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 63 6c 69 70 2c 20 41 6e mationClip(TimelineClip.clip,.An
8ec0 69 6d 61 74 69 6f 6e 43 6c 69 70 20 61 6e 69 6d 43 6c 69 70 29 0a 20 20 20 20 20 20 20 20 7b 0a imationClip.animClip).........{.
8ee0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6c 69 70 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 ............if.(clip.==.null.||.
8f00 61 6e 69 6d 43 6c 69 70 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 animClip.==.null)...............
8f20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 6e 69 6d 43 ..return;..............if.(animC
8f40 6c 69 70 2e 6c 65 67 61 63 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f lip.legacy).................thro
8f60 77 20 6e 65 77 20 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 74 69 6f 6e 28 w.new.InvalidOperationException(
8f80 22 4c 65 67 61 63 79 20 41 6e 69 6d 61 74 69 6f 6e 20 43 6c 69 70 73 20 61 72 65 20 6e 6f 74 20 "Legacy.Animation.Clips.are.not.
8fa0 73 75 70 70 6f 72 74 65 64 22 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 6e 69 6d 61 74 supported");..............Animat
8fc0 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 20 61 73 73 65 74 20 3d 20 63 6c 69 70 2e 61 73 ionPlayableAsset.asset.=.clip.as
8fe0 73 65 74 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 3b 0a 20 set.as.AnimationPlayableAsset;..
9000 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 73 73 65 74 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 ...........if.(asset.!=.null)...
9020 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 61 73 73 65 ..........{.................asse
9040 74 2e 63 6c 69 70 20 3d 20 61 6e 69 6d 43 6c 69 70 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 t.clip.=.animClip;..............
9060 20 20 20 61 73 73 65 74 2e 6e 61 6d 65 20 3d 20 61 6e 69 6d 43 6c 69 70 2e 6e 61 6d 65 3b 0a 20 ...asset.name.=.animClip.name;..
9080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 75 72 61 74 69 6f 6e 20 3d 20 61 73 ...............var.duration.=.as
90a0 73 65 74 2e 64 75 72 61 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 set.duration;.................if
90c0 20 28 21 64 6f 75 62 6c 65 2e 49 73 49 6e 66 69 6e 69 74 79 28 64 75 72 61 74 69 6f 6e 29 20 26 .(!double.IsInfinity(duration).&
90e0 26 20 64 75 72 61 74 69 6f 6e 20 3e 3d 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 2e 6b 4d 69 6e 44 &.duration.>=.TimelineClip.kMinD
9100 75 72 61 74 69 6f 6e 20 26 26 20 64 75 72 61 74 69 6f 6e 20 3c 20 54 69 6d 65 6c 69 6e 65 43 6c uration.&&.duration.<.TimelineCl
9120 69 70 2e 6b 4d 61 78 54 69 6d 65 56 61 6c 75 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ip.kMaxTimeValue)...............
9140 20 20 20 20 20 20 63 6c 69 70 2e 64 75 72 61 74 69 6f 6e 20 3d 20 64 75 72 61 74 69 6f 6e 3b 0a ......clip.duration.=.duration;.
9160 20 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 63 6c 69 70 2e 64 ............}.............clip.d
9180 69 73 70 6c 61 79 4e 61 6d 65 20 3d 20 61 6e 69 6d 43 6c 69 70 2e 6e 61 6d 65 3b 0a 20 20 20 20 isplayName.=.animClip.name;.....
91a0 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 ....}..........///.<summary>....
91c0 20 20 20 20 20 2f 2f 2f 20 43 61 6c 6c 65 64 20 62 79 20 74 68 65 20 54 69 6d 65 6c 69 6e 65 20 .....///.Called.by.the.Timeline.
91e0 45 64 69 74 6f 72 20 74 6f 20 67 61 74 68 65 72 20 70 72 6f 70 65 72 74 69 65 73 20 72 65 71 75 Editor.to.gather.properties.requ
9200 69 72 69 6e 67 20 70 72 65 76 69 65 77 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d iring.preview..........///.</sum
9220 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 64 mary>.........///.<param.name="d
9240 69 72 65 63 74 6f 72 22 3e 54 68 65 20 50 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 20 69 6e irector">The.PlayableDirector.in
9260 76 6f 6b 69 6e 67 20 74 68 65 20 70 72 65 76 69 65 77 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 voking.the.preview</param>......
9280 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 64 72 69 76 65 72 22 3e 50 72 6f 70 ...///.<param.name="driver">Prop
92a0 65 72 74 79 43 6f 6c 6c 65 63 74 6f 72 20 75 73 65 64 20 74 6f 20 67 61 74 68 65 72 20 70 72 65 ertyCollector.used.to.gather.pre
92c0 76 69 65 77 61 62 6c 65 20 70 72 6f 70 65 72 74 69 65 73 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 viewable.properties</param>.....
92e0 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 47 61 74 68 65 72 50 ....public.override.void.GatherP
9300 72 6f 70 65 72 74 69 65 73 28 50 6c 61 79 61 62 6c 65 44 69 72 65 63 74 6f 72 20 64 69 72 65 63 roperties(PlayableDirector.direc
9320 74 6f 72 2c 20 49 50 72 6f 70 65 72 74 79 43 6f 6c 6c 65 63 74 6f 72 20 64 72 69 76 65 72 29 0a tor,.IPropertyCollector.driver).
9340 20 20 20 20 20 20 20 20 7b 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 ........{.#if.UNITY_EDITOR......
9360 20 20 20 20 20 20 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 56 .......m_SceneOffsetPosition.=.V
9380 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 63 65 6e 65 ector3.zero;.............m_Scene
93a0 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 20 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 3b 0a 0a OffsetRotation.=.Vector3.zero;..
93c0 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d 61 74 6f 72 20 3d 20 47 65 74 42 69 ............var.animator.=.GetBi
93e0 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 69 66 20 nding(director);.............if.
9400 28 61 6e 69 6d 61 74 6f 72 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 (animator.==.null)..............
9420 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d ...return;..............var.anim
9440 43 6c 69 70 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 3e 28 Clips.=.new.List<AnimationClip>(
9460 74 68 69 73 2e 63 6c 69 70 73 2e 4c 65 6e 67 74 68 20 2b 20 32 29 3b 0a 20 20 20 20 20 20 20 20 this.clips.Length.+.2);.........
9480 20 20 20 20 47 65 74 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 73 28 61 6e 69 6d 43 6c 69 70 73 29 ....GetAnimationClips(animClips)
94a0 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 61 73 48 75 6d 61 6e 4d 6f 74 69 6f ;..............var.hasHumanMotio
94c0 6e 20 3d 20 61 6e 69 6d 43 6c 69 70 73 2e 45 78 69 73 74 73 28 63 6c 69 70 20 3d 3e 20 63 6c 69 n.=.animClips.Exists(clip.=>.cli
94e0 70 2e 68 75 6d 61 6e 4d 6f 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 p.humanMotion);..............m_S
9500 63 65 6e 65 4f 66 66 73 65 74 50 6f 73 69 74 69 6f 6e 20 3d 20 61 6e 69 6d 61 74 6f 72 2e 74 72 ceneOffsetPosition.=.animator.tr
9520 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 ansform.localPosition;..........
9540 20 20 20 6d 5f 53 63 65 6e 65 4f 66 66 73 65 74 52 6f 74 61 74 69 6f 6e 20 3d 20 61 6e 69 6d 61 ...m_SceneOffsetRotation.=.anima
9560 74 6f 72 2e 74 72 61 6e 73 66 6f 72 6d 2e 6c 6f 63 61 6c 45 75 6c 65 72 41 6e 67 6c 65 73 3b 0a tor.transform.localEulerAngles;.
9580 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 64 65 66 61 75 6c 74 20 70 .............//.Create.default.p
95a0 6f 73 65 20 63 6c 69 70 20 66 72 6f 6d 20 63 6f 6c 6c 65 63 74 65 64 20 70 72 6f 70 65 72 74 69 ose.clip.from.collected.properti
95c0 65 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 73 48 75 6d 61 6e 4d 6f 74 69 6f es.............if.(hasHumanMotio
95e0 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 69 6d 43 6c 69 70 73 2e 41 64 64 n).................animClips.Add
9600 28 47 65 74 44 65 66 61 75 6c 74 48 75 6d 61 6e 6f 69 64 43 6c 69 70 28 29 29 3b 0a 0a 20 20 20 (GetDefaultHumanoidClip());.....
9620 20 20 20 20 20 20 20 20 20 76 61 72 20 62 69 6e 64 69 6e 67 73 20 3d 20 41 6e 69 6d 61 74 69 6f .........var.bindings.=.Animatio
9640 6e 50 72 65 76 69 65 77 55 74 69 6c 69 74 69 65 73 2e 47 65 74 42 69 6e 64 69 6e 67 73 28 61 6e nPreviewUtilities.GetBindings(an
9660 69 6d 61 74 6f 72 2e 67 61 6d 65 4f 62 6a 65 63 74 2c 20 61 6e 69 6d 43 6c 69 70 73 29 3b 0a 0a imator.gameObject,.animClips);..
9680 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 61 63 68 65 64 50 72 6f 70 65 72 74 69 65 73 43 6c ............m_CachedPropertiesCl
96a0 69 70 20 3d 20 41 6e 69 6d 61 74 69 6f 6e 50 72 65 76 69 65 77 55 74 69 6c 69 74 69 65 73 2e 43 ip.=.AnimationPreviewUtilities.C
96c0 72 65 61 74 65 44 65 66 61 75 6c 74 43 6c 69 70 28 61 6e 69 6d 61 74 6f 72 2e 67 61 6d 65 4f 62 reateDefaultClip(animator.gameOb
96e0 6a 65 63 74 2c 20 62 69 6e 64 69 6e 67 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 6e 69 ject,.bindings);.............Ani
9700 6d 61 74 69 6f 6e 50 72 65 76 69 65 77 55 74 69 6c 69 74 69 65 73 2e 50 72 65 76 69 65 77 46 72 mationPreviewUtilities.PreviewFr
9720 6f 6d 43 75 72 76 65 73 28 61 6e 69 6d 61 74 6f 72 2e 67 61 6d 65 4f 62 6a 65 63 74 2c 20 62 69 omCurves(animator.gameObject,.bi
9740 6e 64 69 6e 67 73 29 3b 20 2f 2f 20 66 61 73 74 65 72 20 74 6f 20 70 72 65 76 69 65 77 20 66 72 ndings);.//.faster.to.preview.fr
9760 6f 6d 20 63 75 72 76 65 73 20 74 68 65 6e 20 61 6e 20 61 6e 69 6d 61 74 69 6f 6e 20 63 6c 69 70 om.curves.then.an.animation.clip
9780 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 65 66 61 75 6c 74 50 6f 73 65 43 6c 69 70 20 3d .............m_DefaultPoseClip.=
97a0 20 68 61 73 48 75 6d 61 6e 4d 6f 74 69 6f 6e 20 3f 20 47 65 74 44 65 66 61 75 6c 74 48 75 6d 61 .hasHumanMotion.?.GetDefaultHuma
97c0 6e 6f 69 64 43 6c 69 70 28 29 20 3a 20 6e 75 6c 6c 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 noidClip().:.null;.#endif.......
97e0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 ..}..........///.<summary>......
9800 20 20 20 2f 2f 2f 20 47 61 74 68 65 72 20 61 6c 6c 20 74 68 65 20 61 6e 69 6d 61 74 69 6f 6e 20 ...///.Gather.all.the.animation.
9820 63 6c 69 70 73 20 66 6f 72 20 74 68 69 73 20 74 72 61 63 6b 0a 20 20 20 20 20 20 20 20 2f 2f 2f clips.for.this.track.........///
9840 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e .</summary>.........///.<param.n
9860 61 6d 65 3d 22 61 6e 69 6d 43 6c 69 70 73 22 3e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 ame="animClips"></param>........
9880 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 47 65 74 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 73 28 .private.void.GetAnimationClips(
98a0 4c 69 73 74 3c 41 6e 69 6d 61 74 69 6f 6e 43 6c 69 70 3e 20 61 6e 69 6d 43 6c 69 70 73 29 0a 20 List<AnimationClip>.animClips)..
98c0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 .......{.............foreach.(va
98e0 72 20 63 20 69 6e 20 63 6c 69 70 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 r.c.in.clips).............{.....
9900 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 20 3d 20 63 2e 61 73 73 65 74 20 61 73 20 41 ............var.a.=.c.asset.as.A
9920 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 3b 0a 20 20 20 20 20 20 20 20 20 nimationPlayableAsset;..........
9940 20 20 20 20 20 20 20 69 66 20 28 61 20 21 3d 20 6e 75 6c 6c 20 26 26 20 61 2e 63 6c 69 70 20 21 .......if.(a.!=.null.&&.a.clip.!
9960 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 61 6e 69 6d =.null).....................anim
9980 43 6c 69 70 73 2e 41 64 64 28 61 2e 63 6c 69 70 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d Clips.Add(a.clip);.............}
99a0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 ..............if.(m_InfiniteClip
99c0 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 61 6e 69 6d 43 6c .!=.null).................animCl
99e0 69 70 73 2e 41 64 64 28 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 70 29 3b 0a 0a 20 20 20 20 20 20 ips.Add(m_InfiniteClip);........
9a00 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 63 68 69 6c 64 54 72 61 63 6b 20 69 6e ......foreach.(var.childTrack.in
9a20 20 47 65 74 43 68 69 6c 64 54 72 61 63 6b 73 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b .GetChildTracks()).............{
9a40 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d 43 68 69 6c 64 54 72 .................var.animChildTr
9a60 61 63 6b 20 3d 20 63 68 69 6c 64 54 72 61 63 6b 20 61 73 20 41 6e 69 6d 61 74 69 6f 6e 54 72 61 ack.=.childTrack.as.AnimationTra
9a80 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 6d 43 68 69 6c ck;.................if.(animChil
9aa0 64 54 72 61 63 6b 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 dTrack.!=.null).................
9ac0 20 20 20 20 61 6e 69 6d 43 68 69 6c 64 54 72 61 63 6b 2e 47 65 74 41 6e 69 6d 61 74 69 6f 6e 43 ....animChildTrack.GetAnimationC
9ae0 6c 69 70 73 28 61 6e 69 6d 43 6c 69 70 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 lips(animClips);.............}..
9b00 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 63 61 6c 63 75 6c 61 74 65 20 77 .......}..........//.calculate.w
9b20 68 69 63 68 20 6f 66 66 73 65 74 20 6d 6f 64 65 20 74 6f 20 61 70 70 6c 79 0a 20 20 20 20 20 20 hich.offset.mode.to.apply.......
9b40 20 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 20 47 65 74 4f 66 66 73 65 74 4d 6f 64 ..AppliedOffsetMode.GetOffsetMod
9b60 65 28 47 61 6d 65 4f 62 6a 65 63 74 20 67 6f 2c 20 62 6f 6f 6c 20 61 6e 69 6d 61 74 65 73 52 6f e(GameObject.go,.bool.animatesRo
9b80 6f 74 54 72 61 6e 73 66 6f 72 6d 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 otTransform).........{..........
9ba0 20 20 20 69 66 20 28 21 61 6e 69 6d 61 74 65 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 29 0a 20 ...if.(!animatesRootTransform)..
9bc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 69 65 64 4f 66 66 ...............return.AppliedOff
9be0 73 65 74 4d 6f 64 65 2e 4e 6f 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 3b 0a 0a 20 20 20 20 20 20 setMode.NoRootTransform;........
9c00 20 20 20 20 20 20 69 66 20 28 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 20 3d 3d 20 54 72 61 63 6b ......if.(m_TrackOffset.==.Track
9c20 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 65 74 73 29 0a 20 20 Offset.ApplyTransformOffsets)...
9c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 69 65 64 4f 66 66 73 ..............return.AppliedOffs
9c60 65 74 4d 6f 64 65 2e 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 3b 0a 0a 20 20 20 20 20 20 20 etMode.TransformOffset;.........
9c80 20 20 20 20 20 69 66 20 28 6d 5f 54 72 61 63 6b 4f 66 66 73 65 74 20 3d 3d 20 54 72 61 63 6b 4f .....if.(m_TrackOffset.==.TrackO
9ca0 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 20 20 20 ffset.ApplySceneOffsets)........
9cc0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 28 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 50 .........return.(Application.isP
9ce0 6c 61 79 69 6e 67 29 20 3f 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e laying).?.AppliedOffsetMode.Scen
9d00 65 4f 66 66 73 65 74 20 3a 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e eOffset.:.AppliedOffsetMode.Scen
9d20 65 4f 66 66 73 65 74 45 64 69 74 6f 72 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 eOffsetEditor;..............if.(
9d40 48 61 73 43 6f 6e 74 72 6f 6c 6c 65 72 28 67 6f 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b HasController(go)).............{
9d60 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 70 70 6c 69 63 61 74 69 6f .................if.(!Applicatio
9d80 6e 2e 69 73 50 6c 61 79 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n.isPlaying)....................
9da0 20 72 65 74 75 72 6e 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e 65 4f .return.AppliedOffsetMode.SceneO
9dc0 66 66 73 65 74 4c 65 67 61 63 79 45 64 69 74 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ffsetLegacyEditor;..............
9de0 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f 64 65 2e 53 63 65 6e ...return.AppliedOffsetMode.Scen
9e00 65 4f 66 66 73 65 74 4c 65 67 61 63 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 eOffsetLegacy;.............}....
9e20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 41 70 70 6c 69 65 64 4f 66 66 73 65 74 4d 6f ..........return.AppliedOffsetMo
9e40 64 65 2e 54 72 61 6e 73 66 6f 72 6d 4f 66 66 73 65 74 4c 65 67 61 63 79 3b 0a 20 20 20 20 20 20 de.TransformOffsetLegacy;.......
9e60 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6c 20 41 6e 69 6d 61 ..}..........internal.bool.Anima
9e80 74 65 73 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 tesRootTransform().........{....
9ea0 20 20 20 20 20 20 20 20 20 2f 2f 20 69 6e 66 69 6e 69 74 65 20 6d 6f 64 65 0a 20 20 20 20 20 20 .........//.infinite.mode.......
9ec0 20 20 20 20 20 20 69 66 20 28 41 6e 69 6d 61 74 69 6f 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 ......if.(AnimationPlayableAsset
9ee0 2e 48 61 73 52 6f 6f 74 54 72 61 6e 73 66 6f 72 6d 73 28 6d 5f 49 6e 66 69 6e 69 74 65 43 6c 69 .HasRootTransforms(m_InfiniteCli
9f00 70 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 20 74 72 75 65 3b p)).................return.true;
9f20 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 63 6c 69 70 20 6d 6f 64 65 0a 20 20 20 20 20 ..............//.clip.mode......
9f40 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 63 20 69 6e 20 47 65 74 43 6c 69 70 .......foreach.(var.c.in.GetClip
9f60 73 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 20 s()).............{..............
9f80 20 20 20 76 61 72 20 61 70 61 20 3d 20 63 2e 61 73 73 65 74 20 61 73 20 41 6e 69 6d 61 74 69 6f ...var.apa.=.c.asset.as.Animatio
9fa0 6e 50 6c 61 79 61 62 6c 65 41 73 73 65 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nPlayableAsset;.................
9fc0 69 66 20 28 61 70 61 20 21 3d 20 6e 75 6c 6c 20 26 26 20 61 70 61 2e 68 61 73 52 6f 6f 74 54 72 if.(apa.!=.null.&&.apa.hasRootTr
9fe0 61 6e 73 66 6f 72 6d 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 ansforms).....................re
a000 74 75 72 6e 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 turn.true;.............}........
a020 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 ......return.false;.........}...
a040 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 00 00 00 ..}.}...........................
a060 41 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 00 00 14 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e AnimationTrack......UnityEngine.
a080 54 69 6d 65 6c 69 6e 65 Timeline