The Audio and Time example displays the Audio Visualizer Component in three places on three different World Space Canvases attached to three different GameObjects. Each GameObject has an Audio Source attached.
Trigger (on Key down 1) plays the Audio source. This Instruction allows for a Volume to be set and for the total play time to be displayed if required.
This Trigger also calls the Action set, Actions Display Current 1. This Instruction, Display Audio Time, is in a separate Action to allow for it to be restarted every 1 second, and hance displays the current play head time of the audio clip.
Triggers (on Key down 2 and 3) do the same for the other Game Object Canvases.
The On Start Trigger moves the Player Character to Marker 1 then to Marker 2, and then restarts. However, around the Cube in the middle, is a Sphere Collider with an on Player enter Trigger. This will Jump the Player over the Cube, and invoke Bullet Time for the player landing.
The Bullet Time Scale settings will need to be experimented with to provide the effect that you want.
All Triggers have been labeled accordingly in the Unity Hierarchy.
Pivec Labs |
||
|
||
|
||
|
||
|
|
|
Since |
2005 |
|
Awards |
||
Website |
||
|
|
|
|
|
|
ALL RIGHTS RESERVED © 2022 |