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
- "F" default focusing Unity shortcut zooms out when the first time focusing the GameObject
- DropdownField options added with PointerDownEvent are not shown when clicking the DropddownField for the first time
- References are reset to "None" when opening the project
- [Android] The Android Player Crashes on GLES3/MRT with the "E libEGLĀ : eglGetFrameTimestampsANDROIDImpl:2355 error 3002 (EGL_BAD_ACCESS)" error
- [iOS] Spikes can be seen in the Profiler when tapping the screen on ProMotion devices
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.