Animate polyline polyshape handles

Avatar
  • updated
  • Declined

Hiya

Wouldn't it be epic to be able to animate the polyline and polyshape handles, not sure if it deforming the 2d mesh in runtime is at all possible? 

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Declined

unfortunately, this seems to be a limitation of Unity - there is no way to use the animator to animate properties in an array/list :(

there are clunky workarounds if you're up for manually coding a component that has things exposed that you want to animate, and then re-assign it to the polygon on each update, but, unfortunately this isn't something I can cleanly generalize into the built-in components

Avatar
Freya Holmér creator
  • Answer
  • Declined

unfortunately, this seems to be a limitation of Unity - there is no way to use the animator to animate properties in an array/list :(

there are clunky workarounds if you're up for manually coding a component that has things exposed that you want to animate, and then re-assign it to the polygon on each update, but, unfortunately this isn't something I can cleanly generalize into the built-in components

Avatar
byron tik
Quote from Freya Holmér

unfortunately, this seems to be a limitation of Unity - there is no way to use the animator to animate properties in an array/list :(

there are clunky workarounds if you're up for manually coding a component that has things exposed that you want to animate, and then re-assign it to the polygon on each update, but, unfortunately this isn't something I can cleanly generalize into the built-in components

Ok I understand, the complexity now. Thinking further on this, I was considering being able to set morph-targets or working with blend shapes. I saw something here that could be food for thought https://www.youtube.com/watch?v=3N2uLZDNMKU