- Home /
 
 
               Question by 
               salepaun · May 07, 2020 at 12:57 PM · 
                editorinspectoranimation clip  
              
 
              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) 
 
                 
                animationpreview.png 
                (154.9 kB) 
               
 
              
               Comment
              
 
               
              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?
Your answer