Skip to content

Latest commit

 

History

History
96 lines (66 loc) · 4.16 KB

SceneCacheInTimeline.md

File metadata and controls

96 lines (66 loc) · 4.16 KB

Scene Cache In Timeline

  1. Quick Start
  2. Scene Cache Track
  3. Gap Extrapolation
  4. Scene Cache Playable Asset
    1. Key Frame Adjustment
    2. Key Frame Properties
    3. Default Key Frame Shortcuts

Quick Start

Menu

Scene Cache can be controlled via Timeline by performing the following steps:

  1. Open the Timeline window.
  2. In the Timeline Window, click Unity.MeshSync > Scene Cache Track to add a SceneCacheTrack.
  3. Drag and drop the SceneCachePlayer GameObject to the newly added track, which will automatically create a SceneCachePlayableAsset.

To view animation curves of Scene Cache clips, click the Curves icon next to the Track name.

Scene Cache Track

Properties Description
Auto Activate Object Activate the SceneCachePlayer GameObjects of clips in the track when the clip is active, and deactivate it otherwise.

Gap Extrapolation

When Auto Activate Object setting in SceneCacheTrack is turned off, then we can control the SceneCache playback in gaps before or after SceneCache clips in a similar way to setting gap extrapolation for Animation clips using one of the following options:

  1. None (default): undefined.
  2. Hold: hold and show the first/last frame of the Scene Cache in the gap.
  3. Loop: loop the Scene Cache with the same clip duration.
  4. Ping Pong: loop the Scene Cache backwards, then forwards, and so forth, with the same clip duration.
  5. Continue: undefined.

SceneCachePlayableAsset

Properties Description
Scene Cache Player The SceneCachePlayer to be played in Timeline.
Show Key Frame Markers Shows/hides the key frame markers for editing the timing.
Refer to Key Frame Adjustment for more details
Auto Generate Key Frames A section to configure the key frames of the specified duration automatically.
Limited Animation Automatically skip frames if enabled. This property has been replaced by Key Frame Adjustment, and may be removed in later versions.

Key Frame Adjustment

We can modify the timing of the playback by the following steps:

  1. Check the Show Key Frame Markers property.
  2. Add, drag, or delete the key frame markers.
  3. Set the properties of the key frames to configure which frame to show. Refer to Key Frame Properties for more details.

Pressing the curve button next to the track name will open the curve section which allows us to confirm how the playback is being controlled by the clip.

Additionally, if we want to configure the key frames using a certain rule for a specified duration, we can use the Auto Generate Key Frames section to do this automatically.

Key Frame Properties

Properties Description
Mode Continuous: interpolates Frame To Play linearly.
Hold: keep showing Frame To Play to create limited animation.
Frame To Play The frame of the .sc file to show at the timing of the marker.
Note User notes.

Default Key Frame Shortcuts

Shorcut Keys Description
Shift-Tab Change the mode of the selected key frame.
Shift-E Add a new key frame at the playhead location for the selected clip.