Question by
KUFgoddess · Oct 15, 2017 at 07:16 AM ·
particlesparticlesystemsize
How to increase Particle System Start Size from 1 to 2 OnTriggerEnter2D?
main.startSizeMultiplier = 2f; is where i am having the error
void OnTriggerEnter2D(Collider2D col)
{
if(col.tag == "Projectile")
{
Damage(damage);
ErrorFireIncreaseSound();
}
public void ErrorFireIncreaseSound()
{
source2.clip = ErrorSounds[Random.Range(0, ErrorSounds.Length)];
source2.Play();
main.startSizeMultiplier = 2f;
}
Comment
Best Answer
Answer by KUFgoddess · Oct 18, 2017 at 04:35 PM
This is how i changed my particle start size public void ErrorFireIncrease() {
ParticleSystem m_System = GetComponent<ParticleSystem>();
ParticleSystem.MainModule main = m_System.main;
main.startSizeMultiplier = 2;
)
Your answer
Follow this Question
Related Questions
How do you use emission.rate? 2 Answers
Some question about ParticleSystem.emit() rendering 0 Answers
ParticleSystem.Bake() not working with specific particle 0 Answers
Particles disappear when the parent rotates,My particles disappear when the parent rotates 0 Answers
Particle Collision between particles 2 Answers