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

I cannot find a way to use light probes with particles

Discussion in 'Visual Effect Graph' started by PJRM, Oct 27, 2020.

  1. PJRM

    PJRM

    Joined:
    Mar 4, 2013
    Posts:
    303
    Hi.
    I'd like to know how do i use light prefab or even cast light with each particles the way we use to do with the old particle system?
    upload_2020-10-27_12-38-58.png

    Is that even possible?
    Cheers.
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @PJRM ,

    There is no Visual Effect Graph equivalent to the Light module in the built-in particle system at the moment.

    We added in the 10.1 package CPU Output Events, which would allow you to query the spawning of particles via a delegate interface in C#. This can help you for example to assign a random spawn position of particles in the VFX Graph, then in C# get the event and the position data, and manually spawn a light. But the light will not follow the particles if they move over their lifetime, so it's not a proper replacement for the Light module in the built-in particle system.
     
    karl_jones and PJRM like this.
  3. PJRM

    PJRM

    Joined:
    Mar 4, 2013
    Posts:
    303
    Thank you so much for this insight.
    So i'll have to rethink how i want my effects to be. Thank you again!
     
    VladVNeykov likes this.