- Home /
Question by
American horizon · Mar 07, 2014 at 12:51 PM ·
particlesparticlesystem
Unable to retrieve emitter components from an element
Hi, i've this code
fireEmitters = campfire.GetComponentsInChildren<ParticleEmitter>();
Debug.Log(fireEmitters.Length);
campifre have two children with attached a Particle System, but Debug.Log return me that the array is length 0 !
I taken this code from a book that treat of unity 3.x while i'm using the last version. Maybe this is the problem? Do the syntax changed in the newly version?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613135619im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Particle system drifting to a dynamic point 0 Answers
How to make Particle System spiral/vortex 1 Answer
Particles that only show in light 2 Answers
Change Size over Lifetime for Particle System? 1 Answer
Particle System Emission Rate Scriptt 0 Answers