Slide Transition Animator

To use a transition animator, you first create an instance of it, as described in Using A Transition Animator.

Description

The slide transition animation presents content by sliding it in from an off-screen location. It dismisses content by performing the reverse - sliding it to an off-screen location.

In addition to the presented canvas controller, the presenting canvas controller can also be animated to and from an off-screen location. This gives the appearance of the content sliding out as the presented content slides in.

With the presentingCanvasParallaxScalar property, you can scale the amount by which the presenter moves, creating parallax effects. A value of 1 will animate fully to the off-screen location (no parallax), whilst 0.5 would animate halfway to the off-screen location. A value of 0 has the same effect as disabling animatePresentingCanvas.

A slide transition animator.


Configuration

The configurable properties of a slide transition animator.



Name                                        Description
Duration The duration of the transition.
Curve The animation curve of the transition.
Use Scaled Time Animate with scaled time. By default this transition uses unscaled time - i.e. it won't be affected by changes to 'Time.timeScale'. This allows it to animate when the game is paused, for example. Enable this if you want the transition to be affected by changes to 'Time.timeScale'.
Presented Canvas
Presented Canvas Off Screen Location The off-screen location of the presented canvas.
Presenting Canvas
Animate Presenting Canvas Animate the presenting canvas.
Presenting Canvas Off Screen Location The off-screen location of the presenting canvas.
Presenting Canvas Parallax Scalar The presenting canvas' parallax scalar. A value of 1 will animate fully to the off-screen location (no parallax), whilst 0.5 would animate halfway to the off-screen location.