Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 marvalshot · Jun 25, 2014 at 02:58 PM · particle systemshuriken

Unity 4.3 Shuriken Particles attached to Sprite

How do I add more than 1 shuriken particle system to a sprite game object (to create an effect)? If I attempt to add more I receive an error from the inspector. I want to add several particle systems to create an effect like when nesting them to parents when not attached as a component to other game objects. Thank you

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 Owen-Reynolds · Jun 25, 2014 at 05:03 PM 0
Share

What does "an effect like when nesting them to parents when not attached as a component to their game objects." mean?

Does this mean you tried setting up several gameObjects with particleSystems as child/parent, but it didn't work? That's the usual way. What was wrong with it?

avatar image marvalshot · Jun 25, 2014 at 07:16 PM 0
Share

Thanks and I am sorry, I nest particle systems in particle systems than add to scene and the "particle effect" is created with all systems emitting. I can add a particle system through the inspector to a sprite game object and then access the system in code. I can not or do not know how to add more than one particle system nested or otherwise to the sprite via the inspector. Is this possible and if it is not possible how would I go about coding so I can access all the systems? Hope it is a little more clearer

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Jun 26, 2014 at 02:09 PM

In general, Unity is set up so that each type of component goes on a gameObject once. If you want more of a component, make another gameObject with it and make that gameObject a child of the other one. To find the other component, use the standard "finding a child" method.

If you have several "equal" components, have the parent not have one at all, and then have each child gameObject have one of them. That can make coding easier (for example, a single foreach can handle them all.) You are allowed to have them all nested -- grandchildren and so on. But there isn't much reason. Easier to have all be direct children of the main parent.

As to why, if a single gameObject had two renderers, or particleSystems, then g.renderer wouldn't know which one you were talking about. Plus, say you want two particleSystems aimed in a little different direction. If both are components on the same gameObject, you can't do that.

Of course, if this is something specific to particle systems (subParticles,) or Sprites (not sure what that trick would be,) the answer may be different.

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 marvalshot · Jun 27, 2014 at 01:44 AM 0
Share

Thank you for the excellent explanation. I did as mentioned. I just nested the particles as separate "equal" particle system game objects with the sprite game object as parent. I can then tag them and through script component access I select the particle systems as needed based on the tag. These particle systems than create the particle effect I need. Thanks again

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Particle System(Shuriken) optimization problem 1 Answer

Line of particles from starting position 0 Answers

Use standard shader on particles meshes 0 Answers

How to make particles react to movement of particle system 4 Answers

Change colour of particles with C# 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