# C# & .NET

**URL:** https://discussions.unity.com/c/scripting/csharp-and-dotnet/178.md

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

---

## [CoreCLR, Scripting, and .NET Update, October 2026](https://discussions.unity.com/t/coreclr-scripting-and-net-update-october-2026/1738338)

<div class="topic-metadata">

**Author:** [@EricDziurzynski](https://discussions.unity.com/u/EricDziurzynski)\
**Replies:** 75\
**Last updated:** [October 28, 2026, 9:24pm UTC](https://discussions.unity.com/t/coreclr-scripting-and-net-update-october-2026/1738338 "2026-10-28T21:24:04Z")

</div>

Hi everyone, Following up on our updates from March and June, as well as our Technical Upgrade Guide, we want to share a quick look at where we stand on our path toward .NET modernization as we move closer to the suppor…

---

## [About the C# & .NET category](https://discussions.unity.com/t/about-the-c-net-category/1720665)

<div class="topic-metadata">

**Author:** [@osmangormus](https://discussions.unity.com/u/osmangormus)\
**Replies:** 0\
**Last updated:** [May 21, 2026, 11:14am UTC](https://discussions.unity.com/t/about-the-c-net-category/1720665 "2026-05-21T11:14:27Z")

</div>

Discuss C# language features, .NET APIs, and async patterns. Covers collections, serialization, and scripting architecture.

---

## [Improving iteration time on C# script changes](https://discussions.unity.com/t/improving-iteration-time-on-c-script-changes/859030)

<div class="topic-metadata">

**Author:** [@xoofx](https://discussions.unity.com/u/xoofx)\
**Replies:** 739\
**Last updated:** [June 6, 2025, 7:06am UTC](https://discussions.unity.com/t/improving-iteration-time-on-c-script-changes/859030 "2025-06-06T07:06:20Z")

</div>

Hello, Earlier this year, many users have reported increased waiting times (from 2s previously to 4s/6s) when changing one C# script + waiting for a domain reload on a simple Core 3D template or when entering Play Mode,…

---

## [Using FileSystemWatcher](https://discussions.unity.com/t/using-filesystemwatcher/951695)

<div class="topic-metadata">

**Author:** [@BeBox2017](https://discussions.unity.com/u/BeBox2017)\
**Replies:** 13\
**Last updated:** [October 31, 2026, 5:24pm UTC](https://discussions.unity.com/t/using-filesystemwatcher/951695 "2026-10-31T17:24:17Z")

</div>

Hello. I would like to use FileSystemWatcher in my program to watch and see whether files have been created or modified within a directory. I have this setup in a method called “constantGo”, which is called when the star…

---

## [The Path to CoreCLR #3 - GC Safety -- The Journey Begins](https://discussions.unity.com/t/the-path-to-coreclr-3-gc-safety-the-journey-begins/1740357)

<div class="topic-metadata">

**Author:** [@Alex-Thibodeau](https://discussions.unity.com/u/Alex-Thibodeau)\
**Replies:** 4\
**Last updated:** [October 27, 2026, 8:42pm UTC](https://discussions.unity.com/t/the-path-to-coreclr-3-gc-safety-the-journey-begins/1740357 "2026-10-27T20:42:21Z")

</div>

GC Safety – The Journey Begins TOC: Blog Post #1 - The Problem Blog Post #2 - Embedding CoreCLR Prologue Okay, let’s pick up from where we left off after the embedding blog post. We left off in a state where we could …

---

## [Unity Logger: Unroll inner exceptions correctly](https://discussions.unity.com/t/unity-logger-unroll-inner-exceptions-correctly/883374)

<div class="topic-metadata">

**Author:** [@Noshire1](https://discussions.unity.com/u/Noshire1)\
**Replies:** 3\
**Last updated:** [October 17, 2026, 1:11pm UTC](https://discussions.unity.com/t/unity-logger-unroll-inner-exceptions-correctly/883374 "2026-10-17T13:11:34Z")

</div>

Dear Unity team It often causes a lot of confusion that Unity’s logger turns nested exceptions inside-out. To illustrate, you can run this method once in a .Net console application, and once inside Unity, e.g. from a Mo…

---

## [File not being saved](https://discussions.unity.com/t/file-not-being-saved/1738796)

<div class="topic-metadata">

**Author:** [@vam413](https://discussions.unity.com/u/vam413)\
**Replies:** 8\
**Last updated:** [October 11, 2026, 6:54pm UTC](https://discussions.unity.com/t/file-not-being-saved/1738796 "2026-10-11T18:54:35Z")

</div>

Hello everyone I am developing a game using Unity. I have added UGS Authentication and Leaderboards to my game. There is a SignUp async void. Which looks like public async void SignUpWithUsernameAndPasswordAsync(stri…

---

## [How to jump in this script?](https://discussions.unity.com/t/how-to-jump-in-this-script/1738168)

<div class="topic-metadata">

**Author:** [@Uranium-Duck](https://discussions.unity.com/u/Uranium-Duck)\
**Replies:** 2\
**Last updated:** [October 2, 2026, 11:03pm UTC](https://discussions.unity.com/t/how-to-jump-in-this-script/1738168 "2026-10-02T23:03:46Z")

</div>

Hi. This is a script from a Brackeys tutorial about 3D movement. However, i have no idea how to add jumping! I know there’s a jumping method for Character Controller, but I don’t know how to implement it. Thanks in advan…

---

## [The Path to CoreCLR #2: Embedding CoreCLR](https://discussions.unity.com/t/the-path-to-coreclr-2-embedding-coreclr/1737339)

<div class="topic-metadata">

**Author:** [@Alex-Thibodeau](https://discussions.unity.com/u/Alex-Thibodeau)\
**Replies:** 9\
**Last updated:** [September 28, 2026, 11:32am UTC](https://discussions.unity.com/t/the-path-to-coreclr-2-embedding-coreclr/1737339 "2026-09-28T11:32:32Z")

</div>

Embedding CoreCLR ToC: Blog Post #1 - The Problem Blog Post #3 - GC Safety - The Journey Begins Prologue Okay I’m back. Finally. Here we go with the next blog post! This one is about how we went about getting CoreCLR …

---

## [System Lifecycle outside of scenes](https://discussions.unity.com/t/system-lifecycle-outside-of-scenes/1737411)

<div class="topic-metadata">

**Author:** [@jack\_ftw](https://discussions.unity.com/u/jack_ftw)\
**Replies:** 5\
**Last updated:** [September 25, 2026, 3:37pm UTC](https://discussions.unity.com/t/system-lifecycle-outside-of-scenes/1737411 "2026-09-25T15:37:18Z")

</div>

I am working on some systems that I want to exist outside of the scene lifecycle. That is: I want these systems to setup before the first scene is loaded and teardown after scenes are unloaded on application quit. I hav…

---

## [How can I have serialized nested structs?](https://discussions.unity.com/t/how-can-i-have-serialized-nested-structs/1737375)

<div class="topic-metadata">

**Author:** [@Fledered1](https://discussions.unity.com/u/Fledered1)\
**Replies:** 5\
**Last updated:** [September 24, 2026, 10:36pm UTC](https://discussions.unity.com/t/how-can-i-have-serialized-nested-structs/1737375 "2026-09-24T22:36:46Z")

</div>

I have this struct: \[Serializable\] public struct ConditionEvaluation { public enum Type { Or, And } \[SerializeField\] private Type type; \[SerializeField\] private Condition\[\] conditions; \[S…

---

## [The Path to CoreCLR #1: The Problem](https://discussions.unity.com/t/the-path-to-coreclr-1-the-problem/1733018)

<div class="topic-metadata">

**Author:** [@Alex-Thibodeau](https://discussions.unity.com/u/Alex-Thibodeau)\
**Replies:** 24\
**Last updated:** [September 23, 2026, 8:10pm UTC](https://discussions.unity.com/t/the-path-to-coreclr-1-the-problem/1733018 "2026-09-23T20:10:37Z")

</div>

The Problem ToC: Blog Post #2 - Embedding CoreCLR Blog Post #3 - GC Safety - The Journey Begins Prologue I’m the “It’s happening!” meme right now. No. Really. The release of the CoreCLR scripting backend has been a …

---

## [Visual Studio Intellisense doesnt work](https://discussions.unity.com/t/visual-studio-intellisense-doesnt-work/1733105)

<div class="topic-metadata">

**Author:** [@chewboiye1](https://discussions.unity.com/u/chewboiye1)\
**Replies:** 15\
**Last updated:** [September 20, 2026, 10:01pm UTC](https://discussions.unity.com/t/visual-studio-intellisense-doesnt-work/1733105 "2026-09-20T22:01:15Z")

</div>

I an reinstalling unity again after a while, and my visual studio doesnt have intellisense. In solution explorer, this is happening: and when i try to reload Assembly-Csharp, i get this: The SDK ‘Microsoft.NET.Sdk’ s…

---

## [My Visual Code Lost the reference of Unity components](https://discussions.unity.com/t/my-visual-code-lost-the-reference-of-unity-components/1737062)

<div class="topic-metadata">

**Author:** [@VECTOR\_DIADEMA](https://discussions.unity.com/u/VECTOR_DIADEMA)\
**Replies:** 1\
**Last updated:** [September 19, 2026, 10:40pm UTC](https://discussions.unity.com/t/my-visual-code-lost-the-reference-of-unity-components/1737062 "2026-09-19T22:40:05Z")

</div>

Hi guys. I have a big problem. Visual Studio Code no longer recognizes Unity components. When I try to declare “Transform” or “Rigidbody,” for example, Visual Studio Code fails to find the references for thos…

---

## [A normal managed dll always trigger error "A roslyn analyzer should reference netstandard version 2.0"](https://discussions.unity.com/t/a-normal-managed-dll-always-trigger-error-a-roslyn-analyzer-should-reference-netstandard-version-2-0/1736403)

<div class="topic-metadata">

**Author:** [@anon9811469](https://discussions.unity.com/u/anon9811469)\
**Replies:** 2\
**Last updated:** [September 13, 2026, 1:30pm UTC](https://discussions.unity.com/t/a-normal-managed-dll-always-trigger-error-a-roslyn-analyzer-should-reference-netstandard-version-2-0/1736403 "2026-09-13T13:30:24Z")

</div>

I built a managed dll targeting netstandard 2.1 and placed it in my unity 6.0 project. When i placed the dll in the project, there is no error. But every time i move the dll in the projcet, unity print an error of “A ros…

---

## [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#…

---

## [Missing Windows Proxy Configuration causes NullReferenceException to be thrown](https://discussions.unity.com/t/missing-windows-proxy-configuration-causes-nullreferenceexception-to-be-thrown/1722302)

<div class="topic-metadata">

**Author:** [@nurmr](https://discussions.unity.com/u/nurmr)\
**Replies:** 2\
**Last updated:** [September 11, 2026, 4:28am UTC](https://discussions.unity.com/t/missing-windows-proxy-configuration-causes-nullreferenceexception-to-be-thrown/1722302 "2026-09-11T04:28:43Z")

</div>

If the HKEY\_CURRENT\_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings registry key is missing, then AutoWebProxyScriptEngine.InitializeRegistryGlobalProxy throws a NullReferenceException as reported at Web…

---

## [I genuinely do not know what I'm doing wrong (Instantiated scaled objects)](https://discussions.unity.com/t/i-genuinely-do-not-know-what-im-doing-wrong-instantiated-scaled-objects/1735882)

<div class="topic-metadata">

**Author:** [@TheAutismund](https://discussions.unity.com/u/TheAutismund)\
**Replies:** 3\
**Last updated:** [September 6, 2026, 11:50pm UTC](https://discussions.unity.com/t/i-genuinely-do-not-know-what-im-doing-wrong-instantiated-scaled-objects/1735882 "2026-09-06T23:50:11Z")

</div>

Hi, I’m a new coder, and following a course. (2D Sprite Flight) I wanted to make the impact particles scaled accordingly to the object itself. (Bouncy Boys) I have looked at other discussions relating to this, but just…

---

## [Accessing public class within another class](https://discussions.unity.com/t/accessing-public-class-within-another-class/1723564)

<div class="topic-metadata">

**Author:** [@Andy\_Mai86](https://discussions.unity.com/u/Andy_Mai86)\
**Replies:** 19\
**Last updated:** [August 28, 2026, 9:14pm UTC](https://discussions.unity.com/t/accessing-public-class-within-another-class/1723564 "2026-08-28T21:14:55Z")

</div>

Hi everyone, I defined a class named “LvlManager” as following: public class LvlManager : MonoBehaviour { public static LvlManager Instance { get; private set; } \[Header("References")\] public static int leve…

---

## [How to list the name of connected clients with Fishnet?](https://discussions.unity.com/t/how-to-list-the-name-of-connected-clients-with-fishnet/944083)

<div class="topic-metadata">

**Author:** [@conradosaud](https://discussions.unity.com/u/conradosaud)\
**Replies:** 15\
**Last updated:** [August 27, 2026, 9:53pm UTC](https://discussions.unity.com/t/how-to-list-the-name-of-connected-clients-with-fishnet/944083 "2026-08-27T21:53:54Z")

</div>

Hello. I’m having great difficulty doing something that should be simple: listing the names of users connected to the game. I’m studying Fishnet 4 and I’m also having a lot of difficulties. After searching a lot and co…

---

## [Constant No-Operation Hanging on Domain Reload](https://discussions.unity.com/t/constant-no-operation-hanging-on-domain-reload/1711895)

<div class="topic-metadata">

**Author:** [@ZeroSumGames](https://discussions.unity.com/u/ZeroSumGames)\
**Replies:** 6\
**Last updated:** [August 26, 2026, 8:54pm UTC](https://discussions.unity.com/t/constant-no-operation-hanging-on-domain-reload/1711895 "2026-08-26T20:54:40Z")

</div>

I upgraded a Unity 6 project to Unity 6. I cleared my Library folder. Unity rebuilt. About one in every five times I change a script, Unity decides to reload the Domain and then it just hangs with no operation. Task m…

---

## [On Async/Await with Awaitables as a Coroutine replacement](https://discussions.unity.com/t/on-async-await-with-awaitables-as-a-coroutine-replacement/1554090)

<div class="topic-metadata">

**Author:** [@Baste](https://discussions.unity.com/u/Baste)\
**Replies:** 36\
**Last updated:** [August 26, 2026, 2:51pm UTC](https://discussions.unity.com/t/on-async-await-with-awaitables-as-a-coroutine-replacement/1554090 "2026-08-26T14:51:22Z")

</div>

There has been a lot of people in the community here that’s been talking about how Awaitables will be able to replace Coroutines as a standard way of doing operations over time. I want to discuss this, because I’m a bit …

---

## [Random.NextInt always returning 0 regardless of seed](https://discussions.unity.com/t/random-nextint-always-returning-0-regardless-of-seed/1733938)

<div class="topic-metadata">

**Author:** [@Foulmood](https://discussions.unity.com/u/Foulmood)\
**Replies:** 8\
**Last updated:** [August 24, 2026, 7:15am UTC](https://discussions.unity.com/t/random-nextint-always-returning-0-regardless-of-seed/1733938 "2026-08-24T07:15:35Z")

</div>

Hello, I’ve been messing around with procedural generation, and have encountered some strange behavior with the Mathematics.Random struct. Specifically, when I seed an instance of Random and then call the NextInt() meth…

---

## [SerializeField not showing up in autocomplete](https://discussions.unity.com/t/serializefield-not-showing-up-in-autocomplete/1710882)

<div class="topic-metadata">

**Author:** [@Osten567](https://discussions.unity.com/u/Osten567)\
**Replies:** 10\
**Last updated:** [August 23, 2026, 7:20pm UTC](https://discussions.unity.com/t/serializefield-not-showing-up-in-autocomplete/1710882 "2026-08-23T19:20:07Z")

</div>

I’ve just started a new unity project and upgraded to unity version 6000.3.9f1. When I started coding and tried to type “\[SerializeField\]” I noticed that it wasn’t showing upp as an option in the autocomplete. If I m…

---

## [CoreCLR, Scripting, and Serialization Update - June 2026](https://discussions.unity.com/t/coreclr-scripting-and-serialization-update-june-2026/1723299)

<div class="topic-metadata">

**Author:** [@EricDziurzynski](https://discussions.unity.com/u/EricDziurzynski)\
**Replies:** 55\
**Last updated:** [August 20, 2026, 5:41pm UTC](https://discussions.unity.com/t/coreclr-scripting-and-serialization-update-june-2026/1723299 "2026-08-20T17:41:35Z")

</div>

CoreCLR, Scripting, and Serialization Update - June 2026 Hi everyone, Following our public roadmap sessions at GDC 2026 and our previous community update, we are back to share our next quarterly look into the technical …

---

## [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…

---

## [Cloud code C# module binding error](https://discussions.unity.com/t/cloud-code-c-module-binding-error/1733652)

<div class="topic-metadata">

**Author:** [@NewPattern](https://discussions.unity.com/u/NewPattern)\
**Replies:** 3\
**Last updated:** [August 18, 2026, 9:22am UTC](https://discussions.unity.com/t/cloud-code-c-module-binding-error/1733652 "2026-08-18T09:22:29Z")

</div>

OS: Windows 11 Unity: 6000.5.6f1 Cloud Code: com.unity.services.cloudcode: 3.0.0-exp.8 사용 Visual Studio: Visual Studio 2026 \*\*/TestModule\> dotnet --version 10.0.400 After clicking the “Generate Solution” …

---

## [Issue with weapon bobbing script](https://discussions.unity.com/t/issue-with-weapon-bobbing-script/1734064)

<div class="topic-metadata">

**Author:** [@RuthlessBeet](https://discussions.unity.com/u/RuthlessBeet)\
**Replies:** 2\
**Last updated:** [August 18, 2026, 3:23am UTC](https://discussions.unity.com/t/issue-with-weapon-bobbing-script/1734064 "2026-08-18T03:23:10Z")

</div>

Hey guys, I’m making a first person horror game, where the player carries a weapon. I added a script to this weapon which makes it bob up and down whenever the player is moving. However, this bob only plays when the pl…

---

## [NPC Dialogue not appearing when pressing E](https://discussions.unity.com/t/npc-dialogue-not-appearing-when-pressing-e/1733865)

<div class="topic-metadata">

**Author:** [@unity\_1melgirl1](https://discussions.unity.com/u/unity_1melgirl1)\
**Replies:** 5\
**Last updated:** [August 15, 2026, 6:03pm UTC](https://discussions.unity.com/t/npc-dialogue-not-appearing-when-pressing-e/1733865 "2026-08-15T18:03:54Z")

</div>

Hello, I’m absolutely new to Unity. I’m working on a bachelor’s making game assets and backgrounds for a 2D side scroller, but I have to program a small basic part of the game to show the overall demo look. I’ve been fo…

---

## [\[Tutorial\] Convert ScriptableObjects to Runtime Assets with the Factory Pattern | Game Systems Explained](https://discussions.unity.com/t/tutorial-convert-scriptableobjects-to-runtime-assets-with-the-factory-pattern-game-systems-explained/1733201)

<div class="topic-metadata">

**Author:** [@Yecats](https://discussions.unity.com/u/Yecats)\
**Replies:** 1\
**Last updated:** [August 12, 2026, 5:27am UTC](https://discussions.unity.com/t/tutorial-convert-scriptableobjects-to-runtime-assets-with-the-factory-pattern-game-systems-explained/1733201 "2026-08-12T05:27:19Z")

</div>

Scriptable Objects are great for storing shared item data but they aren’t intended to be modified at runtime. In this tutorial, you’ll learn how you can use the factory pattern to convert static data to run…

[Next page](https://discussions.unity.com/c/scripting/csharp-and-dotnet/178.md?page=1)
