⌚
Timeflow
  • ⌚Introduction
  • 📗User Guide
    • â–ļī¸Getting Started
      • ✅Requirements
      • âŦ‡ī¸Installation
      • 🚀Quick Start
      • âœī¸Workflow
      • đŸŽŦRender Pipeline
      • â¯ī¸Editor vs Runtime
      • đŸĻŋHow it Works
      • â›‘ī¸Potential Issues
      • ⚡Optimization
      • 🔨3rd Party Tools
      • đŸ”ĸUpgrading Guide
    • â„šī¸Timeflow Editor
      • đŸŽ›ī¸Menu Bar
      • â˛ī¸Time
      • Local Time Scope
      • 🧰Work Area
      • âš™ī¸Settings
      • âŗUpdate Settings
      • đŸ“ēDisplay Lists
      • đŸ”ģMarkers
      • đŸ”ĩObject
      • 🏭Managed Objects
      • ⚡Quick Select Objects
      • âš’ī¸Tools
    • đŸŽŦTimeflow View
      • 🔩Toolbar
        • 🔑Auto Keyframing
        • â¯ī¸Play Controls
        • đŸĨ…Work Area
        • â¯ī¸Current Time
        • đŸŽŧMusical Timing
        • 🌐Grid and Snap
        • 🔸Keyframe Values
        • đŸ”ģMarkers
      • â˛ī¸Timeline
      • 📐Time Navigation
      • Local Time Scope
      • 🎏Track View
      • â†˜ī¸Selection
      • 📰Object Panel
      • đŸ“ēDisplay Lists
      • 🍱Channels
      • đŸŖProperties
      • 🔗Channel Link
      • đŸšĨSwitches
      • 📅Values Column
      • đŸ›¤ī¸Tracks
      • 🔸Keyframes
      • đŸ“ļAlignment Tools
      • ⌛Time Offset
      • đŸ”ĸInfo Panel
      • 📉Graph View
      • âœ‚ī¸Keyframe Tools
    • 🍰Menus & Shortcuts
      • 📃Context Menus
        • â†–ī¸Select Menu
        • 📰Object Menu
        • 🍱Channel Menu
        • đŸ›¤ī¸Tracks Menu
        • 🔸Keyframes Menu
        • đŸ”ģMarkers Menu
        • 📰View Menu
        • 📰Events Menu
        • đŸĨ…Work Area Menu
      • đŸ—ƒī¸File Menu
      • âš’ī¸Timeflow Menu
        • đŸ•ēAdd Behavior
        • đŸ”ļAnimation
        • 🍱Composition
        • đŸ“ēDisplay
        • ⏊Jump To
        • 👨‍đŸ‘Ļ‍đŸ‘ĻHierarchy
        • 🌐Mesh
        • 👉Select
        • 📚Tracks
        • 🌈Track Colors
        • â†”ī¸Transform
        • đŸ‘ī¸Visibility
        • đŸ› ī¸Editor
      • đŸ”ĩGame Objects Menu
      • đŸŽ›ī¸Presets
      • âš™ī¸Preferences
        • Assets
        • ⌛Time
        • đŸŗī¸â€đŸŒˆTracks
        • âšĒObjects
        • 🧮Channels
        • đŸ”ļKeyframes
        • 🔠Input
        • đŸ“ĨImport
        • đŸ–ŧī¸Rendering
        • đŸŽ›ī¸Overrides
        • 🍱Extras
      • *ī¸âƒŖKeyboard Shortcuts
        • Managing Shortcuts
      • âœ´ī¸Quick Menu
  • Reference
    • đŸ”ĩTimeflow Object
      • đŸĸTracks
      • 🏭Behaviors
      • ⏰Events
      • đŸ—ƒī¸Channels
    • 💃Timeflow Controller
      • đŸŽžī¸Timeflow Playback
    • đŸĒ„Behaviors
      • đŸŽžī¸Animation
        • 🔸Keyframer
        • â†”ī¸Tween
        • 🔀Blend
        • đŸŽĸMotion Path
        • đŸ‘¯Animation Clips
        • 🌴Animator Blend Trees
        • 😁Blend Shapes
      • 🤖Automation
        • 🛸Auto Bank
        • 🧭Auto Rotate
        • 📐Distance
        • ⏰Event
        • đŸ›Šī¸Flyby
        • 🏃Follow
        • 👀Look At
        • đŸŽ¯Look At Target
        • 🎲Noise
        • 🚊Place On Path
        • đŸī¸Place On Surface
      • 🔊Audio
        • 🔊Audio Track
        • đŸŽŧAudio Spectrum
        • đŸŽĩAudio Sample
        • đŸŽ™ī¸Audio Reactive
      • 🎹MIDI
        • 🎹Midi File
        • đŸĨMidi Tween
        • 📡Midi Receiver
          • đŸŽ›ī¸Minis Setup (New Input System)
          • đŸšĨMidiJack Setup (Legacy Input)
      • 🏁Rendering
        • đŸŽžī¸Render To Disk
        • 📋Render Queue
        • đŸ“Ŋī¸Video Encoding
        • 💡Tips & Optimizations
        • âēī¸Unity Recorder
      • 🔧Tools
        • â„šī¸Animator Info
        • 🧮Align Children
        • đŸ’ŦComment
        • #ī¸âƒŖFPS Counter
        • 📈Graph
        • 🔗Property Link
        • 🔄Rotator
        • ✨Particle System Update
        • 🌈Trail Renderer Update
        • đŸ“ēVideo Player Update
    • đŸ—ƒī¸Precomposing
    • 🏭Prefabs
    • 🎨Advanced Presets
    • đŸŽ›ī¸Editor Overrides
      • 🏹Transform Editor Override
    • 🔌Integrations
      • đŸ§™â€â™‚ī¸Adventure Creator
      • đŸŽ›ī¸MIDI Jack | Minis
      • đŸ¤ēSpine Animation
      • đŸ“Ŋī¸Unity Timeline
      • ➰Unity Splines
    • đŸĒSamples
      • đŸ•šī¸Demo App
      • đŸŽžī¸Cutscenes
      • 🏓Physics
      • 🍧Shader Properties
      • ⚡Visual Effect Graph (VFX)
    • 📖Glossary
    • 📗Scripting
    • đŸ“ŖPublished Works
    • âš ī¸Known Issues
    • 🆘Support
    • đŸ§ĒBeta
    • Roadmap
    • đŸ”ĸVersion History
    • ÂŠī¸Terms & Privacy
Powered by GitBook
On this page
  • Flyby Channel
  • Flyby Editor
  • Positioning Mode
  • At Time
  • Duration
  • Orientation
  • Direction
  • Rotation Channel
  • Velocity Mode
  • Velocity Channel
  • Gizmos in the Scene View
  • Move Tool
  • Rotate Tool
  • Further Possibilities
  • Using Parenting
  • Using Multiple Flybys
  1. Reference
  2. Behaviors
  3. Automation

Flyby

Create flight paths based on destination and trajectory

PreviousEventNextFollow

Last updated 2 years ago

Flyby generates a motion path procedurally based on either a starting position, destination, or midpoint reached at a specific time. The path may be linear with a fixed heading or using an object's rotation to create all sorts of curves and spirals, which would otherwise be difficult to achieve using a or other means.

Flyby does not generate rotation

To add Flyby, right-click on the object in the Timeflow view and select:

Add Automation > Flyby

Flyby Channel

Flyby initially has 1 channel with a single special type of keyframe at the target time. The duration of the flyby is indicated by the bar extending from the keyframe, which may either be centered, before, or after depending on the mode selected.

The keyframe may be selected, moved, and included in edit operations, however cannot be deleted nor can any new keyframes be added to the Flyby channel.

Flyby Editor

Select the game object to view the Flyby settings in the Inspector view.

Positioning Mode

Sets the anchor position and time by which the path is generated.

Position is defined in local coordinates.

The position remains fixed (to the start, end, or midpoint depending on the mode selected) no matter what changes are made to velocity or heading. This anchors the path at the specified position and time making adjustments much easier.

Flyby Position

Generates a path that passes thru the Flyby Position at the designated time.

Flyby mode is best suited for objects that need to meet at a specific point or cross another object. For example, use this to make objects pass by or in front of the camera.

Start Position

Generates a path beginning at the designated time from the Start Position.

This mode is best for paths that require starting at a specific time and place, such as an airplane taking off or a ship leaving a dock.

Destination Position

Generates a path arriving at the End Position at the designated time.

Use this mode to animate objects to a specific location with generated animation leading up to it. This mode is best for objects that animate up to a point and stop or hand off to other animation channels.

At Time

Specifies the time which correlates directly to the keyframe on the channel. How time is used depends on the Positioning Mode as explained above.

Duration

Sets the base duration used for calculating the motion path given the velocity and heading.

Hold In / Out

When enabled, Flyby holds the transform position values outside of the active duration: before the start (Hold In) and after the end (Hold Out). Otherwise if disabled, Flyby is bypassed does not affect the object before/after the duration. This is primarily used to prevent Flyby from overwriting channels before it, to allow another Flyby or other behavior to have full control.

Hold In and Hold Out are depicted in the Track View (as shown above) with a ghosted region extending before and after the duration bar.

Channel Order

Orientation

Sets the overall rotation of the whole path. Use orientation to alter the direction and/or pivot the entire path around the target position.

Orientation does not change the object rotation, only the path, so may result in misalignment. To orient the entire path and object together, use a parent object to rotate and place the path.

Direction

Determines the heading to generate the motion path from. The first six options listed are cardinal directions for creating simple linear paths along an axis (in local space), as shown below.

Reverse

Enable this to flip the direction of travel for the entire path. Toggle Reverse to correct an object traveling backwards.

Reverse flips the approach direction of the object and may have result in mirroring the path spatially.

Custom Direction

Select this mode to enter a specific fixed direction based on a vector heading. This expects a normalized value (adding up to 1) though any value may be used.

Rotation Channel

Note that the selected input channel must be enabled and active to function.

Using this rotation as the input channel for Flyby results in a S shaped curve, following the rotation of the object. Randomization could be added to Tween for more variability, or a keyframed animation channel could be used instead for more control.

Any animation or behavior channel could potentially be used as rotation input.

Time Offset

Shifts the input channel forward or backward in time. If the value is 0, the rotation channel aligns to the Flyby channel as they appear in the Timeflow view, accounting for local and world offsets on each of the channels and objects.

Use Time Offset to look ahead or lag behind the actual rotation of the object. This may be for subtle or accentuated for effect.

Steering

Controls how much rotation affects path curving. The default value is 1, which means every degree of rotation is represented in the curve 1:1.

Lower the steering value to reduce the curviness of a path, or set a higher value (up to 2) to make path curves more eccentric.

Velocity Mode

Determines the speed of the object, affecting the overall distance the path covers.

Constant

Sets a fixed velocity maintained throughout the animation.

Use Constant velocity for trains and planes and other Flybys that don't need any variation in speed.

Start to End

Generates a velocity curve with a beginning, middle, and end. This spans the flyby duration the same way no matter which positioning mode is used.

Enable Ease In Out for smooth quadratic interpolation, or disable it for linear interpolation.

Negative velocity values are allowed and result in objects traveling in reverse. In the generated motion path this appears as a hard angle where the object changes direction.

Animation Curve

The Velocity value is multiplied by the curve.

Click in the Velocity Curve box (green line above) to open the curve editor. Use one of the presets at the bottom or create your own.

Velocity Channel

This method of setting velocity offers the most control with full curve editing in the Timeflow view.

When this mode is selected, a new Velocity channel is automatically added.

Velocity is a standard keyframe channel and can be used as such, including the ability to link it with other channels and full curve editing and looping capabilities. The velocity is measured in world units and controls the speed of the object throughout the path (units per second).

Gizmos in the Scene View

When the game object is selected, Flyby displays its motion path in the Scene view. The position and orientation of the path may be edited using the gizmo handles.

Enable Stay Visible to keep the path displayed no matter if selected or not. However, the move and rotation handles are only displayed for the selected object.

Move Tool

When the Move Tool is selected (in Unity's main toolbar) the Flyby position may be edited using the position handle, as shown below. This works the same as a regular position handle, but sets the Flyby Position, rather than the transform position (which is determined by path interpolation).

Rotate Tool

Further Possibilities

Using Parenting

Flyby works with hierarchical offsets, making it possible to move, rotate, and scale the entire path with the object. Add parent objects as needed to separate and layer transforms.

Avoid Non-Uniform Parent Scaling

If the inherited scale is non-uniform this may initially appear to squash the motion path, but as soon as the vector path is rebuilt it corrects itself to uniform scale. This is due to the way paths are constructed in world space and converted back to local space. Flyby still functions but this is an odd situation best to avoid.

Using Multiple Flybys

Apply more than 1 Flyby to an object to create stack animations end to end or spaced out in time.

The channel order depends on the setting the Timeflow Preferences.

Rotation may be used as input or ignored by Flyby, but it does not directly apply rotation. Flyby sets position only and expects rotation to be handled by other animation channels. To create rotation from a generated path, see .

To generate a path that supports multiple keyframes, see .

Note that channels are processed in the order listed and may result in one channel overwriting others before it. Whether the list displays top-down or first-to-last can be changed in the .

While it may be tempting to animate the Heading (which is possible) it will not produce the results of steering an object as you might expect. Instead, use a .

Generates a motion path using an input channel for rotation to curve the path. This pre-calculates the path by reading the full animation data and applying it over time, relative to the target and selected.

As an example, has been applied to Local Rotation Y to create a simple oscillating movement from -90 to 90 degrees.

When the flyby duration extends beyond the time of the input channel, the path flattens out straight, as shown below. This isn't usually a problem since it is likely outside of the timeline. However, if this is encountered it could be fixed using time offsets.

Also see for channels and objects.

When using Flyby mode, use the Midpoint velocity to set the speed of the object at the flyby position. This can be a value of 0 to come to a full stop. However, to have more control over the timing it may be better to use or .

This is the point at which velocity is 0, as it transitions from a positive to negative value. For more control over velocity, see below.

Uses a to map the velocity over the duration of the path.

Switch to the Rotate Tool to adjust the path . This affects the overall direction of the path, however does not rotate the object. To move and rotate a whole flyby path and object at once, see the tips below on .

With the power of simple keyframing and combining Flyby with other generative behaviors such as , it's possible to create unlimited variations with complex results quickly and easily.

When using multiple Flybys, in the order desired.

đŸĒ„
🤖
đŸ›Šī¸
Auto Rotate
Motion Path
Tween
Time Offset
Unity Animation Curve
Tween
Rotation Channel
Position
Positioning Mode
Animation Curve
Velocity Channel
Velocity Channel
Orientation
parenting
Motion Path
Timeflow Preferences
arrange the channels
An example Flyby path displayed in the Scene view. The path is auto-generated from the object's rotation and velocity.
When a new Flyby instance is added, its keyframe is set to the current time.
Default settings for Flyby.
Use the Position Mode drop-down menu to select 1 of 3 modes, described below.
The duration is centered on the target time, leading into and out of the flyby position.
The path starts at the specified time, animating from there for the duration.
The path ends at the specified time, animating the specified duration up to that point.
Flyby 1 has disabled Hold Out while Flyby 2 has disabled Hold In, so the two meet without overwriting one another.
Flyby generates a straight motion path along the heading direction selected.
The heading is a direction along each axis, not a rotation value.
Any channel that animates rotation may be used, either single attribute or combined.
Flyby path generated from Tween rotation channel.
An example where the object starts from a stand still (0 velocity), accelerates to 10 units per second, and then comes to full stop at the end.
The curve represents the velocity over the full duration of the path.
The velocity channel may have any number of keyframes and use of all keyframe/curve options.
Click and drag the position handle to move the entire Flyby path, anchored at the Position.
Mu
Add to the Velocity channel and/or use .
Using to randomize rotation and Velocity curve to quickly create a complex path.
keyframes
Channel Link
Tween
looping