Responsive UI

Avatar
  • updated
  • Answered

Hi, thanks for your asset !
There is a way to make it responsive when I use rectangle in UI please ?

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
Avatar
Freya Holmér creator
  • Answered

Not at the moment no, Unity's UI is very counter to using mesh renderers and GPU instancing, so there's no nice way to integrate Shapes in their UI

You could of course make a helper function to match the rectangle to a separate UI rect, but that gets pretty tedious as soon as you want to add more shapes

Avatar
Yannig SMAGGHE
Quote from Freya Holmér

Not at the moment no, Unity's UI is very counter to using mesh renderers and GPU instancing, so there's no nice way to integrate Shapes in their UI

You could of course make a helper function to match the rectangle to a separate UI rect, but that gets pretty tedious as soon as you want to add more shapes

Ok, bad news ^^...

Thanks for you reply, have a nice day :)