UI like undertale battle

I have an idea about using unity cavanas, and 2d, I want to make a battle, I dont stay to learn about lua, and I think doing all by my self in unity is a good learning practicipe!

All I want from you, is just how I can make a rectangle who is centered on x axis of the scene, and How I can make it resize by size I get to it!

For example I want xsize = 50 and y size = 20. And I have an 100 pixel rectangle, about smothly resize I know! I dont want to work with sprites, are just wasting my time because I need to make one for every size, and make calculations for my soul to dont get outside the box. So how I can draw, I shearched tutorials, but I didnt found nothing

if you never heard about undertale and its fighting system then:

(ignore cutscene)

(skip at 1:57)

Still need help, I dont care if it’s perfect, all I need is that white box, I dont need it perfect I just need a simple start and a idea with what to play

I’m not an expert in this area, but have you checked out line renderers?

It might be what you are looking for.

Without giving it too much thought, I think I would go with sprites. (See Attachment)
then just add some sprites in between the corners, depending on how wide or tall the text box needs to be.

I hope this helps :slight_smile: Let me know how it goes.

2870241--210309--thing.png

Im making a undertale unity battle engine, you can play the demo here:
Game Jolt - Share your creations

I have a undertale unity battle engine, play the demo below:
https://gamejolt.com/games/undertale-unity-battle-engine-demo/230707
Here is a video of the no mercy gameplay:

And Pacifist: