In this tutorial, I'll show you how to create smart NPCs (non-player characters) using Ready Player Me avatars, Unity Starter Assets, and the OpenAI API.
We'll start by setting up our Unity project with the Starter Assets, and then importing our Ready Player Me avatar. Next, we'll integrate the OpenAI API to make a ChatGPT like dialog system. By the end of this tutorial, you'll have a fully functioning NPC that can interact with players in a realistic and engaging way.
🐦Follow me on Twitter: / sgt3v
📌GitHub Repo for this project: https://github.com/srcnalt/RPM-Smart-NPC
Sources
📌OpenAI-Unity Package: https://github.com/srcnalt/OpenAI-Unity
📌Unity Starter Assets: https://assetstore.unity.com/packages...
📌Ready Player Me Unity SDK: https://github.com/readyplayerme/rpm-...
📌Ready Player Me: https://readyplayer.me
📺 Ready Player Me x Unity Starter Assets Tutorial: • Unity Third Person Starter Assets and...
📺 Making ChatGPT in Unity! OpenAI Unity Package Tutorial: • Making ChatGPT in Unity!
⏲️ Timestamps:
00:00 Introduction
00:14 Start a new Unity Project
02:45 Import the OpenAI-Unity Package
04:39 Import Starter Assets Third Person Example
08:45 Import Ready Player Me Unity SDK
13:05 Creating RPM Avatars
17:45 Create Third Person Character Builder
22:40 Animating the NPC
35:00 Creating the Event Trigger
54:05 Creating Chat UI
01:08:05 Testing the NPC Dialog
01:16:25 Final words
#chatgpt #ai #openai #gamedev #indiedev #unity #madewithunity