Programmatic gradients documentation

Avatar
  • updated

Hi Freya, thanks for this great addition to Unity, it's been a pleasure to use so far.

One thing I'm stuck on though, is programmatically filling a Polygon with a linear gradient in ImmediateMode - it's not immediately obvious what objects and settings need to be applied, where.

Would you be able to provide a quick example of how to set this up? 


It might well be worth adding a bit about this (and maybe a little bit about the Polygon/line Bezier functions) to the documentation or samples as I've had to really dig to find info about how they work, and they're some of the most exciting parts of this package!

Many thanks

Tom

Reporting a bug? please specify Unity version:
2021.3.3f1
Reporting a bug? please specify Shapes version:
4.1.3
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator

currently it's a little hidden away on the changelog page, under version 4.0.0, if you want a guide in the meantime!

Avatar
Tom Wright

Ah perfect, thanks Freya - that's exactly what I needed. I had looked just about everywhere else but hadn't thought to check in there.