OnBehaviourPlay not called in editor

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
3342359--261028--Unity_2018-01-04_13-01-44.png

OnBehaviourPlay is called on Sprite
3342359--261029--Unity_2018-01-04_13-01-55.png

1 Like

Have the same problem in the Unity2020, is there any solution?