Search Unity

Resolved VFX effects forced to pause while interacting with tile collider (2D)

Discussion in 'Visual Effect Graph' started by mashulman, Sep 8, 2022.

  1. mashulman

    mashulman

    Joined:
    Nov 29, 2021
    Posts:
    1
    I have a vfx graph which spawns particles on mouse click in a 2D game, from a starting point (player) to the center of the tile where the mouse is. It works perfectly fine, unless my player gameObject is touching a tile collider (other colliders are fine). When touching a tile collider, vfx OnPlay commands have no immediate effect at all (they seem to be queued), and currently animating systems are paused. The moment I move my player away from the tile collider, all commands resume and queued effects all take place immediately.

    There is nothing in my code to pause any vfx, and nothing in particular that happens when the player bumps into a wall (tile collider) that would pause other systems.

    Does anyone have any idea what may be the cause of this? Other than pausing/resuming, everything renders and runs normally.


    Thanks in advance!


    Resolved: common bounds issue. The collider was a red herring due to being at the edge of the map and where the coordinate cutoff occurred.
     
    Last edited: Sep 8, 2022