Unity Catching Fire by InfraRedApple - 2

Games & Projects

A demo project on allowing 2D sprites to spread fire.

Unity 2018.3.4f1Unknown LicenseUpdated 1 year agoCreated on February 13th, 2019
Go to source


A demo project on allowing 2D sprites to spread fire.


Add the ChemicallyReactive script to a root GameObject.

  1. Add the Chemical the object responds too. In this case there is only Fire in the current project.

  2. Add the Plant Script (May rename to something more generic later)

  3. Setup the Plant Script to react to the Chemical. Ie Change the sprite, enable a particle system, etc…


Chemicals are simply ScriptableObject, so you can have as many as you like.

  1. Right-click the Project folder and select Create > Chemistry System > Element Type
  2. Name your new chemical Ice, Water, Slime, Candy, Toxic, Dynamite, whatever.
  3. Create a new GameObject that will hold the element.


  • Spread the Fire chemical to other ChemicallyReactive to Fire GameObjects

  • Destroy the Fire when the ChemicallyReactive GameObject is fully burnt.
Show all projects by InfraRedApple