âŗUpdate Settings

Update timing for Timeflow behavior components

All objects and behaviors display a similar Update Settings section.

Timeflow offers a variety of options for controlling the frequency of animation updates. This can be set for a whole Timeflow instance, on a TimeflowObject to affect all of its behaviors and channels, or set on specific behaviors as needed.

These settings work in conjunction with the object Track, which may used to block out specific sections of time.

Update Mode

The first drop-down menu sets the Update Mode:

Every Frame

This is the default mode and means that the component receives an update call every frame, as part of Unity's standard Update cycle.

Force Framerate

This forces behaviors to update at the specified framerate. This can be used to create stop motion effects or to reduce the update frequency of behaviors with heavier calculations.

Time Interval

This is similar to Forced Framerate, however the update is based on a specific time interval (in seconds) rather than on the number of frames rendered.

Update After

This mode is used to chain together behaviors in a specific update order. This is useful when one component bases calculations on values generated by another component.

Note that the current behavior updates after the behavior assigned. If the other object becomes inactive, the current object stops receiving update calls.

Explicit

This is used to control updating remotely via script or trigger. This is seldom used and only needed in special cases where a behavior may be controlled by game logic or other input.

Update Method

The second drop-down menu selects the Unity method used for updating. This combines with the settings above for fully customizable timing.

Select from Unity's built-in update methods based on the type of animation being played.

Update

This is the standard update method and should be used for most objects. This is based on Unity's regular Update call.

Late Update

Rather than updating during the standard Update call, this mode executes during LateUpdate after all other objects have been updated. This can be used to force a behavior or object to update after everything else in the scene.

Fixed Update

Using this mode, an object is only updated during FixedUpdate, based on Fixed Timestep in Project Settings > Time. This is primarily used by physics to optimize performance by reducing the number of update calls. However, this can also be used on non-physics based objects too.

Current Time

This is a read-only value to display the local time of the object in the inspector. Normally this time is the same as is shown in the Timeflow view, however if any time offsets are applied to this object or its parents, then the local time displayed may be different than the current time in Timeflow.

Time Scale

This multiplies the playback speed of the behavior or object. For example, a Time Scale value of 2 will cause the playback to be twice as fast.

Time Offset & Scale values are displayed in a separate column which may be expanded by clicking the small arrow icons.

Time Offset

This shifts the local time of the object forward or backward, relative to its parent or world time. This can be used to shift the time of whole objects or groups, while maintaining the relative timing of its keyframes, tracks, and children.

Drag Time Offset

This setting determines the behavior of dragging tracks in the Timeflow view. Normally this option is disabled and tracks are moved independently (like keyframes) without affecting other animations or the object's timing. However, when Drag Time Offset is enabled, dragging the track shifts the time offset for the whole object.

When enabled, tracks may still be dragged even if they are locked since this mode only affects the object's Time Offset and does not change the track itself.

Parent Object

This is a read-only reference to the first TimeflowObject in the object's parents. This is automatically determined by the object's placement in the scene hierarchy.

Timeflow only displays objects with a TimeflowObject component.

When objects are in a contiguous hierarchy (each parent has a Timeflow Object), then Timeflow displays them in the view hierarchically, otherwise they may have to be added to the view separately.

Restore Default Update Settings

Restores the update settings to default. Use this anytime you've made changes and want to restore the original update behavior. This doesn't affect other settings on the behavior.

Additional Notes

Stop Updating Every Frame

To prevent any behavior from automatically updating each frame, the Update mode may be set to Explicit. This means that the behavior only updates when the Refresh button is pressed.

Use Explicit update for any behaviors you may be used for constructive purposes and not for animation. This way you can control when it updates by pressing the refresh button.

Last updated