Skip to content

v5: Fix log writer errors for Unity 6#1264

Merged
ManlyMarco merged 2 commits intoBepInEx:v5-ltsfrom
Soggy-Pancake:v5-lts
Feb 7, 2026
Merged

v5: Fix log writer errors for Unity 6#1264
ManlyMarco merged 2 commits intoBepInEx:v5-ltsfrom
Soggy-Pancake:v5-lts

Conversation

@Soggy-Pancake
Copy link
Copy Markdown

In newer versions of unity the methods that were used to write to the unity log have changed. I have created a fix that will get the new method and assign the delegate.

Fixes #1256 and #1158

Description

If the original attempts fail use reflection to retrieve the new log method inside the original unity engine dll.

Motivation and Context

Errors were being made. I just got this after testing the new Atlyss beta and saw there were other reports.

How Has This Been Tested?

Supermarket Together and Atlyss (Beta branch) were launched with bepinex installed.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@ManlyMarco ManlyMarco changed the title Fix log writer errors for Unity 6 v5: Fix log writer errors for Unity 6 Feb 7, 2026
@ManlyMarco ManlyMarco added the bep5 Issues and PRs for the legacy version of BepInEx label Feb 7, 2026
@ManlyMarco ManlyMarco merged commit 37f0a9a into BepInEx:v5-lts Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bep5 Issues and PRs for the legacy version of BepInEx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants