Hey guys,
I am developing some Editor tools for the Inspector and got stuck with the following problem:
I want to call a function on a regular basis that is dependent on “deltaTime” (e.g. if I click a button in the Inspector it has to call an animation function that uses deltaTime and then plays for 30 seconds).
deltaTime seems to be non-available in Editor mode (so execute in Editor doesnt work too). I still can use a fake value, but I need a solution on how to call the animation function on a regular basis.
InvokeRepeating doesnt seem to work for me, also in the Editor class theres no “Update” function that would create the desired effect.
Of course I could do a workaround with ExecuteInEditMode and fake deltaTime, but it seems a little bit “over the top” for such an easy problem.
With kind regards
Johannes
Edit: All I need is Update like from MonoBehaviour, but in Editor Mode.