handzlikchris / handzlikchris/FastScriptReload
Hot Reloading running coroutine can sometimes cause issues
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
`this is what happens to me. First time I deleted for loop it works, because FSR reloaded scripts when coroutine entered the first loop. Second time I delete the same for loop, FSR reloads scripts while coroutine is inside the deleted loop and it freezes`
https://user-images.githubusercontent.com/6343986/231097378-5286c659-63c0-4863-adc9-d81d4b440e31.mp4
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported Unity scenario: delete the same for loop while a coroutine is inside it, including a second reload, and compare the behavior with the attached video. Trace the hot-reload handling for running coroutines; done means repeated loop deletion no longer freezes the play session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100