Search Unity

*Just Released* GPT AI Integration - ChatGPT For Unity! Create, Debug, and Refactor Scripts + More

Discussion in 'Assets and Asset Store' started by CameronDWills, Feb 20, 2023.

  1. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    91
    Just released 2/20/2023
    Download: prf.hn/l/GlR08zD


    Demo showing how it can create, debug, and refactor scripts in your project:


    Demo of how to create an NPC that you can have a dynamic conversation with, without writing any code:


    This asset integrates the OpenAI API 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.

    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:
    • ChatGPT - This tool functions similarly to OpenAI’s own ChatGPT by acting as your AI personal assistant that can answer any question you have. Unlike the official ChatGPT, 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! 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.

    • 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.

    • 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:
    • 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.
    This is an unofficial OpenAI integration, I am not affiliated with OpenAI in anyway.
     
    aliqazi3d likes this.
  2. GrenadeTree

    GrenadeTree

    Joined:
    May 26, 2014
    Posts:
    29
    I'd love to see more demos. Something like creating a complex feature.