• 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
2
Question by Aimorris · Oct 18, 2016 at 05:01 AM · 2dinstantiate2d gameparticlesystemparticle system

ParticleSystem showing in scene but not in game.

I have a particle system that is being instantiated any time the user clicks a button. This ParticleSystem shows up in the scene view perfectly when the button is clicked, however, it is not displaying in the game view! I have the material of the particles set to Unlit/Transparent Cutout as it is an image. The particle system is in front of everything else in the scene except the button. I also have the particle system as a prefab (obviously, to instantiate) and Play On Awake is set to on. Why isn't my particle system showing up in game view?

Comment
Add comment · Show 2
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 b1gry4n · Oct 18, 2016 at 06:38 AM 0
Share

Are you sure its actually playing/emitting? Usually in the editor the particle system will start playing once you click it (im guessing for ease of editing so you dont have to hit play) but in game that is different.

avatar image Aimorris b1gry4n · Oct 18, 2016 at 06:44 AM 0
Share

When I play the game and start clicking the button it shows up in scene editor, which suggests to me that it is playing the particle system.

7 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by s_guy · Oct 18, 2016 at 05:15 AM

It may not be on a layer that the game camera culling mask allows. https://docs.unity3d.com/Manual/class-Camera.html

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 Aimorris · Oct 18, 2016 at 05:19 AM 0
Share

I have Culling $$anonymous$$ask set to Everything.

avatar image
0

Answer by Schreur · Feb 13, 2017 at 08:12 AM

Starting the particle system in the script with the "particlesystem".Play() function could help.

Comment
Add comment · 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
0

Answer by LiamofElites · Dec 23, 2017 at 11:46 AM

If you know that your particle system is playing (with particleSystem.Play()) check to see how far away the emission field is. I had the same problem so I tried making the emission field smaller and it came into view. I know this is an old question but I hope this helps other users if they have the same problem

Comment
Add comment · 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
0

Answer by MrCringeGaming · Sep 23, 2019 at 01:29 PM

I'm having the same issue and can't figure it out :( My particleSystem.Play() seems to work code wise, but in game i don't see any particles when i click my coin prefab....here is my reddit thread someone tried helping me but no still nothing.

Comment
Add comment · 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
0

Answer by Retro-1up-Junkie · Oct 20, 2020 at 10:45 AM

@MrCringeGaming and to anyone else hoping for a possible solution still.

here is my solved solution. I have my "player" on a sorting layer called "entities" and not the default layer, when adding the particle system effect as a child of the "player" I couldn't see the particles (only in scene view).

I highlighted the particle effect and in the "Inspector" scrolled to the bottom where it says "Renderer" (see image attached).

alt text

In the "Render options" (by clicking the render tab) you will see the > Sorting Layer ID I changed this from default > entities (or whatever layer your player is on), this was the solution for me.

Hope it helped any, glnhf


renderer.png (56.3 kB)
Comment
Add comment · 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
  • 1
  • 2
  • ›

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

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Instantiated Particle System seems to only be playing randomly and isn't being destroyed when it finishes. 0 Answers

Instantiate GameObject at Random time is not working 1 Answer

Make particle system cover a part of the parent, depending on the the part of the object that is colliding 0 Answers

Particle System Appearing 2D 2 Answers

Have to switch to Scene mode for particles to start issue 1 Answer


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