How do I mark FText as Culture Invariant/Non-localizable from C++

It’s the value you set as culture-invariant, not the property itself (the property editor persists the culture invariantness when making edits though). FText::AsCultureInvariant is the way to create a culture-invariant text in C++.

I have a C++ UObject that I create Blueprint subclasses of, and it has an FText member variable that is EditAnywhere.

I would like to be able to mark this FText variable as “Localizable: No” by default. Rather than require users every time to select the variable in the Blueprint instance and set it to Localizable.

I see there is a culture invariant flag in C++, but it seems I can’t set this flag on existing FText instances…?

200835-culture-invariant.png