How to reproduce:
1. Open the “Test VFX Graph Bug“ project
2. Open the “VfxBug“ scene
3. Enter the Play Mode
4. Open the “TestVfx.vfx“ asset
5. In the Game view click on the “Spawn“ button
6. In the Game view click on the “Set Render Color“ button and then on the “Send Event OnPlay“ button
7. Observe the Console and Game view windows
Expected result: Particles are visible in the Game view and the “Event received“ message is logged in the Console
Actual result: No particles are visible in the Game view but the “Event received“ message is logged in the Console
Reproducible with: 2021.3.38f1, 2022.3.27f1, 6000.0.1f1
Reproducible on: macOS 13.5.2 (Intel), Windows 10 (User)
Not reproducible on: No other environments tested
Notes:
- You can also observe that the live particles are increased and decreased by opening the VFX Control panel with the “TestVfx (Clone)“ GameObject in the Play Mode with Debug Modes set to Alive, but the particles are still not rendered
- The issue is caused by “renderer.material.SetColor(_materialProperty, _color);” code snippet when the Renderer is taken from VisualEffect
- Reproducible in Player