- Home /
Question by
Remsigin · Nov 11, 2012 at 04:46 AM ·
gameobjectparticleanimator
UnityEngine.GameObject' does not contain a definition for `particleAnimator'
pe.particleAnimator.force.y = CurrentSpeed;
Type `UnityEngine.GameObject' does not contain a definition for `particleAnimator' and no extension method `particleAnimator' of type `UnityEngine.GameObject' could be found what to do?
Comment
Best Answer
Answer by Eric5h5 · Nov 11, 2012 at 04:50 AM
As you can see in the GameObject documentation, there is no particleAnimator property. You can use GetComponent(ParticleAnimator) instead.
Your answer
Follow this Question
Related Questions
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
Key Arrows into Swipe Input 0 Answers
Finding GameObjects within a radius? 2 Answers
How can i move a game object up and down so it acts like a obstacle for my sphere player 4 Answers
GameObject to Variable to GameObject and add string? 1 Answer