This repo is a "ChatGPT-Unity 3D Code Generator" application is working with Unity 3D.
- Creates and Saves a new Unity3D script, with ChatGPT AI's power in UnityEditor. (for the descripted code instruction, with the descripted code name)
chatGPT-Unity3D.Code.Generator.video.mp4
1 - Download the repo.
2 - Start the sample Unity3D scene. (Assets\ChatGPT Unity Code Generator\Scenes\Code Generator Scene.unity)
3 - Configure the "OpenAI ChatGPT API key" (https://platform.openai.com/account/api-keys), model name (I used "gpt-3.5-turbo"), your new script's name and your new script's instructions from the "ChatGPT - Unity Code Generator" gameObject in scene.
4 - Press "Generate Unity3D Code" button in the "ChatGPT - Unity Code Generator" gameobject's (it's an "Editor" button).
5 - Use the generated code from "Assets\ChatGPT Unity Code Generator#Generated Unity Code" to your scenes.
Note : When copying and pasting the all "OpenAI ChatGPT API key", the key could be change for the security of token. So copy-paste the API key in pieces (not the all key).
- Mert Usta
- https://github.com/mochi-neko/ChatGPT-API-unity (I've used the connection parts of this project, that I needed by extracting it from the work here.)
- All the magic is in the "OpenAI" and their wonderful product named "ChatGPT", the others(including me) just trying to use the API in the other platforms and the projects.