Load Trigger
Inspector-driven component to trigger scene loads from buttons, colliders, or runtime events
Overview
Load Trigger is a convenience component that lets you configure a scene load entirely in the Inspector without writing any code. It stores a LoadParameters preset and hooks it to a configurable listener so the load fires automatically at the right moment.
It can also be used purely as a preset holder and triggered manually from code via LoadScene().
Usage
Add the Load Trigger component to a GameObject
Set the Listener Type to match how you want the load to be triggered
Fill in the Load Parameters section — target scene, loader prefab, load mode, and events
Hit Play — the load fires automatically based on the chosen listener
Listener Types
| Type | Description |
|---|---|
None | No automatic listener. Trigger the load from code via LoadScene() instead. |
Button (Evo UI) | Hooks into an Evo.UI.Button component on the same object. |
Button (Unity UI) | Hooks into a UnityEngine.UI.Button component on the same object. |
Collider | Fires on OnTriggerEnter or OnTriggerExit depending on Trigger Type. |
RuntimeStart | Fires immediately in Start(). Useful for automatic scene transitions on game launch. |
Properties
Behavior
| Name | Type | Description |
|---|---|---|
listenerType | ListenerType | Determines what triggers the load. |
Collider Settings
| Name | Type | Description |
|---|---|---|
triggerType | TriggerType | OnTriggerEnter or OnTriggerExit. Only applies when listenerType is Collider. |
tagFilter | string | When set, only colliders with this tag will trigger the load. Leave empty to trigger on any collider. |
Load Parameters
Refer to the Load Parameters section on the Loading Screen page for a full breakdown. The key fields available in the Inspector are:
| Field | Description |
|---|---|
targetScene | Scene to load. Must be in Build Settings. |
loadingScreen | Loader prefab reference. |
loadMode | Single, Additive, or TransitionOnly. |
useEmptySceneBuffer | Reduces peak memory when switching between large scenes. |
onLoadStart | UnityEvent fired when loading begins. |
onLoadComplete | UnityEvent fired when loading completes. |
Public Methods
| Method | Parameters | Description |
|---|---|---|
LoadScene(parameters) | LoadParameters | Triggers a load with the given parameters, overriding the Inspector preset. |
LoadScene(sceneName) | string | Quick load by scene name, inheriting the loadMode and prefab from the Inspector preset. |