Publisher PhantomByte Entertainment
File size 432.69kB
Number of files 17
Latest version 1.0.1
Latest release date 2024-05-20 11:07:19
First release date 2024-05-13 06:52:12
Supported Unity versions 2018.4.2 or higher

EzTrigger

EzTrigger is a Unity package designed to simplify the process of creating and managing triggers in your Unity projects.

Features

  • 3D trigger with enter,exit and stay events pipeline
  • 2D trigger with enter,exit and stay events pipeline
  • Editor component customization
  • Custom Gizmos

How it Works

EzTrigger provides a streamlined interface for creating triggers in Unity. These triggers enable you to define specific conditions within your game environment that, when met, can initiate various actions or events.

Installation

To install EzTrigger, follow these simple steps:

  1. Download the EzTrigger package.
  2. Import the package into your Unity project by navigating to Assets > Import Package > Custom Package... and selecting the EzTrigger package file.
  3. Ensure that the package is successfully imported into your project.

Usage

Using EzTrigger in your Unity project is straightforward. Just follow these steps:

  1. Create a Trigger:Add an EzTrigger component to any GameObject in your scene by right-clicking in the Hierarchy panel and selecting Create Empty. Then, attach the EzTrigger script to the newly created GameObject.
  2. Define Trigger Conditions:With the EzTrigger component selected, define the conditions that must be met for the trigger to activate. This can include entering, exiting, or staying within a specified area, among other conditions.
  3. Define Trigger Actions:Once the trigger conditions are set, define the actions that should occur when those conditions are met. This can involve activating animations, playing sounds, spawning objects, or executing custom scripts.
  4. Customize Appearance:Customize the appearance of the trigger in your scene by adjusting properties such as opacity and color. This helps you visually distinguish triggers and organize your scene more effectively.