Skip to content

Commit

Permalink
consider clipIn and timescale in timeline setup helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Jan 6, 2023
1 parent 765102d commit c291169
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void OnWizardOtherButton()
lipsyncClip.displayName = audioClip.displayName;
lipsyncClip.start = audioClip.start;
lipsyncClip.duration = audioClip.duration;
lipsyncClip.clipIn = audioClip.clipIn;
lipsyncClip.timeScale = audioClip.timeScale;

var lipsyncClipAsset = lipsyncClip.asset as Timeline.uLipSyncClip;

Expand Down
84 changes: 33 additions & 51 deletions Assets/uLipSync/Samples/06. Timeline/Timeline.playable
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MonoBehaviour:
- m_Version: 1
m_Start: 2.0833333333333335
m_ClipIn: 0
m_Asset: {fileID: 987254983362623525}
m_Asset: {fileID: -3594420794378161165}
m_Duration: 2.7565078735351567
m_TimeScale: 1
m_ParentTrack: {fileID: -8863445692703013094}
Expand Down Expand Up @@ -93,7 +93,7 @@ MonoBehaviour:
- m_Version: 1
m_Start: 6.016666666666667
m_ClipIn: 0
m_Asset: {fileID: -687985189067071109}
m_Asset: {fileID: -1205239120068794247}
m_Duration: 2.647074829931973
m_TimeScale: 1
m_ParentTrack: {fileID: -8863445692703013094}
Expand Down Expand Up @@ -259,25 +259,7 @@ MonoBehaviour:
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
Expand Down Expand Up @@ -395,6 +377,21 @@ MonoBehaviour:
m_OpenClipOffsetRotation: {x: 0, y: 0, z: 0, w: 1}
m_Rotation: {x: 0, y: 0, z: 0, w: 1}
m_ApplyOffsets: 0
--- !u!114 &-3594420794378161165
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a26d8e83b7dde433fa66b6cb4b73fae5, type: 3}
m_Name: uLipSyncClip
m_EditorClassIdentifier:
bakedData: {fileID: 11400000, guid: 5c100bdf4c65f4026b28a10c73c2def3, type: 2}
volume: 1
timeOffset: 0
--- !u!114 &-1620895512016643328
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -417,6 +414,21 @@ MonoBehaviour:
m_Loop: 0
m_Version: 1
m_Rotation: {x: 0, y: 0, z: 0, w: 1}
--- !u!114 &-1205239120068794247
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a26d8e83b7dde433fa66b6cb4b73fae5, type: 3}
m_Name: uLipSyncClip
m_EditorClassIdentifier:
bakedData: {fileID: 11400000, guid: 378122b788ffb43b8b416fc3a37497f4, type: 2}
volume: 1
timeOffset: 0
--- !u!114 &-859302983170443587
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -458,21 +470,6 @@ MonoBehaviour:
m_OpenClipOffsetRotation: {x: 0, y: 0, z: 0, w: 1}
m_Rotation: {x: 0, y: 0, z: 0, w: 1}
m_ApplyOffsets: 0
--- !u!114 &-687985189067071109
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a26d8e83b7dde433fa66b6cb4b73fae5, type: 3}
m_Name: uLipSyncClip
m_EditorClassIdentifier:
bakedData: {fileID: 11400000, guid: 378122b788ffb43b8b416fc3a37497f4, type: 2}
volume: 1
timeOffset: 0
--- !u!114 &-335420224218966511
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -519,21 +516,6 @@ MonoBehaviour:
m_ScenePreview: 1
m_DurationMode: 0
m_MarkerTrack: {fileID: 0}
--- !u!114 &987254983362623525
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a26d8e83b7dde433fa66b6cb4b73fae5, type: 3}
m_Name: uLipSyncClip
m_EditorClassIdentifier:
bakedData: {fileID: 11400000, guid: 5c100bdf4c65f4026b28a10c73c2def3, type: 2}
volume: 1
timeOffset: 0
--- !u!114 &2051193541619233645
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down

0 comments on commit c291169

Please sign in to comment.