GPT AI Integration 1.0
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.
该资产将OpenAI API集成到您的项目中,允许您快速轻松地将AI功能添加到游戏和Unity编辑器中,而无需编写任何代码!
在几分钟内,你就可以动态生成个性并与NPC进行对话,甚至让AI生成和编辑项目中的脚本!
人工智能的用例太多了……唯一的限制是你的想象力。
这个资产是初学者友好和支持Unity可视化脚本!
为了让你开始,有一些人工智能工具包含在你的资产:
Unity编辑工具:
ChatGPT -这个工具的功能类似于OpenAI自己的ChatGPT,作为你的人工智能个人助理,可以回答你的任何问题。与官方的ChatGPT不同,使用此工具,您可以自定义设置以微调收到的响应。默认情况下,这个工具被配置为作为Unity游戏开发专家,但你可以在设置中改变它,以任何你喜欢的方式表现。它甚至可以为您编写脚本并将它们直接保存到您的项目中!以下是一些你可以向AI提出请求的例子:
例子:
我如何创建一个自定义的Unity编辑器窗口,有一个设置按钮,当点击它显示5个设置?
*编写一个Unity c#脚本,可以用作战利品表,根据分配的权重奖励玩家不同的道具。
●帮我构思游戏的背景故事。主角的名字应该是约翰,他周游世界收集元素的力量。
脚本编辑器-此工具允许您使用AI分析项目中的任何脚本,它将考虑您发送的任何消息并响应建议。您可以使用它来调试脚本、增强脚本或进行常规更改。如果你同意AI的建议,你可以选择让它为你自动更新文件。
提示生成器-从AI工具中获得出色结果的关键是制作完美的提示。这个工具会自动为你生成一个高质量的提示,你只需要给它一个关于你希望AI如何行动的简短描述,它就会给你一个提示模板,你可以在任何其他AI工具中编辑和使用。
演示的实现:
动态对话-在游戏中与AI聊天,它可以记住你的对话内容并根据上下文做出回应。这个演示展示了如何使用AI在游戏中创建NPC和其他角色,你可以与AI生成的个性进行对话!这个实现是在没有使用可视化脚本编写任何代码的情况下创建的。
语言翻译-如果你有来自世界各地的玩家,他们想要彼此交流,但说的不是同一种语言?这个实现展示了如何使用AI在任何语言之间翻译文本。这个实现是在没有使用可视化脚本编写任何代码的情况下创建的。
使用OpenAI API创建您自己的AI实现
包括文档,指导您通过编写自己的脚本,您可以使用实现自己的AI功能。
页:
[1]