镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

You can just change Enter Play Mode Settings #4

Open

Description

@malvislight

Unity Agent Client DOES NOT recommend using AI agents for coding within the editor. Due to Unity's constraints, editing C# scripts triggers a Domain Reload, disconnecting the session.

You can just change Enter Play Mode Settings to avoid this problem. All you need to do is change the value of EditorSettings.enterPlayModeOptions.

Image

From code:

EditorSettings.enterPlayModeOptions = EnterPlayModeOptions.DisableDomainReload;

Activity

  1. nuskey8 commented on Nov 16, 2025

    @nuskey8
    Owner

    This setting only disables domain reload when entering play mode, and does not apply to cases where C# scripts are rewritten in the editor.

    Currently, Unity does not have an official hot reload function, so the ability to edit code from an editor extension is not very useful. This is expected to be improved with the transition to CoreCLR, but it is not yet decided in which version CoreCLR will be introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions