The logic function offers the possibility to show or hide hotspots depending on variables.
First, a variable must be created via the variable editor. There are two possibilities:
- persistent: Remains beyond scene change.
- scene: Remains only while the scene is loaded.
There are three variables that are always predefined. These are set automatically by the system.
platform_device
0 = VR glasses
1 = Desktop computer
2 = Mobile devices
platform_browser
0 = Chrome
1 = Safari
2 = Firefox
is_solo
0 = Solo Multiplayer
1 = Multiplayer
Under the logic tab the conditions and events can be defined:
Conditions
- ShowIf: Shows a hotspot, if all stored variables fulfill the logic.
- ShowOr: Shows a hotspot if any of the deposited variables satisfy the logic.
- ShowXor: Shows a hotspot when one but not all of the variables satisfy the logic.
Events
- OnActivate: Executed when the hotspot is opened.
- OnDeactivate: Executed when the hotspot is closed.
- OnQuizCorrect: Will be executed when the quiz is answered successfully.
- OnQuizIncorrect: Will be executed if the quiz was not answered successfully.
Post your comment on this topic.