Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Get this.gameObject from BasicPlayableBehaviour

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

  1. tcmeric

    tcmeric

    Joined:
    Dec 21, 2016
    Posts:
    188
    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.
     
unityunity