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.

Resolved Parenting gameObject holding visual effect - weird behaviour

Discussion in 'Visual Effect Graph' started by Thibault_potier, May 14, 2021.

  1. Thibault_potier

    Thibault_potier

    Joined:
    May 4, 2021
    Posts:
    46
    Hi

    I made some visual effect here and I'm trying to set up my gameObject hierarchy to make a nice prefab.

    Somehow, when I assign a new parent to the gameObject holding the visual effect, the parent transform got changed.



    You can see that there is a weird offset on y axis for my visual effect, and when i try to parenting a empty transform (to catch up the offset) it juste replicate the offset along the hierarchy.

    So I end up having a super weird prefab with an ugly offset between the transform and the object

    Here is the vfx graph :



    Has anyone got a trick to solve this issue ?

    Thanks,
    Thibault
     
  2. Thibault_potier

    Thibault_potier

    Joined:
    May 4, 2021
    Posts:
    46
    I just found a small fix : I'm manually offseting the visual effect in the graph to catch up the error



    However I would prefer to have a "clean" solution rather than this trick
     
  3. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    549

    Attached Files:

  4. Thibault_potier

    Thibault_potier

    Joined:
    May 4, 2021
    Posts:
    46
    Ooooh indeed it's there ! Thanks a lot
     
    VladVNeykov likes this.