I want to set the particleAnimator attributes from a script, but it tells me that particleAnimator is not a member of UnityEngine.GameObject. But the particleAnimator is there, why can I access the particle emmiter but not the particle animator?
As it says, particleAnimator is not a property of GameObject (see the documentation, linked below). You need to use GetComponent to lookup components that aren’t already exposed (as particleEmitter is).
great! ![]()