#Hey Yeah you did ๐Ÿ™‚ Yet to try it out

1 messages ยท Page 1 of 1 (latest)

errant wharf
#

This would be a little bit trickier. If I understand correctly, you want to have an Exposed Color gradient. This color gradient can change at runtime, but you only want newly born particles to see their sampling gradient updated ?

mental pollen
#

Perfectly said

#

I'm constantly changing this color gradient and setting it to the VFX graph. But I only want this gradient to effect particles that are yet to be born

errant wharf
#

So, yeah, it's more tricky...

mental pollen
#

Tried it out real quick, seems to be doing the job. Are you sure its not this simple?

errant wharf
#

for gradient over Life it would be trickier. cause you need to sample this gradient in the update or Output context if you want your color to follow the gradient over the lifetime

mental pollen
#

Hmm I see.. Do you have an example of how this would look please?

errant wharf
#

usually to sample a gradient over the lifteime of a particle the simple solution is to use :
"set Color over life Block." either in the update or Ouput context.
You can expose this gradient as a properties:

#

But Update and Output are run each frame, so all your particles will be affected by chhanging your exposed gradient.

#

What you could do instead of using a Gradient is to sample a Texture. like a 256*1024. the X-axis would be the Gradient, and the Y-axis would be the Index of the Gradient.

#

So each time that you update , or create a new gradient, you could bake it to the Exposed Texture in a new row

#

Does it make sense?