A Unity demo project that showcases ChainRacePattern (CRP) using Unity-Chan.
- Demo: ChainRaceUnityChan
ChainRacePattern is a design pattern for handling skippable presentation flows in Unity.
It represents animations, input, delays, and other presentation steps as Chains, and composes them declaratively with Sequence, Parallel, and Race.
For the full technical documentation — core rules, design philosophy, sample scenes, and the debug window — see the reference implementation:
This project is a self-contained demo that plays a short Unity-Chan presentation sequence using CRP. It combines:
- Animator state transitions (
ChainAnimator,ChainCrossFade) - Voice playback with subtitles
- Movement tweens via DOTween (
ChainDOTween) - Timed delays composed with
Sequence/Parallel/Race
Use it as a reference for how CRP can orchestrate character animation, voice, and movement in a real scene.
ChainDebugWindow is an editor window that visualizes the state of the entire Chain tree in real time while the game is playing.
Open it from Window > Chain Debug.
To use it, call ChainDebugWindow.Watch(chain) from your game code to register the root Chain to watch.
void StartChain()
{
var chain = new ChainSequence(/* ... */);
ChainDebugWindow.Watch(chain);
chain.Start();
}- Unity 2022.3 LTS (developed on 2022.3.62f3)
- UniTask (resolved automatically via Package Manager)
- DOTween (bundled)
| Component | License | Notes |
|---|---|---|
| This project's original code | MIT | © 2026 Kenichi Morishita |
| Unity-Chan! character data and related assets | UCL 2.02 | © Unity Technologies Japan |
| DOTween | Demigiant | Free version |
| UniTask | MIT | Used for async return value of Chain.Start() |
This project uses Unity-Chan character data under the Unity-Chan License (UCL 2.02). See README_UnityChan_en.txt for the asset distribution notice and the UCL 2.02 official text for the license terms.
This project's original source code is released under the MIT License. Third-party assets (Unity-Chan, DOTween) are subject to their own licenses as listed above.


