What You'll Build
By the end of this guide, you'll have:
- A discoverable Ancient Shrine that gives a health bonus
- An automated Merchant NPC that spawns every 5 minutes
- Working proximity discovery system
- Functional event scheduler
Step 1: Setup Manager
- Create New Scene
File → New Scene → Basic (Built-in) - Create Manager GameObject
Right-click in Hierarchy → Create Empty → Name: "Activity Manager"
- Add Component
With "Activity Manager" selected → Inspector → Add Component → Search "World Activity Manager"
- Assign Player
Drag your player GameObject to the "Player Reference" field (or leave empty for auto-find by tag)
Step 2: Create Spatial Activity
- Create Activity Asset
Project window → Right-click →
Create → World Activity System → Spatial Activity - Name It
Name: "Ancient Shrine"
- Configure Properties
Select the asset, then in Inspector:
- • Display Name: "Ancient Shrine"
- • Category: Shrine
- • Discovery Range: 10
- • Auto Discover: ✓
- Add Discovery Actions
In On Discovered section:
- • Add Instruction:
Debug → Debug Log - • Message: "You discovered an Ancient Shrine!"
- • Add Instruction:
Step 3: Place Anchor in Scene
- Create Anchor GameObject
In Hierarchy → Right-click → Create Empty → Name: "Shrine Anchor"
- Add Anchor Component
Add Component:
Spatial Activity Anchor - Assign Activity
Drag "Ancient Shrine" asset to the "Activity" field
- Position It
Move the anchor to a location in your scene (e.g., Position: 10, 0, 10)
Step 4: Test Discovery
- Enter Play Mode
- Walk your player toward the shrine anchor
- When within range (10 units), check Console for "You discovered an Ancient Shrine!"
- Open Activity Manager window to see the shrine marked as "Discovered"
Step 5: Create Automated Event
- Create Temporal Activity
Project window → Right-click →
Create → World Activity System → Temporal Activity - Name It
Name: "Merchant Spawn"
- Configure Event
- • Display Name: "Traveling Merchant"
- • Trigger Type: Interval
- • Interval: 300 (5 minutes in seconds)
- • Event Duration: 180 (3 minutes)
- • Event Priority: 0.5
- Add Debug Message
In On Activate: Add
Debug → Debug Logwith "Merchant has arrived!" - Enable Scheduler
Select "Activity Manager" → EventScheduler section → ✓ Scheduler Enabled
Test Automated Event
- Enter Play Mode
- Open Event Scheduler Debug Window:
Window → Game Creator → Event Scheduler Debug - Go to Dashboard tab - verify event is scheduled
- Go to Tools tab - click [Trigger] next to "Merchant Spawn" to test immediately
- Check Console for "Merchant has arrived!" message
- Go to Timeline tab - see event scheduled in future
🎉 Congratulations!
You've successfully created:
- ✅ A discoverable spatial activity (shrine)
- ✅ An automated temporal event (merchant)
- ✅ Working proximity detection system
- ✅ Functional event scheduler
Next Steps
Now that you have the basics working, explore these topics:
- Core Concepts — Learn about spatial vs temporal activities, manager architecture
- Components Reference — Explore all properties and settings
- Event Scheduler — Master automated scheduling, time-of-day events, conditionals
- Debug Window — Use Timeline, History, Performance tabs for monitoring