Search Issue Tracker
Fixed in 12.0.0
Votes
2
Found in [Package]
10.1.0
Issue ID
1284053
Regression
No
Null reference exception when connecting GPU Event to SubGraph Start
How to reproduce:
1. Open the attached project "1284053.zip"
2. Double-click "New VFX" in the Assets folder
3. In opened VFX graph find Update Particle Node's (on the left) -> Trigger Event Always -> Evt
4. Try connecting it to "New VFX_Subgraph" node
5. Observe console
6. Try connecting it to "GPUEvent" that's connected to "New VFX_Subgraph_Alt"
7. Observe console
Optional
8. Try connecting it to "GPUEvent" that's connected to "Initialize Particle"
9. Observe Game View while having "SampleScene" opened
Expected results: No console errors are observed and VFX works as intended
Actual results: Console errors are observed:
(Compute shader ([System 1]Update Particle): Property (eventListOut_a) at kernel index (0) is not set, New VFX : Exception while compiling expression graph: System.NullReferenceException: Object reference not set to an instance of an object)
Reproducible with: 8.2.0 (2020.1.9f1), 10.0.0-preview.27 (2020.2.0b7, 2021.1.0a5), 10.1.0 (2021.1.0a5)
Couldn't test: 2018.4 and 2019.4 as lacking VFX functionality, other console errors
Note:
Optional steps are for observing that VFX is indeed working
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 12.0.0):
Fix available in 2021.2.0a4 and above
The VisualEffectGraph doesn't support "partial" system to be stored as subgraph (yet).
There is a lack of verification while providing the "subgraph" option in context menu.