Using the Sample Telemetry Provider
The Runtime Spawner includes a simple BasicSpecialsTelemetry ScriptableObject in the Samples~ folder.
This provider lets you test Pressure and Average Player HP rules without writing any code.
Step 1. Create the Sample Asset
From the Project window: Create → Runtime Spawner → Specials Telemetry → Basic Sample
Name it something like
TestTelemetry.asset.
You’ll see two sliders in the Inspector:
Pressure
Represents game intensity (0–1). Higher = more tension.
Average Player HP
Represents player health (0–1). Lower = injured team.
Step 2. Assign the Provider
Select your SpecialEncounterManager in the scene.
Drag your new
TestTelemetry.assetinto the Telemetry Provider field.
Now, the manager will read these values whenever it evaluates rules.
Step 3. Configure a Rule that Uses Telemetry
Open your Special Profile (the ScriptableObject defining all special rules).
Add or edit a rule to include thresholds like:
Min Pressure = 0.75Min Avg Player HP = 0.50
Save your changes.
Step 4. Test in Play Mode
Enter Play Mode.
Adjust the Pressure and Average Player HP sliders live in the Inspector.
Watch your SpecialEncounterManager and/or the Diagnostics HUD.
You’ll see rules begin to pass or fail as you cross their thresholds.
Example:
[Specials] Pressure=0.82, AvgHP=0.64 → Rule “BossWave” passed
[Specials] Spawned 1x Special_BruteStep 5. Validate Behavior
If Pressure < threshold, specials won’t spawn.
If Avg HP < threshold, spawn conditions are deferred until players recover.
If both exceed thresholds, eligible rules can trigger immediately.
This makes it easy to test pacing without wiring any game systems yet.
Step 6. Move to a Real Provider
Once you’ve confirmed your rules work, replace the sample with:
A custom ScriptableObject subclass of
SpecialsTelemetryProvider, orA runtime ISpecialsTelemetry implementation that reads live data (see next page).
Summary
Validate your rule setup quickly
BasicSpecialsTelemetry sample
Control Pressure / HP manually
Adjust sliders in Inspector
Test spawn gating logic
Watch HUD / Console logs
Connect real gameplay systems
Move on to Custom Provider setup
In short: The sample telemetry provider is your sandbox - a quick way to verify that your special encounter rules, thresholds, and cooldowns are all behaving correctly before you hook in real game data.
Last updated