Skip to content

Cycle the output language

Updated

Pressing L steps an AI agent’s output language through the languages its AI Translation allows, then back to the original, and logs each change from subscribeOutputLanguage.

Click the scene, then press L to change the language. The dialog's language button follows. Translating replies needs the AI service; choosing the language does not.

Cycle the output language

The script is explained step by step in Cycle the output language.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

LanguageCycle.xrproj