4.0 Touchable
The Touchable actor, as the name suggests, is designed to respond to touch interactions. Once touched, it marks the task as completed.
Spawn a Touchable actor into the scene using the Tool Spawner. Place it on the table.
Please note that the Touchable actor is not visible in the game by default.
The Touchable actor can also trigger an animation after being touched.
We will create this animation in the next step.
To do so, go to the VRAssembling/meshes folder and drag the object named SM_Weight_Test into the scene. Place it inside the Touchable actor.
You need to scale the object to 0.5 so that it fits properly.

Next, we want to create a level sequence (animation). To do this, click on the highlighted button.

Create a new folder named Animation and save the level sequence there.

In the next step, select the weight in the viewport, then click on the Track button in the Sequencer. After that, choose Actor to Sequencer and then add SM_Weight_Test.

You have now successfully added the weight to the Sequencer.

In the next step, we will switch the timeline to display in seconds. Do this as shown in the image below.

Next, click on the small plus symbol. This sets the first keyframe of our animation.

Now turn your attention to the viewport. Select the weight and move it upward. You may also rotate the weight at its highest point if you like.

Now go back to the Sequencer and move the red bar to the end of the timeline.

Click the plus symbol again to set another keyframe.

You have now created an animation. Save it by clicking on the save icon.

Now select the Touchable actor and focus on the Details panel. Under Settings – Sequences, click the plus symbol and add the level sequence you just created using the dropdown menu. The result should look as follows:

Note: A Touchable also works without attaching a sequence!
Finally, select the NewLevelSequence using the Level Outliner and go to the Details panel. There, make sure to check the box "Pause at End". This ensures that the animation stops once it has finished playing.

Using the Tasklist Editor, create a new section and add the Touchable actor to it.

Last updated