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

Avatar
  • updated
  • Answered

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:
2022.3.9f1
Reporting a bug? please specify Shapes version:
4.2.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
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.

Avatar
Freya Holmér creator
  • Answered

ah, I've fixed the documentation now! thanks