Search Unity

Copying playable director's exposed reference table to another

Discussion in 'Timeline' started by Solovykh, Nov 9, 2017.

  1. Solovykh

    Solovykh

    Joined:
    Aug 28, 2017
    Posts:
    16
    I'm trying to copy timelines from one director to another director. I've successfully transferred the track bindings. But to transfer the exposed references I was thinking about doing something like this:

    Code (CSharp):
    1. destinationPlayableDirector.playablegraph.SetResolver(sourcePlayableDirector.playablegraph.GetResolver())
    2.  
    But that doesn't seem to work even if I do

    destinationPlayableDirector.Play()
    destinationPlayableDirector.Pause()

    to make the playable graph valid. Any ideas?