Table of Contents

Utility Actions

ActionEnableAction

This Action can be used to enable or disable an Action by changing their IsEnabled property.

ActionEnableAction Settings
Field Description
Target The target Action to be enabled or disabled.
Enable Whether the target Action should be enabled or disabled when invoking the Action.
Delay Waiting time from when the Action is called until the IsEnabled state is changed.

action-enable-action.png

ChangeAvatarAction

This Action can be used to dynamically change user Avatars. The Avatar Customization example scene shows, with examples, how to create new avatars. Go to Change Avatar Action for more information.

ChangeAvatarAction Settings
Field Description
Avatar Id The id of the Avatar to be set.
On Action Finished UnityEvent that will be called when after the avatar is changed.

change-avatar-action.png

ChangeLanguageAction

This Action can be used to change the scene's language. When this Action is run, all scene localizable elements that have been configured will update their contents to the selected language.

This action will take the available scene languages from the Selected languages field in the SceneConfiguration component that must be present in the scene. Go to Localization for more information.

The VirooLab example scene shows, with examples, how to localize contents in different languages.

ChangeLanguageAction Settings
Field Description
Locale The language to be set as the current language of the scene.

change-language-action.png

Tip

Localizable components that react to scene language changes provided by VIROO. You can find more information about them in this Localizable Components.

scene-localizable-components.png

LoadSceneAction

This Action can be used to trigger a networked scene change for all players in the session. This Action is equivalent to the user triggering a scene change via the VIROO menu.

Note that this Action will not change the current scene within the Unity Editor, instead, a log will be displayed in the Console.

LoadSceneAction Settings
Field Description
Scene Identifier The identifier of the scene to load. This field will be populated with the scenes set in the Application Publisher window.

load-scene-action.png

SetActiveAction

This Action changes the IsActive state of one or several GameObjects by calling SetActive on them.

SetActiveAction Settings
Field Description
SetActive Whether the target GameObjects should be activated or deactivated when invoking the Action.
TargetObjects The target GameObjects to be activated or deactivated.
Reverse After Play If selected, the consecutive times this action is invoked, the status will alternate between on and off.
Delay Waiting time from when the Action is called until the IsActive state is changed.
On Action Started UnityEvent that will be called when before the Action is executed.
On Action Finished UnityEvent that will be called when after the Action is executed.

set-active-action.png