When a task calls .Dispose, all components created for that project become missing from GameObjects in the scene.
TypeLibrary couldn't find Component errors are shown when pressing play.
The errors shown are the same as https://github.com/Facepunch/sbox-issues/issues/4802 The cause of the error seems different.
To Reproduce
Create a component that calls Dispose() on a Task in OnStart()
Save the script to kick off a recompile.
Press play so that OnStart() is run.
Close the s&box editor.
Reopen the s&box editor.
OBSERVED: All custom components are now missing. TypeLibrary couldn't find Component errors when entering playmode.
Describe the bug
When a task calls .Dispose, all components created for that project become missing from GameObjects in the scene.
TypeLibrary couldn't find Component
errors are shown when pressing play. The errors shown are the same as https://github.com/Facepunch/sbox-issues/issues/4802 The cause of the error seems different.To Reproduce
Dispose()
on a Task inOnStart()
TypeLibrary couldn't find Component
errors when entering playmode.Expected behavior
Either of the following:
Media/Files
No response
Additional context
No response