Okay, so Im trying to use Canvas WrappedPrint function to print a string wrapping around a maximum width.
BUT, how do I set the maximum width?
Okay, so Im trying to use Canvas WrappedPrint function to print a string wrapping around a maximum width.
BUT, how do I set the maximum width?
Have you played around with the first four fields of UCanvas at all? I’d test it out myself if you had posted some example code, but I would assume that assigning the right values to OrgX, OrgY, ClipX, and ClipY would get you what you’re looking for.
The funny thing is there’s a comment showing a InWrapWidth parameter but it actually does not exist. Check this out:
https://github.com/EpicGames/UnrealEngine/blob/7fdf681ee21b111524848ade9e952de3ad3fa1ac/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp#L863