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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
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.