Programmatic gradients documentation

  • 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


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

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

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.