Page 1 of 1

Conditional Resources Dictionaries

Posted: 08 Jun 2026, 11:16
by ttermeer-reboundcg
What would be the best way in Unreal C++, to have dynamic resources dictionaries?
Since #2380 is still pending, we like to have a have different dictionaries loaded based on the current language in order to have the proper font (and custom font style to match).

Re: Conditional Resources Dictionaries

Posted: 10 Jun 2026, 11:42
by sfernandez
You can have different dictionaries for each language and dynamically merge them into the Application Resources when the selected language changes.

Assuming you merge the dictionary with the font definitions in the first position you can do something like this:
Noesis::ResourceDictionary* app = Noesis::GUI::GetApplicationResources();
Noesis::ResourceDictionaryCollection* merged = app->GetMergedDictionaries();
merged->RemoveAt(0);
merged->Insert(0, Noesis::GUI::LoadXaml<Noesis::ResourceDictionary>(pathToSelectedLanguageDictionary));
Could something like this work for you?