- Home /
 
               Question by 
               FutchProductionsSyndicate · Mar 19, 2011 at 11:18 PM · 
                particleemitterbce0020  
              
 
              Missing ParticleEmitter instance?
When trying to change the ParticleEmitter Settings, i get the error
- Assets/Scripts/ParticleSystem.js(11,18): BCE0020: An instance of type 'UnityEngine.ParticleEmitter' is required to access non static member 'maxEmission'.
How do i fix this?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by DaveA · Mar 20, 2011 at 02:39 AM
'instance' means you need to have an actual object to set on. My guess is you set ParticleEmitter.maxEmission (note the capital), rather than particleEmitter.maxEmission where particleEmitter (small p) is a component on a game object. I prefer using different variable names (like 'pe' or 'partEmitr') which can't be confused thus.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                