I create 3 same VFX in the scene. And they use a VFX shader(requires a MainTexture). And when I play the game only one VFX shows on the screen. And how to solve this problem to make all of them show on screen. (I think it might be associated with VFX shader’s shared resources.)
Hi!
Which Unity version are you using?
Do the 3 VFX play properly in edit mode?
Can you share the specific VFX so we try to reproduce on our side?
Thanks!
Each of them performs correctly in edit mode. But in game mode only one is prestented(I use code to play the three VFXs)
My Unity version: 2022.3.8.f1
My VFX:
It requires a VFX shader. The shader functs as a flipbook.
I did another test. If I play the VFX in different time in game mode they perform correctly.
Being a single burst, it looks to me that it could be this issue: Unity Issue Tracker - VFX Graph effect instance stops rendering when a second instance of the same effect starts 2 frames later
For 2022, it has been fixed in 2022.3.38f1, but you can disable instancing for that visual effect asset as a workaround.
1 Like