API reference
API reference
Select your platform
No SDKs available
No versions available

OvrPlatform_LanguagePack_SetCurrent Function

Sets the current language to specified. The parameter is the BCP47 language tag. If a language pack is not downloaded yet, spawns automatically the UOvrRequestsBlueprintLibrary::AssetFile_DownloadByName() request, and sends periodic UOvrPlatformSubsystem::OnAssetFileDownloadUpdate() to track the downloads. Once the language asset file is downloaded, call UOvrRequestsBlueprintLibrary::LanguagePack_GetCurrent() to retrieve the data, and use the language at runtime.

Signature

void OVRPLATFORM_API OvrPlatform_LanguagePack_SetCurrent(UGameInstance *GameInstance, FString Tag, OvrPlatform_LanguagePack_SetCurrent_Delegate &&Delegate)

Parameters

GameInstance: UGameInstance *
Tag: FString
Delegate: OvrPlatform_LanguagePack_SetCurrent_Delegate &&

Returns

void OVRPLATFORM_API