Unity TimeLine丨B. Racing cutscenes and video display

Click me to watch the video

TimeLine source file: if necessary, please leave a message email


Steps to make a car cutscene:


1. Import the racing plugin and open RCC City in its Demo Scenes


2. Create a new TimeLine GameObject, define and run the game to play TimeLine


3. Add BGM to TimeLine, add TimeLine GameObject to TimeLine's audio, select Create AudioSource On TimeLine to add AudioSource component to TimeLine GameObject, and assign audio to AudioSource-AudioClip in AudioSource component

Or add Component directly, drag it to the video TimeLine, and assign the audio to AudioSource

The audio is controlled and played through the AudioSource component, and the Play On Awake of the component is checked to start running. One of its functions is that when Mute locks the Track, if Play On Awake is not checked, the music will not be played, otherwise the music will be played. 


4. Add EngineStart engine sound

    Add a second AudioSource component to the TimeLine GameObject, assign the EngineStart sound to it, and drag the sound to TimeLine for related settings


5. Add a camera to complete the following effects, refer to the link



6. Add fading and fading effect

a. Create a new Image UI, set the anchor ALT to full screen



b. The color is adjusted to black


c. Add TimeLine (Animation Track, not Activation Track) to Image, record the A value of Image-Color, complete the transition from black to transparent at the beginning of the animation, and follow the transparent-black-transparent effect when the animation is switched.

Note: A track cannot be too long, otherwise the track will not be played, and the TimeLine will not end



GIF effect display:



Links to other functions of the animation system: Animation system

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324520651&siteId=291194637