Unity tool for prototyping ChatGPT integration in games
Top 97.7% on sourcepulse
This Unity wrapper provides a straightforward method for integrating ChatGPT's API into game development projects, targeting Unity developers seeking to prototype AI-driven features. It simplifies API interaction, enabling developers to send prompts and receive responses directly within the Unity environment.
How It Works
The wrapper utilizes Unity's built-in networking capabilities to make HTTP requests to the OpenAI API. Developers attach a ChatGPTConversation
script to a game object, configure their API key and parameters, and then trigger requests via UnityEvents. Responses are handled through a UnityStringEvent, allowing for seamless integration with game logic and UI.
Quick Start & Requirements
Add package from Git URL - https://github.com/GraesonB/ChatGPT-Wrapper-For-Unity.git
or add "com.graesonb.chat-gpt-wrapper-for-unity": "https://github.com/GraesonB/ChatGPT-Wrapper-For-Unity.git"
to Packages/manifest.json
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
This wrapper is explicitly marked as not suitable for production use due to the risk of API key leakage if embedded directly in a shipped game. The author plans to address this with a proxy server template.
2 years ago
1 day