Hi everyone, I’m new to UE and am trying to learn how to use Inkle’s Ink via the inkpot plugin made by The Chinese Room.
This is the link to it:
The problem I’m encountering is as follows:
I have a WBP_text widget which is used to display the current line of text fetched via inkpot from a ink file. This widget has only a text block.
This is done through a function provided by The Chinese Room’s demo scene.
The function creates the widget, sets a reference to the widget and the text block.
I would like to use “get desired size” on the text block to get the size of the text, for the purpose of stacking all the text blocks neatly on screen, but for some reason this always gives me 0 if I call it inside the function. So I figure I must do it in the tick event.
This is my attempt at it in the tick event:
For some reason, unless I have a delay set to at least 0.4 seconds, I will get 0 from “get desired size”, but with a delay, it gives me the right number.
Can anyone tell me 1. Why I can’t get the desired size from within a function? 2. Why does it only work in the tick event with a delay?