SetSpotTagActive
How to add to: dialogue nodes
Dialogue Nodes
You can add the commands directly into a dialogue node or into the dialogue text (found in the properties section). Here’s an example:
[action:"setSpotTagActive", spotTag:"hotspot2"] |
Script Editor
You can add the commands into the script editor at the bottom of the screen. Here’s an example:
LB.Actions.setSpotTagActive({spotTag:"hotspot2"}); |
OnClick
1.) Select the asset that you want to click in order to activate a hotspot (in this case, it’s an item)
2) Add the command into the onClick section in the Properties panel
{"action":"setSpotTagActive", "spotTag":"hotspot2"} |
Possible problem: there is no “onClick” section in the Properties panel
The onClick section is because a CAF (Custom Asset Field) has been created manually. If it is not present, you can add it to your cmp:
->Top toolbar, select “Project”
->Project settings
This box will pop up:
-> Click the “Custom Asset Fields” tab (1)
-> Click on the tab you want to add the CAF to (2)
(in this case it’s to an item, but you could add it to an actor, location, etc
depending on your needs for the scenario)
-> Click on the “Add New Field” button (3)
-> Type in “onClick” (it’s case sensitive)
-> Leave the Type as “text”
-> Click “OK”
Now the onClick CAF has been added, you can add in the command as explained earlier.