0 votes

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?

in Engine by (52 points)

1 Answer

0 votes

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.

by (27,829 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.