So in the UMG editor you can pick the Text Box (Multi-Line) widget and in the “Style” section you have “Read Only Foreground” as a property however nowhere can I set the box to “Read Only”.
I can Disable the box but this makes it completely inoperable so I can’t scroll in it if the text exceeds the text area.
Yeah, googling doesn’t seem to reveal any way to remove the tinting, so the text comes out all grey. Annoying.
An idiotic workaround would be to create an identical regular text in place of the text box when you disable it. Will try to mess around with it tomorrow to see if I can find a better solution.
Almost even more idiotic, but it worked in my case (game instruction pages):
Render the text as textures. You only need black/white, so you can cram up to 4 “pages” of text in a single texture. Then create the appropriate masked materials…
The textures itself dont need to be that big in resolution and they compress fairly well, so not too much trouble there…
The only drawback is that editing text on-the-fly is not so easy anymore…
hi i came across same problem , the multiline text box was used to display chat messages but then i realised players could click on the text box and change all the mesages . i first tried just using disable tick box and although this does make it read only it causes the text to be completly grey and other problems, in the end i just did this and set it to hit test invisible which works for me
Actually there’s a better way you can overide a function and handle the events yourself I’m at work but I’ll post screenshot later
ok so in youre widget override the function OnPreviewKeyDown
in this function get a reference to the textbox then do a check to see if it has focus then handle the events
I filed a bug in the new system for this, since I just encountered the following behaviour in Unreal 4.22.3 under MacOS 10.14.6:
Text Box and Editable Text yields two different types of classes, but Text Box (Multi-Line) and Editable Text (Multi-Line) yields the same editable class.
I hope that this is a MacOS specific bug and that there really exists a multi line text box that can’t be edited in 2019 for Unreal.
I tried on PC now as well, so sadly doesn’t seem to be limited to MacOS.
The weird thing too is that when you look at the options, the Editable Text (Multi-Line) is the one which has most in common with the single line Text Block…