Search Issue Tracker
Fixed
Votes
1
Found in [Package]
2.7.1
Issue ID
SPLB-321
Regression
Yes
Splines are not removed from the Scene view when removing from Spline Container
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Select “Spline container” GameObject in the Hierarchy window
4. Click the Gizmos button in the toolbar of the Scene view to toggle the visibility of all Gizmos
5. In the Inspector window, select any element under the Splines component and remove it (click “-” button)
6. Observe the Scene view
Expected result: The removed spline should disappear from the Scene view when deleted from the Spline Container
Actual result: The removed spline does not disappear from the Scene view
Reproducible with: 2.5.2 (2021.3.46f1), 2.7.1 (2022.3.52f1, 6000.0.27f1, 6000.1.0a4)
Not reproducible with: 2.5.1 (2021.3.46f1)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Commenting out the contents of the {{Editor_CustomSplineContainerScript.cs}} file resolves the issue, allowing splines to be properly removed from the Scene view
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note:
The repro steps included replacing our custom SplineContainer inspector which notifies the Spline when a structural change was made so clean up can be done. Be careful to use our functions like `AddSpline` and `RemoveSplineAt` when creating your own SplineContainerEditor, otherwise you'll get other issues like the KnotLinkCollection not being properly updated (there's no way for us to detect what changed about the spline array when modifying the serialization directly). This bug has other use cases that warrant a fix but I wanted to make clear what other problems may be encountered with the given repro step.