Different content for different languages

HoloFair currently supports 2 languages: English and Arabic. The langauge can be selected through HoloFair's settings by the user. To display different content for each language, you will need to use LocalizationView.

Create an Empty GameObject and name it "Localization Views". Create a child Object for each language you'd like to support.

On each langauge, add a LocalizationView and a GuidComponent. Set the target according to the language.

OnLocaleValid (invoked when the user switches to this language), enable content for this language. Anything from Link Views, Video Views, Image Views, Text Views, or even pre-made Assets and GameObjects. And OnLocaleInvalid, disable them.

Last updated