Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

FSR: Manager is being destroyed in play session

未关闭
#155 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp, unity
领域
game-dev, tooling

调研方向

在全新的 Unity 6000.0.33f1 项目中使用 FastScriptReload 1.8,通过在 play mode 期间编辑 Test.cs 脚本来重现该问题。检查 Test.cs、生成的临时文件,以及报告的 Manager、main-thread 和编译错误。更改变量后能够成功重新加载,且没有列出的错误,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Here's what I've done:

  1. Created a brand new project using Unity 6000.0.33f1
  2. Imported the latest version of the asset (1.8)
  3. Created a test script that spins a cube
  4. Enter play mode and change a variable

When I do this Unity does the usual reload and I get a bunch of errors:

  1. FSR: Manager is being destroyed in play session
  2. Error when executing event, UnityEngine.UnityException: FindObjectsOfType can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene.
  3. FSR: Error when updating files: 'Test.cs', FastScriptReload.Editor.Compilation.HotReloadCompilationException: Thread was being aborted. ---> System.Threading.ThreadAbortException: Thread was being aborted.
  4. FSR: Compilation error: temporary files were not removed so they can be inspected: ...

Looking at the 'Test.cs' file and the temporary file that is created shows no errors or anything that would trip it up. I'm honestly not sure what is causing it to break or how to fix it. This is a brand new project and fresh install of the asset.

主要语言
C#
星标
2.3k
派生
171
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

handzlikchris/FastScriptReload 的其他 Issue

查看 handzlikchris/FastScriptReload 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。