But the problem is that I have custom event, that sets my text from a variable and I have no Idea how to add new line, because Shift + Enter does no effect on my text.
Soo… How do I add a new line in text variable in order to set Widget Text??
snap missed that it was late idk if that will apply to a text variable but it is convertible just drag a pin on and on to a text pin it will convert. I’ve got them on multiline text boxes witch run off of text rather than strings.
Like I said in the first post, I need to make newline in a variable… And 4.8 is not the answer.
Because text in widget sets from variable, which I set on exact instance of the object with Construction Script. So I want to select my note in viewport and type the text I need in Details panel. But I cannot make newline there…
It is indeed impossible to add line breaks to a variable. However, there are multiple ways of doing that via scripting. In simple cases (which, I agree, is not your case), the following is possible:
In your case, you can use the Format Text node, like this. Drag a line out of a variable of type Text, and type “Format Text.” This node will let you insert line breaks wherever you want like in the example below.
This is exactly what I was looking for. Thanks!
How do you find these undocumented UPROPERTY specifiers (especially those mysterious meta ones)? Where can I look in the source?