Search Issue Tracker
Fixed
Fixed in 2.7.X
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
- SearchExpression strips quotes
- dSYM file is not created during macOS standalone build
- Project Settings panels disappear and do not repaint when entering Play Mode without reloading Domain
- Screen Space Decals ignore Rendering Layer Mask when using OpenGL Graphics API
- Crash on scripting_method_invoke when the Player is build before entering the Play mode in the Editor
Resolution Note (fix version 2.7.X):
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.