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

Set Position over Life does not work in the Initialize context.

Discussion in 'Visual Effect Graph' started by Yothuba, Aug 19, 2021.

  1. Yothuba

    Yothuba

    Joined:
    Oct 4, 2019
    Posts:
    18
    Unity version is 2020.3.15f2.
    This will work if you use the exact same block in an update or output context.
    Is this a spec? Is it a bug?
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,123
    Hello, your description is poorly written and I don't get whats the actual problem.
    Using this node in initialize does not make much sense as life of particle will be always 0 during initialization.
    Initialization is called once at the beggining, while Update and Output contexts are called constantly.
     
    Yothuba likes this.
  3. Yothuba

    Yothuba

    Joined:
    Oct 4, 2019
    Posts:
    18
    Oh, I see.
    I was mistaken.
    I thought Set Position Over Life set the position change in the lifecycle, and the actual position change was done by internal processing.
    In fact, it itself acquires the passage of the lifetime and changes the position.