How to set arc cap static property?

Avatar
  • updated
  • Answered
Hi,
How do I set the static property for arc end round caps?

Draw.ArcEndCaps = ArcEndCap.Round would be consistent with the Line syntax but this throws a 'Draw' does not contain a definition for 'ArcEndCaps' error.

I've checked all the documentation and my VS Code editor is not offering any suggestions (buggy setup). Also tried every combination of ArcCaps, ArcEndCap I can think of with no luck :)

Great asset BTW!

Thanks
Andrew


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

currently there isn't a static property for all settings out there, ArcEndCaps is one of them!

instead, it's a parameter in the arc draw function, this is one of the overloads:

Draw.Arc( pos, angleRadStart, angleRadEnd, endCaps )


the end caps will sit at the end, but before the color parameters

Avatar
Freya Holmér creator
  • Answer
  • Answered

currently there isn't a static property for all settings out there, ArcEndCaps is one of them!

instead, it's a parameter in the arc draw function, this is one of the overloads:

Draw.Arc( pos, angleRadStart, angleRadEnd, endCaps )


the end caps will sit at the end, but before the color parameters

Avatar
Andrew Styan

Thanks!

Now if I could only get VS code working properly...