Just wondering how can you rotate text 90 degrees. There are quite few option if I right click on the text and I see Vertical box but none seem to do 90 Degree. Or maybe I need to rotate my game some how and click on landscape in project setting. Either way thank you!!.
There is angle in the render transform:
Or do you want to write vertically, from top to bottom?
Jesus your something guy! No such answer on the net but you just like make it happen. Jesus. Wow. Not kidding. I actually went and redone the whole level because I couldn’t get the answer for that. I should have more patience next time. Your truly belong in the Jedi archives. Thank you again!!!
Hi, @Everynone
Do you know how to make text align like a spine of a book?
Changing angle makes texts look vertical, but they behave as horizontal texts and you can’t really place it as you want.
I know this is an old thread but I’d really appreciate your help.
A Widget Retainer will work regardless orientation. It outputs the widget to a render texture first which can the be slapped onto any surface via material.
Changing angle makes texts look vertical, but they behave as horizontal texts and you can’t really place it as you want.
Any chance you could produce an example of how it should look like, ideally. Because this is pretty straightforward without jumping through any hoops:
Thank you for the reply and sorry for the confusion.
Here is what I want to achieve.
Setting angle to 90 makes it look vertical but it is treated as horizontal, which is a problem when you want to stack them, for example.
Any idea how to achieve the look without the issue above?
tl;dr: rotate text only and report fixed container size
The hierarchy of the User Widget that serves as the book spine element:
- the
Size Box
reports fixed size the parent container will see and should be set to the maximum allowed size in px we ever want to see; text length exceeding this value will spill/clip (if you let the border clip it) but can be auto-adjusted with a scale box (not included here):
- the
Border
keeps its content centred:
- the
Text Block
is rotated:
Did not test it thoroughly but this should allow other containers to handle it more gracefully now:
That’s exactly what I wanted to do.
Your answer is thorough and very easy to understand.
Thank you so much!