How To Use ChatGPT With Unity: Embed A Runtime Compiler With ChatGPT #4
Channel: Dilmer Valecillos
Date: 2023-01-21

In today’s video I continue my Unity ChatGPT video series by walking you through how to embed Roslyn C# compiler in Unity with .NET Standard 2.1 and also how to integrate it to our ChatGPT prototype by adding a Roslyn Code Runner script which will be responsible for running ChatGPT generated code. 

📣 Consider becoming a Patreon today https://www.patreon.com/dilmerv by getting my “Full Source Code” tier and 💡 What do you get from Patreon ?
👉 Access to this video GitHub repo + all code I work on for each video
👉 Access to special Patreon discord group where I can answer questions 

📚How To Use ChatGPT with Unity | Chapters:
00:33 Creating a Visual Studio Class Library project with .NET Standard 2.1
01:22 Adding Roslyn C# compiler nugget packages
01:47 Adding Runtime Loader nugget package
02:03 Modifying Project to allow to copy assemblies to bin directory
03:33 Adding a Roslyn Code Runner MonoBebaviour
19:20 Adding a ChatGPT Extensions static class to handle parsing ChatGPT generated code
26:41 ChatGPT And Roslyn Demos with a few prompts 

📌 Support me by Subscribing to avoid missing future videos!
https://www.youtube.com/dilmerv

📌 Support me in Patreon so I can keep doing stuff like this for free!
https://www.patreon.com/dilmerv

📌 Get XR & game development tips from me in Twitter 
https://www.twitter.com/dilmerv

🥽 Learn & Get my XR Training from:
https://www.learnxr.io

👉 My Blog / 🔥 Newsletter (Subscribe to get up to date XR news)
https://blog.learnxr.io

#chatgpt #chatgpttutorial #unity