How can I get the animation preview time from code?

Does anyone know how I can access the animation preview time from code? Animation is a field in a ScriptableObject. (InlineEditor is an OdinInspector attribute)

Hey there! Struggling with the same issue here. I'm currently trying through reflection to dive into the Unity preview window and get some animation info. I'll get back here if I manage to get something working. Did you find another approach in the meantime?

1 Answer

1

Hello @salepaun ,

Click on Window/ Animation/ Animation

then you click on thee object you want to animate and you can see the preview

@wasssim Thanks but that is not what I am looking for. Sorry if I wasn't clear enough, I just edited my question :)