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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Spawn particles on a irregular (2D) ground?

Discussion in 'General Graphics' started by Akuramuzda, Jul 10, 2022.

  1. Akuramuzda

    Akuramuzda

    Joined:
    Apr 26, 2021
    Posts:
    5
    Hi,
    I need to create a fog using particles system (or VFX) that follows the ground. The red line represents where the particles should be created. The ground is a tilemap that contains a tilemap collider and a composite collider 2D.

    Is there any way to do this without creating multiple particles systems?
     

    Attached Files:

    Last edited: Jul 10, 2022
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    ParticleSystem.Emit let’s you emit particles from anywhere via script
     
    Akuramuzda likes this.
  3. Akuramuzda

    Akuramuzda

    Joined:
    Apr 26, 2021
    Posts:
    5
    Thanks! Worked perfectly.
     
    richardkettlewell likes this.