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
- 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 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.