AnswerBun.com

Change the colour of all particles on screen

Game Development Asked by super potato on December 27, 2020

I’m trying to make it so when the user clicks a button, the colour of all particles on screen change to a certain colour. Is there a way to change the colour of all particles on screen coming from the same particle emitter at runtime? I know there is the main module’s startColor property, but that only changes the particle colour for new particles, not ones currently on screen. Currently I’ve tried messing around with the colorOverLifetime module, but I just get these weird blend between the original colour and the new one.

One Answer

Thanks to DMGregory, I learned the answer was to just set the starting color to white, while setting the color over lifetime module's color to whatever color desired.

Correct answer by super potato on December 27, 2020

Add your own answers!

Related Questions

Convert a string to a gameobject name

1  Asked on December 1, 2021 by stormzy18

     

Jumping up quicker? (Paper Mario style jump)

1  Asked on December 1, 2021 by spottel

       

A* Pathfinding Finding One of Many Goals

1  Asked on November 29, 2021 by user6256

 

Wheel rotation for a raycast car in Unity?

1  Asked on November 29, 2021 by john-545

       

Unity “scrape away” effect

0  Asked on November 24, 2021 by darren-swords

 

Initial setting of camera and ppu to match playing table

1  Asked on November 21, 2021 by zibelas

 

LibGDX – Tilemap Wall Collision Detection Issues

2  Asked on November 20, 2021 by james-stoddern

     

Tilemaps not showing up on Android build

1  Asked on November 18, 2021 by jcorretjer

   

Unity: Sprite stretch issue

1  Asked on November 14, 2021 by tikeb

     

Unity UI, how to hide on play

2  Asked on November 12, 2021

 

Alternative path not working

1  Asked on November 12, 2021 by dsngl-tibor

     

Unity – Understanding the SRP batcher

2  Asked on November 12, 2021 by majs

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir