Search Unity

Get this.gameObject from BasicPlayableBehaviour

Discussion in 'Timeline' started by tcmeric, Jul 18, 2017.

  1. tcmeric


    Dec 21, 2016
    Newbie question.

    I have a simple BasicPlayableBehaviour script that I am running on the timeline. However, I need it to reference itself (specifically the gameobject holding the timeline component), to pass this to another script. In mono, we can simply use this.gameObject. However, in this case I think we need to first find the playable graph, then the timeline that is playing the graph, then the gameObject holding that component?

    I am at loss on how to do this after looking through the documentation and examples. Thank you.