Kah Wei, Tng

  • About Me
  • Skills
  • Portfolio
    • C
    • C++
    • Unity
  • Experience
  • Testimonials
  • Blog
    • Tutorials
    • C# Scripting Engine Tutorial
    • All Posts
  • Contact Me

Scripting

Tutorials

C# Scripting Engine Part 9 – Installed Runtime

Welcome back to another post on building a C# scripting engine. Today, we’ll look at how we can avoid bundling the 200+ .NET Runtime DLLs with our application. Instead, we will load the DLLs that the user may have already installed on their own system. This is the last in Read more…

By Kah Wei, 2 years29 October 2023 ago
Tutorials

C# Scripting Engine Part 8 – Debugging

Hi all, in today’s post, we’re going to talk about debugging techniques to help the developers leveraging your .NET scripting engine to debug their scripts. We’ll also take a quick look at how you can detect unused references which is a common source of problems in implementing hot reloading. This Read more…

By Kah Wei, 2 years16 September 2023 ago
Tutorials

C# Scripting Engine Part 7 – Hot Reloading

Hi everyone! Today we’ll be starting on one of the most exciting topics in the tutorial: Hot reloading! With hot reloading, you will be able to allow users of your engine to modify, recompile and reload their C# scripts independently of the engine’s source code. This is very important as Read more…

By Kah Wei, 2 years7 August 2023 ago
Tutorials

C# Scripting Engine Part 6 – Exception Handling

Hi all, today we’re gonna work on properly handling errors in our managed code. Right now, if we run into an exception in our managed code, our application will crash as we are not catching the exceptions. This is especially important as your scripting engine will run user-created scripts. Ideally, Read more…

By Kah Wei, 2 years26 May 2023 ago
Tutorials

C# Scripting Engine Part 5 – Manipulating Native Data from C#

Welcome back! I’ve been quite busy with school and life so apologies for the long wait. In the previous blog post, we had successfully gotten a C# script to run while attached to a entity in our native code. Now, we will attempt to let our C# script access and Read more…

By Kah Wei, 2 years14 May 2023 ago
Tutorials

C# Scripting Engine Part 4 – C# Scripts

In the previous blog post, we managed to host the .NET Runtime and successfully executed managed code from native code and vice versa. However, C# was not involved at all. In this post, we will build up the infrastructure for C# scripts and execute our first C# script. This is Read more…

By Kah Wei, 3 years9 October 2022 ago
Tutorials

C# Scripting Engine Part 3 – Hosting .NET

Right off the heels of the previous post, let’s actually start hosting the .NET runtime and executing managed code in our C++ code base. This is the third in a series of posts on building a .NET 6.0-based C# scripting engine for a game engine. If you’ve not yet read Read more…

By Kah Wei, 3 years11 September 2022 ago
Tutorials

C# Scripting Engine Part 2 – Project Setup

Welcome to the second in a series of blog posts detailing how to integrate .NET 6.0 C# scripting support into a C++ Windows game engine. If you haven’t already, do read the first part which provides an introduction to what we will be doing as part of this series. Edit Read more…

By Kah Wei, 3 years21 August 2022 ago
Tutorials

C# Scripting Engine Part 1 – Introduction

Welcome to the first in a series of blog posts detailing how to integrate .NET 6.0 C# scripting support into a C++ Windows game engine. Most of what I am going to detail is based on my research and work in developing a C# scripting engine for my DigiPen game Read more…

By Kah Wei, 3 years7 May 2022 ago

Recent Posts

  • C# Scripting Engine Part 9 – Installed Runtime
  • C# Scripting Engine Part 8 – Debugging
  • C# Scripting Engine Part 7 – Hot Reloading
  • C# Scripting Engine Part 6 – Exception Handling
  • C# Scripting Engine Part 5 – Manipulating Native Data from C#

Archives

  • October 2023
  • September 2023
  • August 2023
  • May 2023
  • October 2022
  • September 2022
  • August 2022
  • June 2022
  • May 2022

Categories

  • ImGui
  • Tutorials
  • About Me
  • Skills
  • Portfolio
  • Experience
  • Blog
  • Contact Me
Kah Wei, Tng