Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Converting animation binding to type array for generic function is not working because of Transform

Discussion in 'Animation' started by Ozgekocaoglu, Apr 1, 2022.

  1. Ozgekocaoglu


    Feb 13, 2019
    Hi everyone,
    I'm trying to develop a generic function to convert my animation binding keys to their type and i wanna keep them with using SampleAnimation function. But problem is Transform data. Transform data is not capable converting process using reflection.

    So, how can i convert a Transform to object? And how could i get the all structs between them such as position, rotation etc...