• Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Image
  • Current Version: 1.7.2: 2023-05-12T22:31:25Z
  • First Published: 2023-02-20T15:46:12Z
  • Size: 4187744
  • Supported Unity Versions: 2022.1.23
tools ai-ml-integration

GPT AI Integration

(45 Votes)
$24.95 $24.95

📽️ Featured by CodeMonkey on YouTube: TOP 10 NEW Systems and Tools March 2023!


This asset integrates the OpenAI API and others into your project, allowing you to add AI functionality to your game and the Unity editor quickly and easily without requiring you to write any code!


In minutes you can have dynamically generated personalities and conversations with your NPC's in-game, or even have the AI generate and edit scripts in your project!


There are far too many use cases of the AI to list... the only limit is your imagination.


Current API Integrations:

  • OpenAI's GPT-4, GPT-4-32k, GPT-3.5-turbo (ChatGPT), and previous models like davinci and codex
  • OpenAI's Whisper API (speech-to-text)
  • OpenAI's Dall-E 2 API (text-to-image generation)
  • ElevenLabs API (generate AI voices with text-to-speech)

🤝 If you need support or have any questions, please join the community on Discord: https://discord.gg/nYmGSqYhr6


This asset is beginner friendly and supports Unity Visual Scripting!


To get you started, there are some AI tools included in the asset for you:


🛠️🛠️ Unity Editor Tools 🛠️🛠️

  • 🗣️Custom GPT AI Chat 🗣️ - This tool functions similarly to OpenAI’s own Chat by acting as your AI personal assistant that can answer any question you have. Unlike the official Chat, with this tool you can customize the settings to fine tune the responses you receive. By default, this tool is configured to act as a Unity game development expert, but you can change this in the settings to behave any way you'd like. It can even write scripts for you and save them directly into your project! It will even remember the messages you send it and keep context awareness when replying to you. Chat logs are saved to your project so you can load them later and resume past conversations, or just for your reference!

Here are some examples of requests you can make to the AI:


Examples:

How can I create a custom Unity Editor window that has a settings button, and when clicked it reveals 5 more settings?

Write me a Unity C# script that can be used as a loot table, rewarding the player with different items based on an assigned weight.

Help me come up with a backstory for my game. The main characters name should be John and he travels the world collecting elemental powers.




  • *NEW* 🖼️ Image Generator 🖼️ - Generate textures, sprites, artwork, and other images directly from the Unity editor and save the ones you like into your project! Save countless hours and resources on custom artwork by having the AI generate images for you!

  • 📝 Script Editor 📝 - This tool allows you to analyze any script in your project using AI, which will take into account whatever message you send it and respond back with suggestions. You can use this to debug scripts, enhance them, or make general changes. If you agree with the AI recommendations, you can choose to have it automatically update the file for you.

  • 🎨 Shader Generator🎨 - With this tool you can have the AI generate shaders for you! Simply describe the kind of shader your looking for and it'll write the code for you to review and then automatically apply it for you! Create shaders for your game using normal text prompts.

  • 🧠 Prompt Generator 🧠 - The key to getting great results from AI tools is to craft the perfect prompt. This tool will automatically generate a high quality prompt for you, just give it a brief description of how you want the AI to act and it’ll give you a prompt template you can edit and use in any other AI tool.

🎮🎮 Demo Implementations 🎮🎮


  • ⛅ Skybox Generator ⛅ - Change the skybox of the scene in-game using the OpenAI Dall-E 2 API! Included C# example script is well documented and commented to show you how to create AI generated images either in-editor or in-game! Create your own free-to-use skyboxes, materials, portraits, artwork, and more!

  • 🎤 Voice Chat 🎤 - Have a chat in-game with an AI using your voice hands-free! Audio is recorded using your microphone and then transcribed into text with the OpenAI Whisper API and sent to the GPT AI for a response, which is then converted into an AI generated voice using the ElevenLabs API! All code is well documented so you can easily get your own implementation up and running. This demo shows you how you can talk to the AI without any user input and get unique voice responses back! Choose from 9 default voices or use your own custom voices!

  • 💬 Dynamic Conversation 💬 - Have a chat in-game with an AI that can remember the contents of your conversation and respond with context. This demo shows how you can use AI to create NPC's and other characters in your game you can have conversations with, complete with an AI generated personality! This implementation was created without writing any code using Visual Scripting.

  • 🌎 Language Translation 🌎 - What if you had players from all around the world who want to communicate with each other but don't speak the same language? This implementation shows how you can translate text between any languages using AI. This implementation was created without writing any code using Visual Scripting.

Create your own AI implementations with the OpenAI API



Included documentation to guide you through writing your own scripts you can use to implement your own AI features.


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!