Marius Chiriac
    • Posts
    • Client Server
      • Cookies in development
      • Node: Migrate JS to TS
      • Stripe payment React-Flask
      • Paypal payment React-Flask
    • React
      • React: Migrate JS to TS
    • Unity
      • Design Patterns
        • Chain of Responsibility
        • Command
        • Object Pool
        • Component
      • javascript in WEBGL build
      • Timeline
        • Change timeline dinamically
        • Concatenate Timeline
        • Unity Timeline
    Concatenate Timeline

    Someway you will need split one timeline into multiple in order to execute different timeline variants with less assets on the bag. Coroutine that plays 2 timeline at correct time playableDirector.playableAsset = info.timeline[0]; PrepareTimeline(); playableDirector.Play(); yield return new WaitForSeconds((float)playableDirector.playableAsset.duration * Time.timeScale); playableDirector.playableAsset = info.timeline[1]; PrepareTimeline(); playableDirector.Play(); playableDirector is the reference to the PlayableDirector unity component. PrepareTimeline() is a method that fill the timeline’s clips with the instanced gameobjects. playableDirector.

    June 9, 2021 Read
    Unity Timeline

    Timeline is a powerfull unity tool that permit to create a temporal sequence of instructions. Create Timeline Asset In Project right click and select Create>Timeline That operation create a *.playable file that represent a timeline asset. Timeline Tracks Here is the official doc about tracks On the left side of a Timeline we can see which tracks are used. A Track is a type of clips and is shown in horizontal.

    June 9, 2021 Read
    Change timeline dinamically

    To achieve this result, we need a controller that hold the PlayableDirector and fill the current/correct value to the interested Timeline before to play it. We will use custom PlayableAsset and PlayableBehaviour to add new behaviour into the Timeline Create Custom Timeline Track Create the TrackAsset to create your custom line track in the timeline, so you will be able to right-click the left side timeline’s panel to see the action “MovementTrack” or what else you named your TrackAsset.

    December 3, 2020 Read
    Navigation
    • About
    • Skills
    • Experiences
    • Recent Posts
    • Projects
    Contact me:
    • Email: redarked@gmail.com
    • Phone: +39 3880947809

    Toha
    © 2021 Marius Chiriac.
    Powered by Hugo Logo