Search Unity

Can someone explain barebones how to do this?

Discussion in 'Timeline' started by MadeFromPolygons, May 25, 2018.

  1. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,977
    I have been working through the playable API examples (using https://github.com/UnityTechnologies/ATerribleKingdom/tree/master/Assets/DefaultPlayables) but am struggling to get a barebones example working for my learning:

    I am trying to create a playable that will allow me to define a transform "target", and when scrubbing through that clip, will cause the transform that is bound to the timeline to look at that target.


    I haved tried pulling apart the transform tween example but I am struggling to understand what references go where.

    I think if someone explained how for this basic example:

    -What references go in the clip, is this where the reference for the "transform to look" goes?
    - What should go in the behaviour, as far as I am aware it should be pretty empty?
    - How to go about actually applying this behaviour in the mixer behaviour. I was trying "transform.lookat" and supplying the target but it does nothing.

    Can anyone explain how to go about these? Would really appreciate it!