UGTK cat mascotUGTKengine within an engine Request access

UGTK / Toolkit / Component Module / Dash Component Completed

Component Module — UGTK

Dash System

Summary

The Dash System enables a dash action for characters, temporarily increasing their movement speed.


Content


Modules Dependencies

The Dash System module requires the following dependencies:

Ensure that these dependencies are correctly imported and configured in your project.


Setup

  1. Add DashComponent Prefab to your game object:


How To Use

  1. Set direction, dashSpeed, dashDuration and dashCooldown of your Dash Component:


Testing Scene

Open DashScene in the module's Scene/ folder: one cube on a floor, with the dash component attached as a child.

What to do, in order:

  1. Enter Play Mode and press Trigger Dash. Outside Play Mode the button is disabled: the dash runs as a coroutine, and coroutines do not run with the editor stopped.
  2. Turn on Debug Mode and dash again. The console prints the speed going up, the dash starting, the speed returning to zero and the cooldown beginning - which is the whole life of a dash in four lines.
  3. Press the button twice in quick succession, then dash into a wall.

Step 3 is where a dash usually breaks. A second dash starting before the first has finished can leave the movement state stuck, which is what the cooldown is there to prevent; and a dash that moves the transform directly - as this one does - can push a character through a collider, so the demo is the place to find out how far yours travels per dash before a level does it for you.


Technical Info

The following are the main scripts and workflow of the Dash System. Refer to the UML section for the detailed structure.

Scripts:


© 2026 Marcello De Bonis. All rights reserved

Real dependenciesOpen in the map →

Depends on 2

Used by 0

  • No other module depends on it.

Measured from the repository: code references (asmdef) plus prefab and asset GUIDs. Importing this module alone brings in 6 modules in total.