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

Warning Parcticle System in Script

Discussion in 'Scripting' started by Lightme, Feb 6, 2018.

  1. Lightme

    Lightme

    Joined:
    Jul 15, 2017
    Posts:
    23
    Code (csharp):
    1. newParticleSystem.startLifetime
    // `UnityEngine.ParticleSystem.startLifetime' is obsolete: `startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'

    The only warning I am getting, how do I have to change it to make it work properly?
     
    Last edited: Feb 6, 2018
  2. Lightme

    Lightme

    Joined:
    Jul 15, 2017
    Posts:
    23
    Can someone help me in a direction, because the documentation doesn't says nothing... :(
     
  3. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712