【更新】GPT AI Integration 1.6.1人工智能
本帖最后由 cg小白兔 于 2023-4-21 10:57 编辑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在你的项目中生成和编辑脚本!
在几分钟内,你可以在游戏中动态地生成个性和与你的NPC对话,甚至可以让AI在你的项目中生成和编辑脚本
人工智能的使用案例太多了,无法一一列举......唯一的限制是你的想象力。
这个资产对初学者是友好的,并支持Unity视觉脚本!
为了让你开始,资产中包含了一些人工智能工具,供你使用:
Unity编辑器工具:
ChatGPT - 这个工具的功能类似于OpenAI自己的ChatGPT,作为你的AI个人助理,可以回答你的任何问题。与官方的ChatGPT不同,使用这个工具,你可以自定义设置,以微调你收到的答复。默认情况下,这个工具被配置为Unity游戏开发专家,但你可以在设置中改变它的行为,以你喜欢的方式。它甚至可以为你写脚本,并将它们直接保存在你的项目中 下面是一些你可以向AI提出请求的例子:
例子:
● 我怎样才能创建一个自定义的Unity编辑器窗口,该窗口有一个设置按钮,点击后会显示出另外5个设置?
给我写一个Unity C#脚本,可以作为战利品表,根据指定的权重奖励给玩家不同的物品。
帮助我为我的游戏想出一个背景故事。主角的名字应该是约翰,他在世界范围内收集元素力量。
脚本编辑器 - 这个工具允许你使用人工智能分析项目中的任何脚本,它将考虑你发送给它的任何信息,并回复建议。你可以用它来调试脚本,增强它们,或进行一般的修改。如果你同意AI的建议,你可以选择让它自动为你更新文件。
提示语生成器--从人工智能工具中获得良好效果的关键是制作完美的提示语。这个工具将自动为你生成一个高质量的提示,只需给它一个关于你希望人工智能如何行动的简短描述,它将给你一个提示模板,你可以编辑并在任何其他人工智能工具中使用。
演示实施:
动态对话--在游戏中与人工智能聊天,它可以记住你的对话内容并根据上下文作出反应。这个演示展示了你如何使用人工智能在你的游戏中创建NPC和其他角色,你可以与之进行对话,并完成人工智能生成的个性!这个演示是在没有编写代码的情况下创建的!这个实现是在不写任何代码的情况下使用Visual Scripting创建的。
语言翻译--如果你有来自世界各地的玩家,他们想互相交流,但又不说同一种语言,怎么办?这个实现显示了你如何使用人工智能在任何语言之间翻译文本。这个实现是在不写任何代码的情况下使用Visual Scripting创建的。
使用OpenAI API创建你自己的人工智能实施方案
页:
[1]