~/talk

CSharpify Your Engine: A Guide to Embedding C#

Talkat JetBrains GameDev Days 2024 · 2024-10-09..10-10· [c-sharp, game-development]
links:none on file
slides:none on file

Explains how to actually embed C# into a C++ engine: initialize a runtime (Mono or CoreCLR), obtain delegates with corlib_create_delegate, and marshal data across the managed/native boundary. Covers runtime tradeoffs—mono vs coreclr (Mono supports JIT, AOT, interpreter and wide platform support; CoreCLR lacks a production interpreter), Unity’s IL2CPP workaround, and pitfalls like bool-size marshalling bugs. Ships a reproducible example (header + CMake library and a Dear ImGui demo) at the Cify header+CMake library repo.

AI-written summary · about

  1. 0:00Introduction
  2. 3:22Embed C# in C++ engine
  3. 13:54Java and native calls history
  4. 25:31C# and CLR collaboration
  5. 29:13Mono project evolution
  6. 34:50Mono vs .NET Core
  7. 36:59Embedding C# basics
  8. 40:55Initialize runtime with Cify
  9. 42:23Call C# from C++
  10. 44:55Demo of embedding C#
  11. 50:14Pitfalls and data marshalling
  12. 51:40Automate C++ bindings
  13. 52:45Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.