Stratkit Ui Floating Text¶
Service and collection of utilities to display a floating text on screen as feedback.
It is intended to have a single GameObject
existing in the game with the FloatingTextService
, with its own Overlay
canvas. To achieve this:
- Add the FloatingTextPersistentModule
on your persistent world.
- Add the FloatingTextMapModule
on the map world, which will reuse the same floating text service created on the persistent world.
Spawning text on UI¶
- Use the component
FloatingTextSpawner
to spawn text on the position of a givenRectTransform
or its own position.
Spawning text on the 3D world¶
- Use
MapFloatingTextRequest
entities to display text on a given world map position (but text will be presented on screen space).