Search Unity

New User's Question - obsolete particle collider?

Discussion in 'Getting Started' started by Torgonator424, Jan 3, 2016.

  1. Torgonator424

    Torgonator424

    Joined:
    Dec 15, 2013
    Posts:
    4
    I get this warning message - how do I fix, or even need to? Strange that something should be "obsolete" in a new version of Unity (especially a sample package!) TIA!

    Assets/Standard Assets/ParticleSystems/Scripts/WaterHoseParticles.cs(41,48): warning CS0618: `UnityEngine.ParticleCollisionEvent.collider' is obsolete: `collider property is deprecated. Use colliderComponent instead, which supports Collider and Collider2D components.'
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,192
    It's simply a warning that a feature is being modified and the older method will eventually be removed. You could choose to ignore it for now and simply change it later once you've gotten more familiar with the framework.

    Alternatively you should be able to simply replace "collider" with "componentCollider". It appears to simply be a modification to better support 2D games.
     
    Last edited: Jan 3, 2016
    Ricks77 likes this.
  3. Torgonator424

    Torgonator424

    Joined:
    Dec 15, 2013
    Posts:
    4
    Thank you! :D