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 ShaZe · Jun 09, 2012 at 04:40 AM · shurikendynamicallyellipse

Shuriken Scripting, disappointed

I am trying to modify individual particules so that their position, velocity or any other settings update dynamically to where I need them.

So far it seems the only thing we can do is setup the particules initially using SetParticules but the integrated system automatically overwrite any changes I have done afterward.

In short words, I am trying to use an "Elipsoid" effect using shuriken, which is possible so far using a custom mesh. Problem is, the generation of the particules is completly random and there is absolutly no way to disable it, resulting in particules overlapping or spawning in unwanted shapes.

So since Shuriken seemed to have a complete lack of flexibility, I chose to script my effect instead, and yeah.... I didn't expect the ParticuleSystem class to be so limited...

Any solutions?, I am thinking about scratching out the use of Shuriken for it and creating my own system instead, but it really does not please me since I believe using gameobjects as particules will be much more power hungry than using what the particules system uses. Maybe I could go back to the legacy systems? I thinks they were much more flexible, kinda sad to say.

Comment
Add comment
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 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by ShaZe · Jun 09, 2012 at 08:30 AM

Argh, I had forgotten that the GetParticle method that was returning a integer was actually also returning the list of particles to a local array.

 int length = particleSystem.GetParticles(particles);

Yeah... I really dislike how some elements within Unity are "Bound" together. Like the GUI element with the If statement, sure, it make common things easier but make advanced operation much more complicated.

At least once you know it, it is fine as long as you remember these exceptions.

I still don't understand why setting a new array of particle created from scratch with brand new parameters was not updating anything tough, I suppose there was a few other necessary variable that either needed to be setted up or that could not be initialized internally.

Oh well, at least the problem has not be resolved and I can now start scripting the hell out of it.

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 asafsitner · Jun 09, 2012 at 08:51 AM 0
Share

Well then, that's good to hear. Also nice of you to include the solution to your problem.

Now if you'll accept your own answer (click the round v mark on the left) that'd be great. It will mark the question as answered so that future generations can benefit from your solution. :)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

shuriken auto destruct script doesn't ALWAYS work? 2 Answers

Set a range of startSpeed for Shuriken via script 2 Answers

One material for many objects with different textures 2 Answers

how to access Shuriken Particle System Modules in script 6 Answers

Change new Shuriken Particle System mesh/texture in script? 0 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