Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How Can I Load/Reload Localized Assets at Runtime?


We're using UE 4.13.2 and we have some localized assets (maps, meshes, textures, and most importantly: dialog waves played through sound cues).

Our text, map, mesh, and texture localization appears to work correctly when the culture is changed at runtime via FInternationalization::Get().SetCurrentCulture("xx-XX"), but the localized dialog waves don't get loaded unless either the game is started with -culture=xx-XX or we add the SetCurrentCulture("xx-XX") to our custom gameinstance's PostInitProperties().

This is undesirable as we need to be able to support starting with our main menus in a certain culture, and then change to any arbitrary culture (selected via the menus) when the game itself is started. I had originally just planned on writing the code to dynamically load our assets (for the dialog waves we'd make a localized sound cue which references the correct dialog wave for each culture) as needed, but when we found out about the asset localization system in 4.12 and beyond, we hoped this would handle it for us.

Is there anything I can do to potentially force a load or reload of the localized dialog waves, is there a different way I could go about this, or should I go ahead and write my own system to dynamically load these?

Thank you!

Product Version: UE 4.13
more ▼

asked Dec 27 '16 at 05:55 PM in Using UE4

avatar image

169 8 8 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

We don't currently have support for content hot-reloading at runtime, so unfortunately the only way to reload localised assets after changing the culture is to make sure they're purged and loaded again. If you're only in your main menu then this might just be a case of reloading your main menu world, however any globally loaded references may cause issues that require a restart.

more ▼

answered May 02 '17 at 01:15 PM

avatar image

Jamie Dale STAFF
7.5k 176 66 304

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question