I'm new to Unity and to game development in general. I would like to make a text-based game. I'm looking to reproduce the behavior of an instant messenger like messenger or whatapp.
I made the choice to use the Unity UI system for the pre-made components like the rect scroll. But this choice led me to the following problem:
I have "bubbles" of dialogs, which must be able to grow in width as well as in height with the size of the text. Fig.1
- I immediately tried to use VectorGraphics to import .svg with the idea to move runtime the points of my curves of Beziers. But I did not find how to access these points and edit them runtime.
- I then found the "Sprite shapes" but they are not part of the "UI", so if I went with such a solution, I would have to reimplement scroll, buttons etc...
- I thought of cutting my speech bubble in 7 parts Fig.2 and scaling it according to the text size. But I have the feeling that this is very heavy for not much.
- Finally I wonder if a hybrid solution would not be the best, use the UI for scrolling, get transforms and inject them into Shape sprites (outside the Canvas).
If it is possible to do 1. and then I would be very grateful for an example. If not 2. 3. 4. seem feasible, I would like to have your opinion on the most relevant of the 3.
Thanks in advance.