This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I was doing a trick. And that trick was basically creating a label, filling it with text with wrap enabled, getting the size, and then setting its text to "", and then resizing its child RichTextLabel to coincide. I'm not sure if that is the correct way to do it, but I feel like it will be buggy in the long run and self conscious about it.

I'm curious, since label has set_autowrap, is it possible to use this method for RichTextLabel as well?

in Engine by (314 points)

1 Answer

+1 vote

I think RichTextLabel has already autowrap.
Is not this what you want?

richtextlabel

this is a demo project at /demos/gui/richtextbbcode

by (9,800 points)

awww. Really weird. I submitted a bug report. For some odd reason long strings are not wrapped. I'm making a chat room system so the user could only input text in 1 line. I accepted your answer as it technically does wrap, just not sure about the 1 liners thank you!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.