Hi for everybody!
I’m having a trouble in acess the particle system, I need enable the system emit that is inside an object through a script. The problem is: How I will get the path for enable it?
Someone has any Ideia?
good Bye! :shock:
Hi for everybody!
I’m having a trouble in acess the particle system, I need enable the system emit that is inside an object through a script. The problem is: How I will get the path for enable it?
Someone has any Ideia?
good Bye! :shock:
particleEmitter.emit = true;
:roll:
I Already tried this, what I’m trying to do is access the particle system through an object, ie, I have one Gameobject and inside it has a particles system and I need activate it by scritp, and I do not know how to get the path to acess It.
obs:This script is attached on the camera.
Bye :shock:
public GameObject targetObject = null;
void Start ()
{
ParticleEmitter emitter = obj.particleEmitter;
emitter.emit = true;
}
:roll: