Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

For an overview of Resources, click here.

Panel
panelIconId1f393
panelIcon:mortar_board:
panelIconText🎓
bgColor#4C9AFF

Deep Learning on Resources is found in Motive Academy. Click here to see the course this lesson is in.

Table of Contents
minLevel1
maxLevel7

Overview

The Apply Effect resource Resource allows the author to apply animations and visual effects on applicable objects in the Scene, such as a character or scene object. An effect can be an animation or some form of particle effect. It can be a powerful tool for bringing the character to life, or for allowing objects in your environment Environment to react in response to the learner.

Required Fields

...

Field Name

Description

World Objects

Specifies which

scene

Scene objects will display an effect.

Effects

Specifies the effect to be applied.

This effect can be an animation or a particle effect.

Optional Fields

Field Name

Description

Speed

If applicable, specifies the speed (multiplier) of the effect.

A speed of 2.0 would reduce the duration of the effect by half.

Events

There are no events emitted by an Apply Effect resource.  Open, Activate. In order to stop an effect, you have to deactivate the resource.  use the Deactivate Resource to deactivate the Resource.  Other options are a Close Frame Resource or End Script Resource.

To learn more about Finishing Scripts, click here.

Example In the Headset

In this example , I want my character Stacey to sit down.  The action of sitting down is done with an Apply Effect resource.  

  • Open the script and frame you want to put this action.

  • Drag the Apply Effect resource into your frame.  For this example, Stacey is the World Object and the effect is one of my Unity Animations:

...

  • Once I save and test in the headset, you can see that Stacey sits down (the Apply Effect we just created), but the chair isn't reacting to the sit motion:

...

There is the ability to layer Apply Effects. 

  • Going back to the frame I will add a second Apply Effect with the Employee Chair as the World Object and the appropriate Unity Animation:

...

  • Once I save and test in the headset, you can see that Stacey sits down and the chair moves appropriately:  

...

we are in the Office environment. I want to apply an effect to Chad (the character). I will have him go from sitting in the chair to standing.

  1. In a separate Script, I’ve spawned Chad into the environment using the Spawn Asset Resource.

  2. Add the object the effect will be applied to in the Scene Objects Frame (or another Frame in the Script of your choosing). In this case, I will add Chad as a Scene Object:

...

  1. (Optional) In this instance, I’ve added a Screen Message letting the learner know what is happening in the Scene:

...

  1. When the Screen Message closes, I will play the Apply Effect Resource:

  • World Objects = Chad (the Scene Object that will display the effect)

  • Effects = *Sitting to Stand Angry (the effect to be applied)

...

*The Effect comes from your own Catalogs.

  1. (Optional) To give the Scene more realism, I’ve added a Facial Expression and Look At Resources so that Chad has an angry expression on his face and when he stands he is looking at the learner:

...

This is what the Frames would look like for the above scripting:

...

This is what it would look like in the headset:

...

View video in full screen on Vimeo at this link.

Related Articles

Resources: An Overview

Audio Filter Resource

Camera Effect Resource