Generator Unity C# scripts with GPT for your prototype project
- 📋 Generate a JSON-formatted list of required C# Unity scripts.
- 🔍 Breakdown of each script into smaller scripts.
- 🙌 Automatically generate C# script files.
This project requires Python 3.6+ and pip. After cloning the repository, run the following command to install the required libraries:
pip install -r requirements.txtThis project uses the OpenAI API, and requires an API key. Follow these steps to set up your API key:
-
Sign up for an account with OpenAI to get an API key.
-
Create a new file in the root directory of this project named
.env. -
Open the
.envfile with a text editor, and add the following line, replacingyour_api_keywith your actual OpenAI API key:
OPENAI_API_KEY=your_api_key- Save and close the
.envfile.
Remember to add .env to your .gitignore file to ensure that you don't accidentally commit your API key to version control. It's also important to keep your API key secret, as anyone with access to it could make requests to the OpenAI API on your behalf and potentially incur costs.
Once your API key is set up, you can run the script using Python:
python main.pyWhen prompted, enter your game name and any additional details. The script will then generate a list of required C# Unity scripts and a breakdown of each script.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the MIT license.