Invalidation box doesnt update correctly text box inside it.

I have UI that it needs to be toggled off and on, so on game start, whether i make it collapsed and then later toggle it to the visible, or is visible at start and then toggle to collapsed, or instead of collapsed i use hidden, it is just not visible ever, if i do same thing with text block without invalidation box then it works fine.

Even if i manually invalidate it, it is still not updated:


it logs visible, it invalidates, but it isnt visible.

1 Like

I’m seeing the same issue, have a UTextBox childed to an InvalidationBox. Calling SetText seems to have little effect.

	const FText NewText; 
	// Set New Text here, different every call
	// ....

	MyTextBox->SetText(NewText);

It sometimes updates correctly and often times does not. I’m unable to figure out why it sometimes fails.

Adding:

	MyTextBox->InvalidateLayoutAndVolatility();

Appears to have no effect. Neither does:

	MyTextBox->ForceLayoutPrepass();

It appears there is a problem with the InvalidationBox. I tried digging in to what is going on but as of yet, I haven’t a clue. Any help would be greatly appreciated.