Logo

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

TypeDescription
NoneNo 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.
ColliderFires on OnTriggerEnter or OnTriggerExit depending on Trigger Type.
RuntimeStartFires immediately in Start(). Useful for automatic scene transitions on game launch.

Properties

Behavior

NameTypeDescription
listenerTypeListenerTypeDetermines what triggers the load.

Collider Settings

NameTypeDescription
triggerTypeTriggerTypeOnTriggerEnter or OnTriggerExit. Only applies when listenerType is Collider.
tagFilterstringWhen 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:

FieldDescription
targetSceneScene to load. Must be in Build Settings.
loadingScreenLoader prefab reference.
loadModeSingle, Additive, or TransitionOnly.
useEmptySceneBufferReduces peak memory when switching between large scenes.
onLoadStartUnityEvent fired when loading begins.
onLoadCompleteUnityEvent fired when loading completes.

Public Methods

MethodParametersDescription
LoadScene(parameters)LoadParametersTriggers a load with the given parameters, overriding the Inspector preset.
LoadScene(sceneName)stringQuick load by scene name, inheriting the loadMode and prefab from the Inspector preset.

On this page