04-03-2020, 08:28 PM
(This post was last modified: 04-03-2020, 09:16 PM by geschaftsreise.)
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...
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.
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.