Search Issue Tracker

Fixed in 2019.4.X

Votes

0

Found in

2019.2

2019.3

2020.1

2020.1.0b4

2020.2

Issue ID

1232309

Regression

No

[VFX Graph] InvalidOperationException errors are throwing continuously on selecting node preset asset

Visual Effects

-

InvalidOperationException errors are throwing continuously on selecting "Output particle Distortion Quad" node preset asset.

Steps to repro:
1. Create anew HDRP template project.
2. Project Window > Right Click > Create > Visual Effects > Visual Effect Subgraph Operator.
2. Open VFX Subgraph operator > Drag range property.
3. Range > Output particle Distortion Quad > Create its preset.
4. Select the newly created preset asset.

Actual Result:
InvalidOperationException errors are thrown in the console.

Expected Result:
No error in the console.

Reproducible in:
2020.2.0a5 with 8.0.1, 2020.1.0b4 with 8.0.1, 2019.3.8f1 with 7.3.1,
2019.2.0f1 with 6.9.0.

Note: Subgraph operator is available in VFX Graph from 2019.2.

Environment:
Occurring on Windows 10 & Mac 10.15.

Stack trace:
InvalidOperationException: Owner is already set
UnityEditor.VFX.VFXSRPSubOutput.Init (UnityEditor.VFX.VFXAbstractRenderedOutput owner) (at Library/PackageCache/com.unity.visualeffectgraph@8.0.1/Editor/Models/Contexts/VFXSRPSubOutput.cs:18)
UnityEditor.VFX.VFXAbstractRenderedOutput.GetOrCreateSubOutput () (at Library/PackageCache/com.unity.visualeffectgraph@8.0.1/Editor/Models/Contexts/Implementations/VFXAbstractRenderedOutput.cs:82)
UnityEditor.VFX.VFXAbstractRenderedOutput.InitSubOutputs (System.Collections.Generic.List`1[T] subOutputs, System.Boolean invalidate) (at Library/PackageCache/com.unity.visualeffectgraph@8.0.1/Editor/Models/Contexts/Implementations/VFXAbstractRenderedOutput.cs:102)
UnityEditor.VFX.VFXAbstractRenderedOutput.OnEnable () (at Library/PackageCache/com.unity.visualeffectgraph@8.0.1/Editor/Models/Contexts/Implementations/VFXAbstractRenderedOutput.cs:89)
UnityEditor.VFX.VFXAbstractDistortionOutput.OnEnable () (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.0.1/Editor/VFXGraph/Outputs/VFXAbstractDistortionOutput.cs:70)
UnityEditor.Presets.PresetEditor:OnEnable()

  1. Resolution Note (fix version 2019.4):

    We are removing the preset edition with VFXModel.
    This kind of edition is unexpected due to hierarchical children serialization.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.