I can't create a particle snapshot through C# then apply it to a particle system.
How would you like it to work?
I'd like to be able to build a snapshot through code, then pass it through a particle's SetSnapshot method
var snapshot = new ParticleSnapshot();
var point = new SnapshotVertex();
point.Position = Vector3.Zero;
point.CreationTime = 1f;
point.Normal = Vector3.Up;
snapshot.AddVertex(point);
particle.SetSnapshot(0, snapshot);
What have you tried?
I've tried using control points, but it's not very scalable with large particle counts.
Additional context
Half-Life Alyx uses these runtime snapshots for the Reviver storm and toner puzzle paths.
For?
S&Box
What can't you do?
I can't create a particle snapshot through C# then apply it to a particle system.
How would you like it to work?
I'd like to be able to build a snapshot through code, then pass it through a particle's SetSnapshot method
What have you tried?
I've tried using control points, but it's not very scalable with large particle counts.
Additional context
Half-Life Alyx uses these runtime snapshots for the Reviver storm and toner puzzle paths.
Reviver Storm: https://streamable.com/8gdnrc https://streamable.com/e0femp
Toner Puzzle: