Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.6.0-pre.3
Issue ID
1333494
Regression
No
Rect Transform track references don't get removed from the .prefab file after deleting the track itself
How to reproduce:
1. Open the user's attached project
2. Open the 'Director Prefab.prefab' file in a text editor
3. Observe the entries under 'PlayableDirector' > 'm_SceneBindings'
4. Open Window > Sequencing > Timeline
5. Open the 'Director Prefab' in the Prefab mode
6. In the Hierarchy select 'Canvas' > 'Text'
7. In the Inspector remove 'Text' and 'Rect Transform' components
8. In the Hierarchy select 'Director Prefab'
9. In the Timeline window delete the Rect Transform track
10. Save the Prefab
11. Open the 'Director Prefab.prefab' file in a text editor
12. Observe the entries under 'PlayableDirector' > 'm_SceneBindings'
Expected result: The last 'm_SceneBindings' entry gets deleted
Actual result: The last 'm_SceneBindings' entry doesn't get deleted, fileID value changes to 0
Reproducible with: 2018.4.34f1, Timeline 1.4.7 (2020.2.7f1, 2020.3.7f1), 1.5.4 (2019.4.25f1, 2020.2.7f1, 2021.1.5f1), 1.6.0-pre.3 (2020.3.7f1, 2021.2.0a16)
Notes:
- The issue doesn't reproduce if instead of completing steps 6-8 you just delete the Rect Transform track
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:
There is no way for Timeline to modify the Prefab if you are out of Prefab Isolation. You must go through the Prefab Overrides interface. And if you apply the overrides after removing the track, then everything goes down to zero, which is the expected result.
Additionally, in 2021.2, we have added an option to view and remove unused bindings in the PlayableDirector inspector, if you ever get to a state where the prefab still has saved bindings that are bound to nothing and you need to remove them.