# \#Mono

**URL:** https://discussions.unity.com/tag/mono/159602.md

[Latest](https://discussions.unity.com/latest.md) · [Categories](https://discussions.unity.com/categories.md) · [Tags](https://discussions.unity.com/tags.md)

---

## [Manual Static Cleanup is a Nightmare and AutoStaticsCleanup is no Solution!](https://discussions.unity.com/t/manual-static-cleanup-is-a-nightmare-and-autostaticscleanup-is-no-solution/1732415)

<div class="topic-metadata">

**Author:** [@lucy\_codes](https://discussions.unity.com/u/lucy_codes)\
**Replies:** 61\
**Last updated:** [October 8, 2026, 6:50pm UTC](https://discussions.unity.com/t/manual-static-cleanup-is-a-nightmare-and-autostaticscleanup-is-no-solution/1732415 "2026-10-08T18:50:01Z")

</div>

Let me get one thing straight first: Modernizing .NET and moving to CoreCLR sounds amazing. But forcing us to manually track down every single static field just to keep our game states from corrupting across Play mode t…

---

## [CoreCLR vs IL2CPP vs Mono: The performance gains are awesome!](https://discussions.unity.com/t/coreclr-vs-il2cpp-vs-mono-the-performance-gains-are-awesome/1736285)

<div class="topic-metadata">

**Author:** [@KevinFernandes](https://discussions.unity.com/u/KevinFernandes)\
**Replies:** 4\
**Last updated:** [September 11, 2026, 11:00pm UTC](https://discussions.unity.com/t/coreclr-vs-il2cpp-vs-mono-the-performance-gains-are-awesome/1736285 "2026-09-11T23:00:06Z")

</div>

Just wanted to say thank you to the Unity team for tackling this. Was trying 6.7 latest version on an architecture/framework I’ve been working on for a while and testing against different solutions both C++ and Unity C#…

---

## [There is a problem within the code i couldn't solve](https://discussions.unity.com/t/there-is-a-problem-within-the-code-i-couldnt-solve/1734898)

<div class="topic-metadata">

**Author:** [@unity\_3DF6A2F425B57C866140](https://discussions.unity.com/u/unity_3DF6A2F425B57C866140)\
**Replies:** 5\
**Last updated:** [August 28, 2026, 12:34pm UTC](https://discussions.unity.com/t/there-is-a-problem-within-the-code-i-couldnt-solve/1734898 "2026-08-28T12:34:28Z")

</div>

I just got started coding in unity I do have some experience however it’s in other coding lanquages so i’m quite comfused there are “no references” in the code I couldn’t solve it

---

## [Huge GC Performance regression - Player](https://discussions.unity.com/t/huge-gc-performance-regression-player/1731997)

<div class="topic-metadata">

**Author:** [@OndrejP](https://discussions.unity.com/u/OndrejP)\
**Replies:** 3\
**Last updated:** [August 19, 2026, 6:46am UTC](https://discussions.unity.com/t/huge-gc-performance-regression-player/1731997 "2026-08-19T06:46:34Z")

</div>

When upgrading to Unity 6.5, I’ve noticed huge GC performance regression and considerably slower scene loading times (like 10x slower). Unity 6.4: Unloading 263 unused Assets / (11.7 MB). Loaded Objects now: 1490771. M…

---

## [\[BUG\] Unity 6 Build Game Process Continues Running in Background After Closing Window](https://discussions.unity.com/t/bug-unity-6-build-game-process-continues-running-in-background-after-closing-window/1573387)

<div class="topic-metadata">

**Author:** [@Amas12](https://discussions.unity.com/u/Amas12)\
**Replies:** 23\
**Last updated:** [August 8, 2026, 6:21pm UTC](https://discussions.unity.com/t/bug-unity-6-build-game-process-continues-running-in-background-after-closing-window/1573387 "2026-08-08T18:21:21Z")

</div>

After upgrading to unity 6. When I try to close my multiplayer game, the process continues running in the background even after closing the window. Specifically: When I press Alt + F4 or click the close button, onl…

---

## [CoreCLR, Scripting, and ECS Status Update - March 2026](https://discussions.unity.com/t/coreclr-scripting-and-ecs-status-update-march-2026/1711852)

<div class="topic-metadata">

**Author:** [@EricDziurzynski](https://discussions.unity.com/u/EricDziurzynski)\
**Replies:** 242\
**Last updated:** [July 24, 2026, 10:22am UTC](https://discussions.unity.com/t/coreclr-scripting-and-ecs-status-update-march-2026/1711852 "2026-07-24T10:22:08Z")

</div>

Hi everyone, This is my first full update since taking on Product coverage of the Core Engine team at Unity. Our intent is to provide quarterly updates as we get closer to releasing changes towards a full CoreCLR Editor…

---

## [Logging Win32Exceptions creates incomplete log entries](https://discussions.unity.com/t/logging-win32exceptions-creates-incomplete-log-entries/1704804)

<div class="topic-metadata">

**Author:** [@nurmr](https://discussions.unity.com/u/nurmr)\
**Replies:** 3\
**Last updated:** [June 11, 2026, 7:33am UTC](https://discussions.unity.com/t/logging-win32exceptions-creates-incomplete-log-entries/1704804 "2026-06-11T07:33:56Z")

</div>

I discovered that when logging a System.Net.Sockets.SocketException using UnityEngine.Debug.Log that only part of the exception is logged (the stack trace is completely missing). Example: Debug.Log($"Error occurred: {ex…

---

## [Preparing for CoreCLR? I built an auto-refactoring tool to safely reset your static variables](https://discussions.unity.com/t/preparing-for-coreclr-i-built-an-auto-refactoring-tool-to-safely-reset-your-static-variables/1722341)

<div class="topic-metadata">

**Author:** [@ventriosAI](https://discussions.unity.com/u/ventriosAI)\
**Replies:** 7\
**Last updated:** [June 7, 2026, 3:03pm UTC](https://discussions.unity.com/t/preparing-for-coreclr-i-built-an-auto-refactoring-tool-to-safely-reset-your-static-variables/1722341 "2026-06-07T15:03:08Z")

</div>

Hi everyone, With Unity transitioning fully to CoreCLR in the upcoming Unity 6 updates (like 6.8) and changing the traditional Domain Reload behavior, migrating legacy projects or large packages has become a major heada…

---

## [How can I change the Sound output device?](https://discussions.unity.com/t/how-can-i-change-the-sound-output-device/916271)

<div class="topic-metadata">

**Author:** [@Bauflow](https://discussions.unity.com/u/Bauflow)\
**Replies:** 16\
**Last updated:** [May 29, 2026, 2:57pm UTC](https://discussions.unity.com/t/how-can-i-change-the-sound-output-device/916271 "2026-05-29T14:57:55Z")

</div>

I’m trying to create a dropbox where I can choose whether to use my headset or the speakers, but I have no idea how to start.

---

## [Tips for writing cleaner code that scales in Unity Part 6: Expanding interactions with locks, keys, and breakable doors](https://discussions.unity.com/t/tips-for-writing-cleaner-code-that-scales-in-unity-part-6-expanding-interactions-with-locks-keys-and-breakable-doors/1711071)

<div class="topic-metadata">

**Author:** [@TechnicalContentTeam](https://discussions.unity.com/u/TechnicalContentTeam)\
**Replies:** 0\
**Last updated:** [March 2, 2026, 12:36pm UTC](https://discussions.unity.com/t/tips-for-writing-cleaner-code-that-scales-in-unity-part-6-expanding-interactions-with-locks-keys-and-breakable-doors/1711071 "2026-03-02T12:36:41Z")

</div>

We’re extending our cleaner code series to show the payoff of the principles we explored in articles 1–5 in real, game-like scenarios. A well-designed foundation makes new features easier to add, and existing features sa…

---

## [Omg are you really already taking progress in CoreCLR?](https://discussions.unity.com/t/omg-are-you-really-already-taking-progress-in-coreclr/1709268)

<div class="topic-metadata">

**Author:** [@WinterOfBit](https://discussions.unity.com/u/WinterOfBit)\
**Replies:** 2\
**Last updated:** [February 18, 2026, 5:41pm UTC](https://discussions.unity.com/t/omg-are-you-really-already-taking-progress-in-coreclr/1709268 "2026-02-18T17:41:43Z")

</div>

I found some thing in changelog of com.unity.recorder… excited

---

## [UI buttons don't work on Android build but work in editor](https://discussions.unity.com/t/ui-buttons-dont-work-on-android-build-but-work-in-editor/893979)

<div class="topic-metadata">

**Author:** [@Robster95](https://discussions.unity.com/u/Robster95)\
**Replies:** 11\
**Last updated:** [February 17, 2026, 11:51am UTC](https://discussions.unity.com/t/ui-buttons-dont-work-on-android-build-but-work-in-editor/893979 "2026-02-17T11:51:56Z")

</div>

I have a problem where the player is not able to interact with the buttons on the main menu while playing on a build for android devices. I have the main menu loaded additively on the main game (a small hyper casual mob…

---

## [Missing MonobleedingEdge folder on Mac in Unity 6.3](https://discussions.unity.com/t/missing-monobleedingedge-folder-on-mac-in-unity-6-3/1703840)

<div class="topic-metadata">

**Author:** [@TotalReality](https://discussions.unity.com/u/TotalReality)\
**Replies:** 1\
**Last updated:** [January 14, 2026, 11:17am UTC](https://discussions.unity.com/t/missing-monobleedingedge-folder-on-mac-in-unity-6-3/1703840 "2026-01-14T11:17:52Z")

</div>

I have a project which uses a plugin which searches for the MonoBleedingEdge folder in the editor install location. On Unity 6000.2.14f1 this folder exists on both windows and Mac, but after updating to Unity 6000.3.0f1,…

---

## [Are C# expression trees supported on all PC, Mac and Mobile target platforms?](https://discussions.unity.com/t/are-c-expression-trees-supported-on-all-pc-mac-and-mobile-target-platforms/1700878)

<div class="topic-metadata">

**Author:** [@jakesee](https://discussions.unity.com/u/jakesee)\
**Replies:** 13\
**Last updated:** [December 22, 2025, 6:23pm UTC](https://discussions.unity.com/t/are-c-expression-trees-supported-on-all-pc-mac-and-mobile-target-platforms/1700878 "2025-12-22T18:23:17Z")

</div>

Hi, I just learnt about C# expression trees, never used them before. This week I implemented a trigger system based on reading file data and compiling them into runtime delegates and actions. I think I am just using bas…

---

## [Cutting Mesh Triangles In Half By in a plane](https://discussions.unity.com/t/cutting-mesh-triangles-in-half-by-in-a-plane/1700995)

<div class="topic-metadata">

**Author:** [@firstkindgamer](https://discussions.unity.com/u/firstkindgamer)\
**Replies:** 6\
**Last updated:** [December 21, 2025, 4:26pm UTC](https://discussions.unity.com/t/cutting-mesh-triangles-in-half-by-in-a-plane/1700995 "2025-12-21T16:26:56Z")

</div>

Hello! I’m Currently Trying to Create a Tree Chopping Mechanic in Unity. I have a Mesh Splitting Script that handles triangles above the plane, triangles below the plane, and triangles in “connected” meshes (eg, same me…

---

## [Strange build asset version error](https://discussions.unity.com/t/strange-build-asset-version-error/948330)

<div class="topic-metadata">

**Author:** [@Trussmister](https://discussions.unity.com/u/Trussmister)\
**Replies:** 9\
**Last updated:** [December 5, 2025, 9:37am UTC](https://discussions.unity.com/t/strange-build-asset-version-error/948330 "2025-12-05T09:37:15Z")

</div>

Hi i had a strange warning that i cannot fix and seemed important, thanks in advance. the error: Build asset version error: assets/classes/classdefults.cs in SourceAssetDB has modification time of ‘2024-05-23T23:50:37Z…

---

## [Error with IL2CPP build ! Has anyone had success building their project using Firebase and the IL2CPP backend?](https://discussions.unity.com/t/error-with-il2cpp-build-has-anyone-had-success-building-their-project-using-firebase-and-the-il2cpp-backend/1691066)

<div class="topic-metadata">

**Author:** [@Essotaha](https://discussions.unity.com/u/Essotaha)\
**Replies:** 2\
**Last updated:** [October 21, 2025, 1:59pm UTC](https://discussions.unity.com/t/error-with-il2cpp-build-has-anyone-had-success-building-their-project-using-firebase-and-the-il2cpp-backend/1691066 "2025-10-21T13:59:23Z")

</div>

After trying to build using the scripting backend (IL2CPP), I encountered several errors related to using R8. Steps I tried: I enabled ’ Use R8 ’ in the player settings. Result: The issue was not resolved. Delete the …

---

## [How do you configure weapon camera?](https://discussions.unity.com/t/how-do-you-configure-weapon-camera/1691122)

<div class="topic-metadata">

**Author:** [@AverageGamerStudios](https://discussions.unity.com/u/AverageGamerStudios)\
**Replies:** 3\
**Last updated:** [October 20, 2025, 9:28am UTC](https://discussions.unity.com/t/how-do-you-configure-weapon-camera/1691122 "2025-10-20T09:28:46Z")

</div>

So I get the gist. Make a hand container, parent it to the player, set the gun to the hand container. But, how should I handle the weapon camera? Should I have it parented to the hand camera, or should I have it the same…

---

## [I got problems while I was implementing solution base on starter asset about ThirdPerson Controller](https://discussions.unity.com/t/i-got-problems-while-i-was-implementing-solution-base-on-starter-asset-about-thirdperson-controller/1690671)

<div class="topic-metadata">

**Author:** [@Andy\_Mai86](https://discussions.unity.com/u/Andy_Mai86)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 3:24pm UTC](https://discussions.unity.com/t/i-got-problems-while-i-was-implementing-solution-base-on-starter-asset-about-thirdperson-controller/1690671 "2025-10-16T15:24:00Z")

</div>

I got from the asset store this asset: Starter Assets - ThirdPerson | Updates in new CharacterController package Despite I tryed more and more times to basically change the mesh of the player that can be moved according…

---

## [Unity 2d Drag system](https://discussions.unity.com/t/unity-2d-drag-system/1688322)

<div class="topic-metadata">

**Author:** [@wisth3r](https://discussions.unity.com/u/wisth3r)\
**Replies:** 2\
**Last updated:** [October 4, 2025, 1:40pm UTC](https://discussions.unity.com/t/unity-2d-drag-system/1688322 "2025-10-04T13:40:12Z")

</div>

In the game I made in Unity 2D, there will be shapes of certain objects on the side of the scene in the UI, and if we have enough money, we will be able to drag those shapes on the scene, and there will be a grid on the …

---

## [Are Event functions executed for ALL monobehaviors before stepping to the next Event function?](https://discussions.unity.com/t/are-event-functions-executed-for-all-monobehaviors-before-stepping-to-the-next-event-function/1685074)

<div class="topic-metadata">

**Author:** [@Opaweynch](https://discussions.unity.com/u/Opaweynch)\
**Replies:** 4\
**Last updated:** [September 25, 2025, 11:03am UTC](https://discussions.unity.com/t/are-event-functions-executed-for-all-monobehaviors-before-stepping-to-the-next-event-function/1685074 "2025-09-25T11:03:26Z")

</div>

Disclaimer: sorry if this question is silly, I have always been assuming the answer to be ‘yes’ but cannot find it explicitly in the doc :sweat\_smile: In the Event function execution order doc, we see that, for each mon…

---

## [ShiftJIS encoded C# script cause errors in Unity](https://discussions.unity.com/t/shiftjis-encoded-c-script-cause-errors-in-unity/1679446)

<div class="topic-metadata">

**Author:** [@Stranger-Games](https://discussions.unity.com/u/Stranger-Games)\
**Replies:** 4\
**Last updated:** [August 29, 2025, 5:45am UTC](https://discussions.unity.com/t/shiftjis-encoded-c-script-cause-errors-in-unity/1679446 "2025-08-29T05:45:42Z")

</div>

Hi, I am working with a Japanese team and I received shiftJIS encoded script files from git. For example a string “移動可能か” cause error CS1009: Unrecognized escape sequence because it think there’s a back slash there. I…

---

## [Why does Unity add cecil.mono](https://discussions.unity.com/t/why-does-unity-add-cecil-mono/1680243)

<div class="topic-metadata">

**Author:** [@ChuckieGreen](https://discussions.unity.com/u/ChuckieGreen)\
**Replies:** 9\
**Last updated:** [August 24, 2025, 7:24am UTC](https://discussions.unity.com/t/why-does-unity-add-cecil-mono/1680243 "2025-08-24T07:24:42Z")

</div>

Hi, When I try and build a project in unity, it always adds the library cecil.mono, but then the build fails complaining that " The type or namespace name ‘Mono’ could not be found (are you missing a using directive or a…

---

## [Dynamic serializable class property based on another class property of the same class](https://discussions.unity.com/t/dynamic-serializable-class-property-based-on-another-class-property-of-the-same-class/1680303)

<div class="topic-metadata">

**Author:** [@rohshr](https://discussions.unity.com/u/rohshr)\
**Replies:** 1\
**Last updated:** [August 22, 2025, 10:22pm UTC](https://discussions.unity.com/t/dynamic-serializable-class-property-based-on-another-class-property-of-the-same-class/1680303 "2025-08-22T22:22:35Z")

</div>

Is there a way to conditionally assign a property type in a class based on other property in the same class? For example, if I have a class like this: \[System.Serializable\] public class Task { public string taskName…

---

## [Crash during Startup - ISerializationCallbackReceiver leads to crash dump: The thread tried to read from or write](https://discussions.unity.com/t/crash-during-startup-iserializationcallbackreceiver-leads-to-crash-dump-the-thread-tried-to-read-from-or-write/1678718)

<div class="topic-metadata">

**Author:** [@d\_pastollnig\_3](https://discussions.unity.com/u/d_pastollnig_3)\
**Replies:** 3\
**Last updated:** [August 19, 2025, 10:34am UTC](https://discussions.unity.com/t/crash-during-startup-iserializationcallbackreceiver-leads-to-crash-dump-the-thread-tried-to-read-from-or-write/1678718 "2025-08-19T10:34:16Z")

</div>

Hey community! We are currently facing some issues in our Windows Build during startup. The crash dump shows the following error: The thread tried to read from or write to a virtual address for which it does not have …

---

## [SceneManager Singleton Null Error on Awake - Multiple ASSERT ERRORs in Release Build](https://discussions.unity.com/t/scenemanager-singleton-null-error-on-awake-multiple-assert-errors-in-release-build/1666492)

<div class="topic-metadata">

**Author:** [@atailhankokturk67](https://discussions.unity.com/u/atailhankokturk67)\
**Replies:** 65\
**Last updated:** [August 11, 2025, 3:04pm UTC](https://discussions.unity.com/t/scenemanager-singleton-null-error-on-awake-multiple-assert-errors-in-release-build/1666492 "2025-08-11T15:04:28Z")

</div>

Hi everyone, I’m encountering a persistent issue in my Unity 2022.3.41f1 project where the SceneManager singleton is null during the Awake() method of several scripts, resulting in multiple ASSERT ERRORs and InvalidOper…

---

## [How to learn c# for unity?](https://discussions.unity.com/t/how-to-learn-c-for-unity/936408)

<div class="topic-metadata">

**Author:** [@dhruvchoksi099](https://discussions.unity.com/u/dhruvchoksi099)\
**Replies:** 7\
**Last updated:** [December 30, 2023, 7:07pm UTC](https://discussions.unity.com/t/how-to-learn-c-for-unity/936408 "2023-12-30T19:07:01Z")

</div>

I want to learn c# programming so that i can make a game of the type i want write scripts according to it and all but i dont know where to exactly find the exact thing to learn from where it teaches from scratch to the e…

---

## [Error CS1061: 'AppDomain' does not contain a definition for 'DefineDynamicAssembly'](https://discussions.unity.com/t/error-cs1061-appdomain-does-not-contain-a-definition-for-definedynamicassembly/1673819)

<div class="topic-metadata">

**Author:** [@Camilo\_Gato](https://discussions.unity.com/u/Camilo_Gato)\
**Replies:** 2\
**Last updated:** [August 3, 2025, 3:53pm UTC](https://discussions.unity.com/t/error-cs1061-appdomain-does-not-contain-a-definition-for-definedynamicassembly/1673819 "2025-08-03T15:53:25Z")

</div>

Hi, i found the error: CS1061: 'AppDomain' does not contain a definition for 'DefineDynamicAssembly'. In my project i am currently using IL2CPP with .NET Standard, but the next error appears: Library\\PackageCache\\com.…

---

## ["CryptographicException: Chain instance is empty." error when connecting a Unity server in a Docker container to a MySQL server on a Linux VM](https://discussions.unity.com/t/cryptographicexception-chain-instance-is-empty-error-when-connecting-a-unity-server-in-a-docker-container-to-a-mysql-server-on-a-linux-vm/1671307)

<div class="topic-metadata">

**Author:** [@Qwertacious](https://discussions.unity.com/u/Qwertacious)\
**Replies:** 4\
**Last updated:** [July 27, 2025, 8:04pm UTC](https://discussions.unity.com/t/cryptographicexception-chain-instance-is-empty-error-when-connecting-a-unity-server-in-a-docker-container-to-a-mysql-server-on-a-linux-vm/1671307 "2025-07-27T20:04:43Z")

</div>

I have a Linux Virtual Machine that I rent. On that Linux VM I have installed a MySQL server with two users, besides the root one, “unity@127.0.0.1” and “unity2@localhost”. I also have Docker installed on that Linux VM. …

---

## [How to get Unity main thread managed code (C#) stack trace from worker thread when main thread is hung?](https://discussions.unity.com/t/how-to-get-unity-main-thread-managed-code-c-stack-trace-from-worker-thread-when-main-thread-is-hung/1668187)

<div class="topic-metadata">

**Author:** [@anon24258878](https://discussions.unity.com/u/anon24258878)\
**Replies:** 3\
**Last updated:** [July 18, 2025, 5:43pm UTC](https://discussions.unity.com/t/how-to-get-unity-main-thread-managed-code-c-stack-trace-from-worker-thread-when-main-thread-is-hung/1668187 "2025-07-18T17:43:39Z")

</div>

Hi Unity team, I’m working on a native plugin for Unity 2020.3.25f1 (Mono backend, Windows x64), and I’m trying to implement a watchdog mechanism to detect game freezes in the field. :white\_check\_mark: Use case: I wan…

[Next page](https://discussions.unity.com/tag/mono/159602.md?match_all_tags=true&page=1&tags%5B%5D=Mono)
