Hello, I would like to get in a script the event whenever we click on the pause button, or the Jump frame button.
I have already manage the Pause button:
private void OnEnable()
{
EditorApplication.playmodeStateChanged += HandleOnPlayModeChanged;
}
private void OnDisable()
{
EditorApplication.playmodeStateChanged -= HandleOnPlayModeChanged;
}
private void HandleOnPlayModeChanged()
{
if (EditorApplication.isPaused)
{
// do stuff when the editor is paused.
}
else
{
// do stuff when the editor is unpaused
}
}
But How to get the "jump frame" button ? Thanks !