ChatGPT-Unity-3D-Code-Generator icon indicating copy to clipboard operation
ChatGPT-Unity-3D-Code-Generator copied to clipboard

This repo is a "ChatGPT-Unity 3D Code Generator" application is developed in Unity 3D.

ChatGPT-Unity-3D-Code-Generator

This repo is a "ChatGPT-Unity 3D Code Generator" application is working with Unity 3D.

Usage

  • Creates and Saves a new Unity3D script, with ChatGPT AI's power in UnityEditor. (for the descripted code instruction, with the descripted code name)

https://user-images.githubusercontent.com/70747383/226208488-744e288c-9355-4148-917f-79505ebe1278.mp4

Setup

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

Author

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