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

Bug VisualEffects in subscenes are repositioned when built with IL2CPP

Discussion in 'Entity Component System' started by davenirline, Aug 1, 2023.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    943
    This what's in editor:
    upload_2023-8-1_18-14-50.png

    This is what's in the build:
    upload_2023-8-1_18-15-45.png

    The visual effects are somehow repositioned to one location. We had this problem before but it's still not fixed in the latest version. Because of this, we have to do a clunky workaround of collecting these visual effects and spawn them in GameObject world instead.

    Maybe you have ideas on how to fix? Or a more elegant workaround?
     
  2. apkdev

    apkdev

    Joined:
    Dec 12, 2015
    Posts:
    263
    Are you using property binders? VFX in subscenes always seemed to work just fine on my end. (I'm not on the latest package versions at the moment though)

    I just noticed the thread title refers to IL2CPP builds, you mean this issue doesn't occur on Mono builds?
     
  3. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    943
    We are currently using property binders. However, when underlying entities are updated, like destroyed, we have to remove the associated VFX as well. It's extra work that could have been avoided.

    Yep, works fine in Mono builds.