Modify SliceCenter property of an ImageLabel using a script

I’m attempting to modify a SliceCenter property in a script in my game-absolutely clueless on how to do it. I’ve already tried Rect2D.new, but that hasn’t worked (i assume i’m doing something horribly wrong). Any help?

There is no such thing as a Rect2D. Did you mean Rect?

yeah probably, like i said i’m clueless lol

that was it, tysm!! worked just fine