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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.