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

Bug No VFX in game

Discussion in 'Visual Effect Graph' started by Berens_mds, Feb 16, 2023.

  1. Berens_mds

    Berens_mds

    Joined:
    Mar 10, 2020
    Posts:
    5
    Hi,

    Our VFX are sometimes missing in our game. It seems to be random, sometime we got them and sometime we don't... So far we noticed :
    - Recompiling the VFX seems to fix the issue for a time as it is relinking some properties. But doing so for 500 VFX increase our build time from 3h to 10h
    - Just reimporting with AssetDatabase can fix the issue sometime but also increase our build time too significantly to be part of our build process.
    - In both ways, fixing the issue doesn't change any file on disk and thus, the fix cannot be shared with the rest of the team.

    The prefab referencing the VisualEffectAsset are explicitly addressables, but the vfxs are not.

    Any help would be appreciated.
     
  2. Berens_mds

    Berens_mds

    Joined:
    Mar 10, 2020
    Posts:
    5
    So in case anyone else is struggling with this too, we managed to fix the issue by launching Unity, reimporting all VisualEffectAssets on the project then close the editor before the actual build process (which opens Unity again and runs various tasks).
    Now we have all our VFXs in the game and we are only loosing about 5 - 10 minutes in the process.
    We, however, still don't understand why we have to do that for every build.