Heroic Engine
  • Welcome
  • Getting Started
    • Quickstart
    • Example Games
      • Tic Tac Toe
      • Turn based duel
  • Basics
    • Injection Manager
    • Engine Systems
      • Core Systems
        • Events Manager
        • Input Manager
        • Localization Manager
          • LangText component
        • Music Player
        • Sounds Manager
        • Time Manager
        • Scenes Loader
        • Day Time Controller
        • Weather Controller
      • Gameplay Systems
        • Currencies Manager
        • Player Progression Manager
        • Quest Manager
        • Random Events Manager
        • Hittables Manager
        • Dungeon Generator
      • UI Systems
        • UI Controller
        • Countdown Controller
    • Editor Tools
      • Clear Saves
      • Mobile Build Optimizer
      • Create System
      • Icon from Prefab Generator
    • Engine Utilities
      • PoolSystem
      • DataSaver
      • ComponentExtensions
      • MaterialExtensions
      • SpriteUtils
      • SlowUpdate
      • StringUtils
      • TypeUtility
      • MathHelper
      • VectorUtils
      • TransformUtils
      • MeshUtils
    • Useful Components
      • Floating Item
      • Fly Up Text
      • Label Scaler
      • Ragdoll
      • Rotate To Camera
      • Orbital Camera
      • Rotator
      • Texture Mover
      • Hittable
      • Projectile
      • Projectile2D
      • LifetimeObject
      • Spawner
      • Colorized Particles
      • Draggable2D
      • SaveableTransform
    • Useful Attributes
Powered by GitBook
On this page
  • Parameters in inspector
  • Available methods
  1. Basics
  2. Useful Components

Fly Up Text

PreviousFloating ItemNextLabel Scaler

Last updated 4 months ago

Presented by FlyUpText class, it makes gameobject with attached Text/TMP_Text/TextMesh component move up with certain speed and disappear after certain amount of time. This movement automatically begins when its gameobject becomes active on scene.

This component is inherited from IPooledObject interface, so it can be pooled via . Also, when it ends flying, it automatically returns to pool.

Parameters in inspector

Lifetime – how much time this object will fly before disappearance (in seconds)

Floating Speed – movement speed (should be set in pixels per second in case if its Canvas UI element, where Canvas is not in World Space, otherwise – it should be set in world units per second)

Curved – if set to true, object will fly up by curved trajectory, otherwise it will just move along Fly Direction

Fly Direction – direction of object movement (Vector3.up by default)

Curve Direction – direction of curvature (Vector3.right by default); sign of direction is not important, so Vector3.right will give the same result as Vector3.left.


Available methods

public void SetCurved(bool _value)

This method sets Curved parameter value. If set to true, object will fly up by curved trajectory, otherwise it will just move along Fly Direction.


public void SetColor(Color color)

This method sets text color.


public void SetText(string _text)

This method sets text string.

Pool System
Fly Up Text component