Hi,
i’m currently using Unity VFX graph to load and show off Scan Data. I’ve followed some guidelines from PCX system on Github for that.
I like to spawn things at start, but i wanted to prewarm the spawning and then just pause it.
Unfortunately i can’t find a block or script that can just Pause the spawning value after OnPlay.
Hi! Can you use a Single Burst block in your Spawner? It will spawn all the particles at once, and then you can still prewarm if they need to move/do something over time.
Thanks.
Tested without success Vlad,
but in the meantime, i’ve found a way to pause the spawning, via this Thread code:
Hello, may be is is stupid question, but how to pause particles with constant spawn rate.
If I have single burst the function “Pause” is works as it should. But with spawn rate it is reset to default or something like that, and there is a not good looking gap…
I’ve trying to set velocity to 0.0.0 and it obviously didn’t help.
So is there a livehack hot to pause the particles?
There is an example in attach! - wall of moving particles…
Thanks
[5535742--569008--wall.png]
i will test again your advice, on an empty scene with new VFX Graph item. (to track down my mistake)
using UnityEngine;
using UnityEngine.VFX;
public class AdjustVFXSpeed : MonoBehaviour
{
[SerializeField] float timeScale = 1.0f;
[SerializeField] VisualEffect VFX;
void Start()
{
VFX = GetComponent<VisualEffect>();
}
void Update()
{
VFX.playRate = timeScale;
}
}