BeamRelay | Laser Mirror Puzzle Toolkit


Emitter diagnostics show the stop reason, total distance, reflections and destination ... Scene handles label path segments. ... Keep it powered compares uninterrupted hold and latch behavior.


by Cyber Chroma


Price History +

Add a 3D mirror puzzle to your level, connect its solved event to your door, and diagnose blocked beams, required sources and hold timers.

- Build threshold goals such as powering any two of three distinct receivers.

- Scene-local Beam World, Emitter, Mirror, Receiver, View and All/Any Goal Group components.

- Bounded 3D Physics raycasts with explicit mirror markers and a configurable layer mask.

- Distinct-source requirements from 1 to 256, finite nonnegative continuous hold time and independent receiver/goal latching.

- Maximum 256 emitter list entries per world and 0 to 128 reflections per path.

- Positive unique receiver IDs per world; foreign-world colliders act as blockers.

- ScriptableObject trace profiles override distance, reflections, surface offset and layers.

- Power Changed(bool), State Changed(bool) and Completed() UnityEvents fire on transitions.

- Automatic LateUpdate evaluation or manual Tick(deltaSeconds); recursive Tick is rejected.

- Reset restores captured emitter local pose/emission and mirror local rotation while clearing receiver/goal state.

- Working setup command supports Undo/Redo, with world validation and runtime path/receiver diagnostics.

- Pure ReceiverState and BeamTracer/IBeamQuery APIs can be used independently of scene components.

- Four interactive UI teaching scenes in each of Built-in, URP and HDRP demo folders.

- Five-page Getting Started tutorial and searchable PDF manual; editable C# source included.

- Core has no render-pipeline or input-package dependency; Unity UI is required for the demos.

Build a mirror puzzle that your own level can respond to.


BeamRelay traces bounded 3D beam paths from emitters through mirrors to receivers. Connect a receiver or grouped completion event to your door or level logic, then inspect exactly why a beam is blocked or a goal is still waiting. Four playable scenes demonstrate aiming, uninterrupted power, independent sources and a two-mirror relay room.


Make requirements understandable

A receiver can require one or several distinct sources, an uninterrupted hold, or a latch that persists after the beam disappears. All emitters are collected before receiver evaluation. Duplicate emitter references do not create extra contributions, and All/Any goal groups combine complete receiver states.


Inspect the route and the reason

Emitter diagnostics show the stop reason, total distance, reflections and destination receiver ID. Scene handles label path segments. Receiver diagnostics show contribution count, hold progress and missing, holding, powered or latched state. Authoring validation highlights inconsistent world bindings, duplicate receiver IDs, unsuitable colliders and invalid settings.


Keep the puzzle local and configurable

Each Beam World owns its components without a global registry. Shared trace profiles configure distance, reflection limits, surface offset and layers. Rotation and reset APIs support your controls; UnityEvents connect receiver power and grouped completion to your game. Ordinary colliders block, marked mirrors reflect, and registered receivers terminate the path.


Learn through four interactive scenes

First reflection teaches aiming. Keep it powered compares uninterrupted hold and latch behavior. Two sources demonstrates independent contribution requirements. The relay room routes a beam around a corner through two adjustable mirrors. Controls, solution presets, reset and live diagnostics use the included runtime; editable C# demo source is included.


Get from import to your first result

A five-page Unity tutorial, working scene setup with Undo/Redo, four teaching scenes and a searchable PDF manual cover authoring, configuration, events, lifecycle, integration and troubleshooting. Built-in, URP and HDRP demo folders share gameplay scripts and use separate materials.


Scope and limits

BeamRelay covers 3D reflection puzzles. It does not include splitting, refraction, portals, 2D physics, damage, networking, volumetric effects or automatic solving. Your game owns arbitrary doors, blockers, persistence and progression. Visible line width does not change raycast accuracy; triggers are ignored.