Activated effect

Activated effects refer to the situation where we have two different types of effects that can be activated in the same way.

To set up a VFX that only activates when we enter an area and that automatically stops, do the following:

  • Uncheck the looping box
  • Uncheck the Play On Awake box

We will have to set up the configuration for whatever area or object we want this effect to be triggered on. In order to do this, we need to do the following:

  1. Add the Interact On Trigger or Interact On Trigger 2D component to the target area or object and a Box Collider or Box Collider 2D in Trigger mode. As an example, we can add the component to the Pressure Pad, so that when we step on it, the VFX will be triggered.
  1. Once the component ...

Get Hands-On Game Development without Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.