Godot Version
godot -4
Question
note: this question is for C#
i made a very basic CPU particle for my game and i want to activate it from my player script. apparently i’m doing something wrong as i keep getting the same error message that i cant fix:
**
CS0246: The type or namespace name ‘CPUParticles2D’ could not be found (are you missing a using directive or an assembly reference?) /home/saba/Desktop/GodotProjects/jello/Scripts/Jello.cs(28,10)
**
this is my code:
private CPUParticles2D Particle;
and then this goes in the ready method:
Particle = GetNode<CPUParticles2D>("Particles");
the path is definitely correct.