Search Unity

OnBehaviourPlay not called in editor

Discussion in 'Timeline' started by edwon, Jan 4, 2018.

  1. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    266
    If you have a custom clip that starts on the very first frame of the track, OnBehaviourPlay is not called.

    This is only if you're in edit mode and hit play on the timeline (not the game itself).

    (this is on a custom PlayableBehaviour created using the playables wizard)

    This is really annoying because you can't rely on using OnBehviourPlay in edit mode, and we must do alot of our animation in edit mode.

    OnBehaviourPlay is not called on Sprite
    Unity_2018-01-04_13-01-44.png

    OnBehaviourPlay is called on Sprite
    Unity_2018-01-04_13-01-55.png
     
    Threeyes likes this.
  2. Threeyes

    Threeyes

    Joined:
    Jun 19, 2014
    Posts:
    80
    Have the same problem in the Unity2020, is there any solution?