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
  • How to use it
  • Parameters in inspector
  • Available methods
  1. Basics
  2. Useful Components

Colorized Particles

PreviousSpawnerNextDraggable2D

Last updated 4 months ago

Presented by ColorizedParticles class, this component allows to change particle system color both in runtime and Edit mode by changing one parameter in inspector or calling one method from code. Instead of annoying manipulations with MinMaxGradient, ColorOverLifetimeModule and MainModule, you can switch particles color much faster via this component!

You can find example Smoke VFX prefab with attached ColorizedParticles component in Heroic Engine/Example/Prefabs/VFX directory.


How to use it

Just attach ColorizedParticles component onto your gameobject with ParticleSystem.


Parameters in inspector

Color – needed color of particles.


Available methods

public void SetColor(Color newColor)

This method sets needed particles color. It changes both Start color of Main Module and Lifetime gradient color.

Colorized particles
Parameters in inspector