Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(noob question) how to find and set numParticles
#1
In the forums I can see references to people setting 'Num Particles' somewhere in the emitter code, but I can't find that variable anywhere in the emitter or anywhere else.
I can get the max number of particles from...

Code:
thisEmitter = GameObject.Find("Emitter");
numParticles = thisEmitter.GetComponent<Obi.ObiEmitter>().particleCount;

But 1. that's a private read-only variable, and
2. I can't find where it's initialized in the first place (which makes me feel like a totaly idiot).

Can someone point me to where I need to go? 
Thanks.

###### edit #######
nevermind, this seems to be handled within the blueprint. I'll leave this for anyone else who ever has issues finding this.
Reply


Messages In This Thread
(noob question) how to find and set numParticles - by geschaftsreise - 04-03-2020, 08:28 PM