Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | supagu |
It looks like the Particles class in C++ has no way to get the list of particle transforms.
How would one get them?
And how would one set them?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | supagu |
It looks like the Particles class in C++ has no way to get the list of particle transforms.
How would one get them?
And how would one set them?
Reply From: | Zylann |
The Particles
node is a GPU implementation of a particle system. Transforms are stored on your graphics card for maximum rendering performance, and the only place to modify them is a particle shader https://docs.godotengine.org/en/latest/classes/class_particles.html#description
Starting from Godot 3.1, if you want to access particles in your script, you should use CPUParticles
instead, which by its name, runs particles on the CPU instead, which is slower but allows to access them from script.