Animating the Dash Offset parameter on a Line

Avatar
  • updated
  • Answered

Hi!

I want to animate the Dash Offset property on the Line:

Image 218


 To make this sort of effect:

Image 219


But I can't find it in the Animation parameters.

Image 217

Is this something that's possible to do? Thank you!

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
  • Answered

this is unfortunately not possible due to limitations of the Unity animator (it can't animate fields of a struct), you'll have to animate it manually by setting the dash offset value in code I'm afraid

Avatar
Freya Holmér creator
  • Answer
  • Answered

this is unfortunately not possible due to limitations of the Unity animator (it can't animate fields of a struct), you'll have to animate it manually by setting the dash offset value in code I'm afraid

Avatar
Michael Markman

ah gotcha! thank you for the quick reply