Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How can i get the submitters in particle system by scripts?

Discussion in 'Scripting' started by dreamerflyer, Jul 26, 2014.

  1. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Hi all,I want to change the submitters by script,how can work?thanks in advance~
     
  2. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
  3. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Last edited: Jul 27, 2014
  4. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    Are you using Shuriken or Legacy particle systems?
     
  5. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    using Shuriken
     
  6. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    Do you want to access the materials of the death particles?
     
  7. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    The API for shuriken is quite limited. I suspect that you are out of luck.
    Unless you are editorscripting, in which case you can use SerializedObject, but at runtime, nope.