đź’° Make A Treasure Chest System Using Timeline (Unity)
It was a great time to complete “Make A Treasure Chest System Using Timeline.” This challenge helped me combine Animation Tracks, Activation Tracks, Audio Tracks, Signals, and Triggers into one clean gameplay system — all controlled by Timeline.
Even with ready-made assets, understanding how to manage sequencing and interaction is a huge step toward real game development.
🎯 Challenge Goal
- Download treasure chest from Filebase
- Open it using Timeline
- Add particle explosion + sound
- Spawn treasure after opening
- Trigger it when player enters area
Everything controlled by Timeline Director.
đź§° Scene Setup
After importing the chest:
- Added a Playable Director
- Created a new Timeline
- Created a Particle System (gold burst)
- Added Audio Source (open sound)
- Created empty
TreasureSpawnPoint - Disabled Particle “Play On Awake”
- Turned OFF Director “Play On Awake”
Clean preparation makes everything easier.
🔓 Animation Track — Opening the Chest
I added an Animation Track to animate the lid rotation.
- Keyframed lid closed → lid open
- Duration around 1.5 seconds
- Added ease in/out for smooth motion
The timing makes it feel satisfying instead of robotic.
✨ Activation Track — Particle Explosion
To create the “reward moment”:
- Added an Activation Track
- Activated particles exactly when lid fully opens
- Let it burst for dramatic effect
Timeline makes syncing effects extremely precise.
🔊 Audio Track — Sound Effect
Added an Audio Track:
- Synced chest opening sound
- Slightly before full open for realism
Small timing adjustments improve polish dramatically.
💎 Signal Track — Spawning the Treasure
To instantiate treasure after opening:
- Added a Signal Emitter
- Created a
SpawnTreasure()function - Connected Signal Receiver to script
When animation finishes → treasure spawns.
Get JUMAMUROD ARALOV’s stories in your inbox
Join Medium for free to get updates from this writer.
This keeps gameplay logic clean and event driven.
🚶 Trigger System — Player Interaction
Created a trigger zone:
- Box Collider → Is Trigger
- Script checks for Player tag
- Calls
director.Play()
Now the chest opens automatically when player walks into range.
No UI buttons.
No manual input.
Just clean interaction.
đź§ What I Learned
This system helped me understand:
- How Timeline can control gameplay events
- How Activation Tracks manage GameObjects
- How Signals connect animation to logic
- How to structure interactive cutscenes properly
- How important timing is in game feel
This is not just animation — it’s a complete mini system.







