Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by NerdGameStudio · May 31, 2015 at 12:32 PM · scripting problemparticlesystemparticleemitter

Particle System not working properly?

I'm having difficulties trying figuring this one out. I have a script that makes a particle system play or stop playing, depending of some variables. The EXACT same script I have already set up for making a rain particle. This one is for a snow particle and is identical with the rain script, except the variable is_raining is switched for is_snowing. Howcome the rain script is working perfect and the snow script is not working? It just emits for a second and then stops emitting particles. When I test the particle system through a GetKey command, it IS working perfect. Anyone any idea?

This is the javascript for the snow particle system:

var statscript : Stats;

function Start ()

{

statscript = gameObject.Find("Player").GetComponent(Stats);
}

function Update ()

{

 if(statscript.is_snowing == true) 
 {
     particleSystem.Play(); 
 }
 
 if(statscript.is_snowing == false) 
 {
     particleSystem.Stop(); 
 }    

}

And this is the script for indiciting if there is snow or rain.

if (fallout == true) // if fallout then ..

 {
     if (temperature_degrees >= 1)
     {
         is_raining = true; // this plays the rain particle in RainScript
         is_snowing = false; // this stops the snow particle in SnowScript
     }
     
      else if (temperature_degrees <= 0)
     {
         is_raining = false; // this stops the rain particle in RainScript 
         is_snowing = true; // this p1ays the snow particle in SnowScript
     }
 }
 
 else if (fallout == false)
 {
     is_raining = false; // this stops the rain particle in RainScript
     is_snowing = false; // this stops the snow particle in SnowScript
 }
Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · May 31, 2015 at 12:55 PM 0
Share

Have you checked the maximum amount of particles being allowed to be alive at the time? $$anonymous$$aybe it stops because it would exceed the value?

avatar image NerdGameStudio · May 31, 2015 at 07:14 PM 0
Share

@ Hexagonius: Thank you for your reply. Yes I check the maximum amount of particles. It is set to sufficient particles.

avatar image carlqwe · May 31, 2015 at 08:02 PM 0
Share

Have you checked "prewarm" when you reate your particle effect? And if that doesn't work just make your particleEffect to an gameobject and do:

 myparticle.SetActive(true); //myparticle is a gameobject with the particle system

avatar image NerdGameStudio · May 31, 2015 at 08:31 PM 1
Share

@ Carlqwe: Thanks for replying. Okay I tried with the prewarm on, the basic principle works. BUT I wanted to achief an effect of fade in and fade out for more realism. So with the prewarm on there is "suddenly" a lot of snow on the screen. With the setactive option it is also working but it doesn't achief that kind of realism I'm after for. I just simply do not understand why other effects do work perfectly and with the snow I can't figure it out.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BonusB · Jul 06, 2020 at 02:01 PM

Hey I had the same problem, this should fix it: How to fix parricles system not woring

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kanoein · Jan 12, 2021 at 07:12 PM 0
Share

This is clearly a joke reply. How about you give constructive help instead of sending a rick roll?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Particle delay 1 Answer

Particle System doesn't have emitter but is emitting particles 1 Answer

How can I make a particle effect turn on with a keystroke and last for a set duration? 1 Answer

Align particle rotation with objects rotation? 1 Answer

Finding Particle Information Upon Collision 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges