Rediger

Del via


Mesh 101 Tutorial Chapter 3: Add interactivity with Mesh Visual Scripting



Note

We make regular updates to the Mesh toolkit and this video may not reflect all the latest changes. You should view the content of this article as the source of truth.

Now that we've completed the setup phase, let's move on to making your GameObjects interactive! In this chapter, we'll dive into Mesh Visual Scripting, which you can use to add custom logic to your Environment.

Note

  • There are two types of Mesh Scripting: Mesh Cloud Scripting, which uses C# code, and Mesh Visual Scripting, where you create a Script Graph and then add nodes (also called units) in a sequence to create your coding logic. This version of the Mesh 101 tutorial uses Mesh Visual Scripting; the previous version used Mesh Cloud Scripting.

  • Mesh Scripting isn't required for every Environment, but you'll need it for the features we'll be adding here: making a button interactive, triggering an informational text popup, and teleporting around the scene.

Station 3.1: Create an Interactable Button

For our first task, we want to create a button that will play a video when it's pressed by an avatar. The avatar can then press the same button to stop the video.

  • In the Scene window, navigate to the Sphere Terrace that contains the stations for Chapter 3, and adjust the view so that you're looking at the first station, 3.1 -- Video Playback, as shown below.

Screenshot of Video playback window in the Unity scene window showing the first station in the environment

As you can see, there's already a video screen in place, but it needs a Play/Stop button. As the text box for the station explains, we'll create a Script Graph with some button logic so that the button can be used to toggle the VideoPlayer on and off and change the button text.

Add the button to the scene

  1. In Unity, make sure the GameObject named Chapter3 and its child object named 3.1 - Video are expanded.

    A screenshot of Unity hierachy showing Chapter3 and 3.1 Video folders expanded

  2. In the Project window, search for the ButtonBase prefab. Make sure you choose ALL for the Search filter.

    A screenshot of the term Buttonbase searched in the Project window in Unity

  3. Drag ButtonBase from the Project window and then, in the Hierarchy, drop it on the GameObject named 3.1 -- Video so that ButtonBase is placed as a child to 3.1 -- Video.

    A screenshot of Buttonbase dragged into the Hierarchy and added to the GameObject named 3.1 -- Video

    Make sure the Transform > Position values for ButtonBase are 0, 0, 0.

    ButtonBase is placed in the scene a little lower than where we want it. Let's fix that.

  4. Ensure that ButtonBase is selected in the Hierarchy.

  5. In the Inspector, change the Transform > Position > Y value to "1".

Perfect! Now ButtonBase is correctly located just below the video screen.

A screenshot of Unity showing the ButtonBase below the BackplateBase object

Rename the button

  • With ButtonBase selected, in the Inspector, change the name of ButtonBase to "PlayVideoButton."

    A screenshot of Unity showing ButtonBase renamed to PlayVideButton

Change the label of the button

Right now, the text on the button says Label. Let's change that to "Play."

  1. In the Hierarchy, expand the PlayVideoButton GameObject to display its child object Button, then expand Button to display its child objects, and then select the Label child object.

    A screenshot of a Unity showing hierarcchy with Label for Button highlighted.

  2. In the Inspector, navigate to the TextMeshPro -- Text component, and then, in the Text Input box, change the text to "Play."

    A screenshot of Unity showing inspector for the Button Label with the text Play highlighted.

Create the Visual Script for the button

  1. In the Hierarchy, ensure that PlayVideoButton is selected.

  2. In the Inspector, click Add Component, and then select Script Machine.

    Note that two new components have been added in the Inspector: Script Machine and Variables. There's also a new window named Mesh Visual Scripting Diagnostics at the bottom of the Inspector. This window will give you feedback on your visual script and can be useful for troubleshooting.

    A screenshot of a Unity showing two components that were added, Script Machine and Variables.

  3. Note that in the Script Machine component, the Source option is set to Graph. You have two choices for Source: Graph and Embed. Each has advantages and disadvantages. We'll be choosing Graph for our scripts because a Graph script is saved as a separate file and this provides greater flexibility.

    Tip

    Graph and Embed are described in more detail in the Unity Script Machine article.

  4. In the Script Machine component, click the New button.

  5. In the Save Graph window, create a new folder and then rename it to "Scripts".

  6. Open the Scripts folder and then, in the File name text box, type "PlayVideoButton".

  7. When you're finished, click the Save button.

  8. In the Script Machine component, enter a name in the Title field for the graph: "Video Player."

  9. Enter a description in the Summary field for the graph: "Defines how the video player responds to play/stop actions."

    __________________

Setting up the Script Graph

  1. In the Script Machine component, click Edit Graph. This opens the Script Graph window. Drag and place it next to the Project and Console tab, if it's not already there, so that we can see the Script Graph and Scene window at the same time.

    A screenshot of Unity showing the Script Machine component highlighted with Script graph open.

    As we add nodes, you may want more space in the window; you can click the three-dot button and then select Maximize to achieve this, or click the Full Screen button in the upper right corner of the window.

    Note

    A node is also called a unit in Visual Scripting. In this tutorial, we'll continue using the term node.

  2. We don't need the default OnStart and OnUpdate nodes; delete them.

Script graph layout

Our Script Graph will have two sections:

Section 1: Detect when the video player Play/Stop button gets clicked. Section 2: When it gets clicked, play the video. When it gets clicked again, stop the video.

Here's a preview of what the end result will look like:

_______________

Detect if the button is clicked

The first section, which detects if the button gets clicked, will require three nodes. The GameObject in the project that actually "listens" for and reacts to a click is Button. Let's add that to the Script Graph.

Create a Button Object Variable

  1. In the Hierarchy, expand PlayVideoButton.

  2. In the Script Graph Blackboard, create a new Object variable: Type the name "Button" in the (New Variable Name) field, and then click the "+" button.

    ________________

  3. Set the Object Variable's type to Game Object.

  4. From the Hierarchy, drag the Button GameObject, and then drop it in the Value field of the new variable.

    ________________

  5. Drag the Button Object Variable from the Blackboard and then drop it in the Script Graph to add it as a node.

    ________________


TIP: You may want to take a moment here to examine some of the components for the Button GameObject:

Mesh Interactable Setup: This component makes Button an object that you can interact with. To learn more, see Grab, hold and throw with Interactables.

A screenshot of Unity showing the Mesh interactable setup window and included settings.

Script Machine: This has a Script Graph named Button Base Behaviour.

A screenshot of Unity showing hte Button Base behavior window for Script Machine.

If you go into Play mode, you'll see that a new component named Mesh Interactable Body is added to Button.

A screenshot of Unity showing the new component Mesh Interactable Body added to the Button component.

This component is added automatically at runtime to interactable bodies; it exposes various properties to Visual Scripting such as IsHovered and IsSelected, which will come in handy in a moment.


In the Script Graph, let's add a node that lets us know when the button is selected.

  1. If you need to, exit Play mode, and then select PlayVideoButton in the Hierarchy to ensure that you're seeing its graph in the Script Graph window.

  2. In the Script Graph, click and hold on the outport port of the Get Object Variable node, and then release the mouse button. This opens the Fuzzy Finder. WARNING: Once you open the Fuzzy Finder, don't click anywhere outside of the Unity interface. This closes the Fuzzy Finder and causes unpredictable behavior in the Script Graph.

    A screenshot of a video play Description

  3. Search for Is Selected, and then, in the list, select Mesh Interactable Body: IsSelected.

    A screenshot of a video play Description

    Note: This node outputs a Boolean value; you can confirm this in the Graph Inspector.

  4. Drag a connector from the output port of the Is Selected node and then create a new node called Microsoft Mesh: On State Changed. (In the Fuzzy Finder, search for on state changed.)

    A screenshot of a video play Description

These are our three button-click detection nodes. The Is Selected node starts out with a value of False, but when the button is clicked, the value changes to True and is passed to the On State Changed node. This node then triggers the play/stop nodes that we'll add next.

Play or stop the video

If On State Changed has a value of true, the video will play. If it's already playing and the button is pressed, On State Changed changes to a value of false and the video stops playing. This affects the nodes in Section 2 of the Script Graph which we'll soon be adding to provide the video and still image that can be displayed.

Our next step here is to add an if node to determine the flow.

  1. Drag a connector from the Control Output port of the On State Changed node and then create a new if node. (In the Fuzzy Finder, search for if.)

    A screenshot of a video play Description

  2. Drag a connector from the Data Output port of the On State Changed node to the Data Input port of the if node.

    A screenshot of a video play Description

Create a variable to determine if the video is playing or not

  1. In the Blackboard, go to the Object tab, and then create a variable named "isPlaying." Make the Type "Boolean" and leave the Value check box unselected. This gives the Boolean the default value of false.

    A screenshot of a video play Description

  2. Drag the "isPlaying" variable to the Script Graph and then drop it to the right of the *If node.

  3. Drag a connector from the True Control Output port of the If node and then create a new Set Object Variable node. (In the Fuzzy Finder, search for set object.).

    A screenshot of a video play Description

  4. In the Set Object Variable node, click the variable name drop-down and then select isPlaying.

    A screenshot of a video play Description

    The isPlaying variable has to perform double-duty here. To ensure that isPlaying always has the correct value, let's give it input from a Negate node.

  5. Drag a connector from the bottom Data Input port of the Set Object Variable: isPlaying node and then create a new Negate node. (In the Fuzzy Finder, search for negate.)

    A screenshot of a video play Description

  6. Drag a connector from the Data Input port of the Negate node and then create a new Get Object Variable node. (In the Fuzzy Finder, search for get object variable.)

  7. In the Get Object Variable node, click the variable name drop-down and then select isPlaying.

    A screenshot of a video play Description

The Negate node makes the value of IsPlaying change to the opposite of whatever it's currently set to. When the scene starts, isPlaying is false (the default). When the Play/Stop button is clicked, the Negate node causes isPlaying in the Set Object Variable node to be set to true and this makes the video play. When the button is clicked again, the Negate node will cause isPlaying to be reset to false and this will make the video stop.

Play the video or display a still image

Now we'll start creating Section 2 of the Script Graph. You'll add the nodes that detect if isPlaying changes; this determines whether to play the video or display a still image in Station 3.1's WebSlate.

  1. In the lower part of the graph, add a Get Object Variable node and set its value to isPlaying. (You can right-click in the graph and then select Add Node. Search for get object.)

    A screenshot of a video play Description

  2. Drag a connector from the data output port of the Get Object Variable: isPlaying node and then create a new On State Changed node. (In the Fuzzy Finder, search for on state changed.)

    A screenshot of a video play Description

  3. Drag a connector from the control output port of the On State Changed node and then create a new If node. (In the Fuzzy Finder, search for if.)

  4. Drag a connector from the data output port of the On State Changed node and then connect it to the Data Input port of the if node.

    A screenshot of a video play Description

The Video and VideoStill (image) GameObjects

  1. In the Hierarchy, expand the VideoPlayer GameObject and note that it has two child objects: Video and VideoStill.

  2. Select Video and then, in the Inspector, note the following:

    • Video has a component named Video Player, which has a link to a Wind Turbine video.

    • Video is inactive (the check box next to its name is empty).

  3. In the Hierarchy, select the VideoStill GameObject and then, in the Inspector, note the following:

    • VideoStill has a still image attached.

    • VideoStill is active (the check box next to its name is selected).

    A screenshot of a video play Description

When the scene starts, the video screen displays a still image (due to VideoStill being active) and does not play a video (which is due to Video being inactive). When the attendee presses the Play/Stop button while it's showing Play, it makes Video active, which causes the video to play, and simultaneously makes VideoStill inactive, which hides the still image. The button's label also changes from Play to Stop When the attendee presses the button again, Video is made inactive, stopping the video, and VideoStill is made active again, which makes the video screen display the still image again.

The remaining nodes in our graph make all of this happen.

Create the Video and VideoStill (image) Object Variables

Let's create the Object Variables that hold the values for the Video and VideoStill GameObjects.

  1. In the Hierarchy, expand VideoPlayer.

  2. In the Script Graph Blackboard, create a new Object variable: Type the name "Video" in the (New Variable Name) field, and then click the "+" button.

  3. Set the Object Variable's type to Game Object.

  4. From the Hierarchy, drag the Video GameObject, and then drop it in the Value field of the new variable.

    ________________

  5. In the Blackboard, create a new Object variable: Type the name "VideoStill" in the (New Variable Name) field, and then click the "+" button.

  6. Set the Object Variable's type to Game Object.

  7. From the Hierarchy, drag the VideoStill GameObject, and then drop it in the Value field of the new variable.

    ________________

Script graph structure

This is a good place to stop and consider how we want to design the rest of Section 2 of our Script Graph. Our "If" node will branch off in a "true" flow and a "false" flow. Our Object Variables need to be easily accessible to both flows, so we'll place them on a row between the flows as shown here:

________________

Add the Video and VideoStill Object Variables to the Script Graph

  1. Drag the Video Object Variable from the Blackboard and then drop it in the Script Graph to add it as a node. Place it under the If node.

    ________________

  2. Drag the VideoStill Object Variable from the Blackboard and then drop it in the Script Graph to add it as a node. Place it to the right of the Get Object Variable: Video node.

    ________________

Turn the video on

  1. Drag a connector from the "True" Control Output port of the If node and then create a new Game Object: Set Active node. (In the Fuzzy Finder, search for set active.)

  2. Drag a connector from the Data Output port of the Get Object Variable: Video node and then connect it to the first Data Input port of the Game Object: Set Active node.

  3. Select the node's Value check box, which makes the node active.

    ____________

  4. Drag a connector from the Data Output port of the Get Object Variable: VideoStill node and then connect it to the first Data Input port of the Game Object: Set Active node you just created.

    A screenshot of a video play Description

  5. Keep the node's Value check box unselected. This ensures that the node is inactive.

    Now when the button is clicked, the video will play and the still image will be hidden. We need just one more thing in this sequence. Since the Play/Stop button is a toggle, we have to make sure that after the attendee clicks Play, the button's label changes to Stop, and then when it's clicked again, the label changes back to Play. To achieve this, we need to create and add an Object Variable and then add a TextMeshPro node.

Create and add the Label Object Variable

  1. In the Hierarchy, make sure that PlayVideoButton and its child object Button are expanded.

    ________________

  2. In the Script Graph Blackboard, create a new Object variable: Type the name "Label" in the (New Variable Name) field, and then click the "+" button.

  3. Set the Object Variable's type to Game Object.

  4. From the Hierarchy, drag the Label GameObject, and then drop it in the Value field of the new variable.

    ________________

  5. Drag the Label Object Variable from the Blackboard and then drop it in the Script Graph to add it as a node. Place it to the right of the Get Object Variable: VideoStill node.

    ________________

Add the Text Mesh Pro node

  1. Drag a connector from the Control Output port of the Game Object: Set Active node and then create a new Text Mesh Pro: Set Text node. (In the Fuzzy Finder, search for set text.) Place it on the upper row to the right of the Game Object: Set Active node.

    A screenshot of a video play Description

  2. Drag a connector from the Data Output port of the Get Object Variable: Label node and then connect it to the top Data Input port on the Text Mesh Pro: Set Text node.

  3. In the text field for the node, type in "Stop."

    A screenshot of a video play Description

Add the nodes to make the video stop

Just three more nodes to go for this graph! We need to set up the false condition for the button, so that if the button is clicked while the video is playing, the isPlaying variable becomes false and it causes the video to stop and the button label to change to Play again.

We can take a shortcut here.

  1. Control-click the three nodes in the top row that make up the "if true" flow.

    A screenshot of a video play Description

  2. Right-click in the Script Graph and then, in the popup menu, select Duplicate Selection.

  3. Drag the duplicated nodes down in the graph and place them below the row of variables.

    A screenshot of a video play Description

Set up the "if false" nodes

  1. Drag a connector from the Data Output port of the Get Object Variable: Video node and then connect it to the top Data Input port of the first Game Object: Set Active node in the bottom row of nodes.

    A screenshot of a video play Description

  2. In that same first Game Object: Set Active node, deselect Value.

  3. Drag a connector from the Data Output port of the Get Object Variable: VideoStill node and then connect it to the top Data Input port of the second Game Object: Set Active node in the bottom row of nodes.

  4. In that second Game Object: Set Active node, select Value.

  5. Drag a connector from the Data Output port of the Get Object Variable: Label node and then connect it to the top Data Input port of the Text Mesh Pro: Set Text node to its right.

  6. In that same Text Mesh Pro: Set Text node, change the text from Stop to Play.

  7. Drag a connector from the "False" Control Output port of the If node and then connect it to the Control Input port of the first Game Object: Set Active node in the bottom row of nodes.

    A screenshot of a video play Description

Share the video player interactions with others in the experience

There may be times when you want a script's events to be experienced only by the attendee triggering the events, and other times when you want the events to be experienced by everyone in the scene. You can control this with the Local Script Scope component.

  1. In the Hierarchy, ensure that PlayVideoButton is selected.

  2. In the Inspector, click the Add Component button and then add Local Script Scope.

    A screenshot of a video play Description

For this tutorial, we want all attendees in the experience to be able to see any interactions with the video player and see the video itself play and pause. To ensure this, make sure the Share visual script variables on this Game Object option is selected. The information box below this option tells you what's shared and what remains local.

A screenshot of a video play Description

Test your work

  1. In Unity, save the project and then press the Unity Editor Play button.

  2. In the Game window, click the Play button below the video player. This causes the label on the button to change to Stop and a brief video about wind turbines to play on the screen above the button.

    A screenshot of a video playback Description

  3. When you've finished watching the video, press the button you've been editing again (it now has the label Stop).

  4. Press the Unity Editor Play button to exit Play mode.

Station 3.2: Trigger an info dialog

For this feature, we'll enhance an existing visual script that causes an info dialog to appear when the avatar presses a button.

  1. In the Hierarchy, collapse the 3.1 -- Video GameObject.

  2. In the Scene window, note that the Info Dialog Trigger station is to the right of the 3.1 -- Video Playback station. Adjust the view so that you can clearly see Station 3.2.

    A screenshot of a computer Description

  3. In the Inspector, expand the GameObject named 3.2 -- Info Dialog.

  4. In the Hierarchy, select InfoButtonWrapper.

    A screen shot of 3.2 - Info_Dialog GameObject Hierarchy with Information_Button selected

    In the Inspector, note that InfoButtonWrapper has the Local Script Scope component attached and that its Share visual script variables on this Game Object option isn't selected.

    A screen shot of 3.2 - Info_Dialog GameObject Hierarchy with Information_Button selected

    This is because after an attendee clicks the button that makes the info dialog appear, the button becomes hidden to them. If this option was selected, the button would become hidden to everyone in the scene, and we don't want that.

  5. In the Inspector, navigate to the Script Machine component, which contains the Show Dialog graph, and then click the Edit Graph button.

    A screen shot of the Information_Button's Inspector

  6. In the graph, drag a connector from the True Control Output port of the If node and then create a new Microsoft Mesh: Show Dialog node . (In the Fuzzy Finder, search for show dialog.)

    A screen shot showing the if node connect to the new Show Dialog node.

  7. In the Show Dialog node, click the Message field and then replace the word Message with this sentence:

    Did you know that the world's largest wind turbine has blades longer than a football field?

    This is the message that will appear in the info dialog.

    A screen shot showing Show Dialog node with a message added.

  8. Select the drop-down that currently displays OK, and then, in the popup list, deselect OK and select Continue. This will add a Continue button to the info dialog that the user can click to close the dialog after they finish reading its message.

    A screen shot showing Show Dialog node with a message added.

Test your work

  1. In the Unity Editor, save the project and then press the Unity Editor Play button.

  2. Use the navigation keys to make your avatar back away from the button. Note that when your avatar is a certain distance away, the button rotates and isn't selectable.

  3. Walk towards the button. At a certain point, the button stops rotating, signaling that you can now select it.

  4. Select the button. The info dialog appears and displays the message you added to the Show Dialog node earlier.

    Note

    The appearance of the info dialog in Play mode is different than how it will appear in Mesh, where it will appear much like the other panels in the Sphere Terrace.

  5. When you're finished with the info dialog, click its Continue button. Note that after you click the button, it disappears. To use the button again, you must exit and then re-enter Play mode.

    Tip

    The distance and triggering elements in effect here are determined by the components of the ProximityDetector GameObject.

    A screen shot showing the ProximityDetector GameObject in the Hierarchy.

  6. Press the Unity Editor Play button to exit Play mode.

Station 3.3: Teleport to the turbine generator

For this feature, we'll add some nodes to a Script Graph that allows attendees in the scene to teleport. When an attendee presses the button, they're teleported from their current location at Station 3.3 to an elevated platform that's attached to a wind turbine generator. They can then examine the generator.

A picture containing outdoor, text, screenshot, windmill Description automatically generated

Update the Script Graph

  1. In the Scene window, note that the 3.3 - Teleport to Turbine station is to the right of the 3.2 -- Info Dialog Trigger station. Adjust the view so that you can clearly see Station 3.3.

  2. In the Hierarchy, collapse the 3.2 - Info Dialog GameObject, and then expand the 3.3 - Teleport GameObject.

    A screen shot

    The button is all set up for you---we just need to add the nodes in the Script Graph that give it the teleport behavior.

  3. In the Hierarchy, expand the ChapterLabel GameObject and then select the TeleportToWindTurbineButton GameObject.

    A screen shot

    Note that in the Inspector, there's a Script Machine component named Teleport to Location with a script attached named TeleportToLocationButtonStart. The Source option is set to Graph, which means the Script Graph is stored in the project as an independant file.

    A screen shot

  4. Click the Edit Graph button. Just as in the previous chapter, our graph already has some nodes set up for you.

    A screen shot

We'll add nodes to this Script Graph in a moment.

Create a Travel Point and add a reference to it

So what's a "Travel Point", you might be asking ... ? Basically, it's a component that you can use to define a point in space to spawn or teleport to. Normally, you would first create a Travel Group, and then add one or more Travel Points to it. We've already created the Travel Group for you in this project, so in the steps below, we'll add a Travel Point to that group. We'll then use that Travel point as the location the avatar will go to when they click the Teleport button. To learn more, see our article named Create avatar spawn and teleport points.

  1. In the Hierarchy, create a new empty GameObject as a child object to TravelGroup and then rename it "TeleportLocationWindTurbine".

    A screen shot

  2. In the Inspector, click the Add Component button and then search for and add the Travel Point component.

    A screen shot

  3. In the Inspector, in the Transform component, enter the following values:

    Position:

    X = 6
    Y = 56
    Z = 60

    Rotation:

    X = 0
    Y = 255
    Z = 0

    A screen shot

    The avatar will teleport to this location.

  4. In the Inspector, make the TeleportLocationWindTurbine GameObject inactive by deselecting the check box next to its name. If you have more than one TravelPoint object active at runtime, Unity randomly picks one of the active Travel Points as the spawning point for the avatar. We want to ensure that the avatar spawns at the point indicated by the TeleportLocationChapter3 GameObject, so that should be the only active Travel Point. As a result of being made inactive, TeleportLocationWindTurbine appears dimmed in the Hierarchy.

    A screen shot

Create and add a Teleport Location Object Variable

  1. In the Script Graph Blackboard, create a new Object variable: Type the name "TeleportLocation" in the (New Variable Name) field, and then click the "+" button.

  2. Set the Object Variable's type to Game Object.

  3. From the Hierarchy, drag the TeleportLocationWindTurbine GameObject, and then drop it in the Value field of the new variable.

    ________________

  4. Drag the Button Object Variable from the Blackboard and then drop it in the Script Graph to add it as a node. Place it below the If node.

    ________________

Add the teleport nodes

  1. Drag a connector from the "True" output control port of the If node and then create a new node called Game Object: Set Active. (In the Fuzzy Finder, search for set active.)

  2. Drag a connector from the Data Output port of the Get Object Variable: TeleportLocation node and then connect it to the first Data Input port of the Game Object: Set Active node.

    A screen shot

  3. Select the node's Value option to make it active.

Add the Travel Point node

  1. Drag a connector from the Control Output port of the Game Object: Set Active node and then create a new node called Travel Point: Travel to Point. (In the Fuzzy Finder, search for travel point: travel.)

  2. Drag a connector from the Data Output port of the Get Object Variable: TeleportLocation node and then connect it to the Data Input port of the Travel Point: Travel to Point node.

    A screen shot

This completes the graph.

Test your work

  1. In the Unity Editor, save the project and then press the Unity Editor Play button.

  2. Go to Station 3.3 and then click the Teleport button to teleport up to the wind turbine generator.

    A screenshot

    A screenshot of a computer Description automatically generated

  3. In the 3.3 -- Generator information box, select the Show/Hide Generator button. A window opens up in the side of the wind turbine and you can see the generator inside.

    A computer screen shot of a machine Description

Feel free to step up close to the generator and have a look. It's pretty cool! When you've finished, navigate back out and then press the Show/Hide Generator button. This closes the window.

Go to Chapter 4

At this point, the attendee in the experience would be ready to move on to Chapter 4 and learn about wind turbine activities related to physics. Just like with Chapter 3, there's a Sphere Terrace that contains the stations for Chapter 4. To get there:

  1. Rotate around in the opposite direction from the wind turbine generator and walk towards the 3.3 -- Go to Chapter 4 information box.

    A screenshot of a computer Description

  2. Press the Teleport to Chapter 4 button.

    A screenshot of a computer Description

    As advertised, this places the avatar in front of the stations for Chapter 4 and Mesh Physics.

    A picture containing text, screenshot, multimedia software, graphics software Description automatically generated

Chapter 3: Summary

In this chapter, you used Mesh Visual Scripting to add features that empower attendees in your experience to do the following:

  1. Press a button that causes an educational video about wind turbines to play.

  2. Press a button that triggers the display of an info dialog about wind turbines.

  3. Press a button that teleports the attendee from the ground up to a platform attached to a wind turbine generator, where they can examine the generator up close.

Next steps