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
- [Happy Harvest] #ThunderLabel text is "\u26C8" instead of "⛈"
- Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
- Sprite Editor dropdown text is cut-off for options with longer text
- Sprite Editor can't be scrolled horizontally using the trackpad gesture
- BRG picking skips BatchDrawCommandProcedural when selecting the GameObject in the scene
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.