Size parameter of shapes asset nonexistent? Correct method to access parameter?

  • updated

As pictured below, Rectangle does not contain a Size parameter as written in the documentation, or its hidden or nested in some other attribute that I haven't been able to find. How can I set to size through code?

Image 772

Image 773

Image 774

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
sam b

Update: I determined that Width and Height were separate individual float values which is what tripped me up.

I was expecting a vector2 called Size from how its presented in the documentation and inspector window.