How can I make a larger GameObject come out of a smaller one (2d)

So if the title didnt explain what I am going for well enough, heres a GIF of what im going for.
ezgif-1-624facb07d
I’ve tried using the animator, but it arranges the center position outside of the white rectangle, which completely ruins what I’m going for. I honestly am not sure how to do get this done. Any help is appreciated.

1 Like

Make an invisible parent GameObject above the black object and don’t change that object, using it as your pivot.

Then scale the black object as you are now.

1 Like