Adding a Transition
1
Create a new script and select Transition as the type.
2
Add the script to your artboard the same way you add other scripts to your scene.
3
Add component instances as children of the Transition. Only component instances can be switched between. Other children stay in place.
Using a view model list
You can also add children from a view model list. Select the Transition and use Source in the Inspector to bind a list. Each item in the list becomes an extra child the Transition can switch between, after the component instances you added in the Hierarchy.Anatomy of a Transition script
New Transition scripts start with a crossfade:changedruns when the active child changes. Reset your progress here.advanceruns every frame while the transition is running. Returnfalsewhen it’s done, and the Transition goes back to drawing the active child normally.drawdraws the two children. Wrap eachchild:draw(renderer)in renderer state, such as opacity, transforms, or clipping, to build the effect.