The effect only starts playing when I see it

The effect only starts playing when I see it. This is probably very easy to fix, but I haven’t found a solution.
In other words, I would like to approach an effect that is already working. But if I’ve seen this effect before, it works as expected.

Hello,

I think what your are looking for is an option of VisualEffectAsset reachable through the inspector “Culling Flags” :
6137181--669492--_culling_flag.gif

You can find more information about these settings : Visual Effect Graph Assets | Visual Effect Graph | 7.1.8

Note that the bounding box is always used for rendering part, this option only affects if the bounding box is recomputed or VisualEffect simulates while the bounding box is offscreen.

1 Like

It works. Thank you so much :slight_smile:
Performance question. How resource intensive is it?

It isn’t negligible : it will process the update of the visual effect component even if the bound is out of the frustum, it’s comparable to activate the “Update When Offscreen” on Skinned Mesh Renderer, in some isolated cases, it’s really what you want.

If you are looking for an initial state where the system has been “filled” with some particles, maybe you could consider to use the Prewarm settings in VisualEffectAsset.

6154632--672603--upload_2020-7-31_15-3-16.png

It will simply process a few frames (assuming you kept the “PreWarm Step Count” to a small value) before the first rendering, it’s appropriate if you are doing a simple fire effect for instance.

1 Like

This is exactly what I wanted, thanks)