I am having problems with an inherited rich text block almost always being invalid.
So I’m trying to create a game that teaches programming basics to kids. I am familiar with OOP. I’m creating a UMG hud that displays lines of code being executed on the left and on the right are lines of code that can be dragged and dropped onto the executing program on the left to alter its function.
Each line of code is a widget blueprint. This blueprint inherits from a base class widget blueprint that contains a rich text block for displaying the code text. The inherited class contains functions that determine how the displayed code is executed (IE. I will have one class for ‘if’ statements and another for variable assignment statements). So far I have just created the first inherited class to get the base features working. The base class sets the text in the rich text block in the “construct” event.
Base class
Inherited class
In my hud I have a vertical box where I placed 3 of the same inherited class widgets (WBP Line Item-Let) in. The events are firing properly but only the first widget is showing the code in the rich text block. The other 2 say the rich text block is invalid. I’ve tried moving the set text code to other events line tick and initialized but get the same result.
hud
Are there any gotchas that the rich text block has that could account for this?