Search Unity

Particle StartColor Min Max Value - C#

Discussion in 'Scripting' started by Too-Nerd-To-Die, May 4, 2016.

  1. Too-Nerd-To-Die

    Too-Nerd-To-Die

    Joined:
    Apr 28, 2014
    Posts:
    44
    Hello guys, have searched a lot and found nothing, I'm racking my brain, could someone help me?

    How can I get access to the Start Color of a particle and change the min and max value of the color, i didn't found in the docs.

    I need the min and max to add some variations on the leafs and smokes, with passing time.
     

    Attached Files:

  2. Too-Nerd-To-Die

    Too-Nerd-To-Die

    Joined:
    Apr 28, 2014
    Posts:
    44
    No one or im in wrong place?
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,292
    You can not currently access the curve for startColor, it can only be set to a literal Color value. We are adding access to the remaining curve properties in the particle system but this wont be available until 5.5. For now it is only possible through the inspector and possibly by using SerializedObjects(editor only).
     
    Too-Nerd-To-Die likes this.
  4. Too-Nerd-To-Die

    Too-Nerd-To-Die

    Joined:
    Apr 28, 2014
    Posts:
    44
    Thank you!