Skip to content

Braneloc/CodeCombinerUnity

Repository files navigation

Code Combiner for Unity

A lightweight toolkit that allows Unity code folders to be combined

Installation

Unity Editor → Window ▸ Package Manager
➕ Add package from Git URL
https://github.com/Braneloc/CodeCombinerUnity.git

Unity downloads the package and recompiles scripts automatically.

Features

  • Combines all code files in a folder into one -main.cs file
    (Recommended for upload)
  • Seperates Editor, Code and Test files
  • Creates a .json file index
  • Creates a .json list of classes
  • Optionally recurse through any subfolders
  • Zips the large created file ready for upload
    (Only upload if the -main.cs is very large)

Problems this project solves

  • Instead of uploading large amounts of small code files to a LLM for review, you can upload a combined code file instead reducing file requirements on certain LLMs.
  • It is easier to upload a whole folder as a combined code file.

Usage

  • From the tools menu
  • Tools ▸ Code ▸ Combine C# Files
  • Drag and drop a Unity code folder from the Project window.
  • Click Combine and save

Files

  • The files are stored in the root of your project folder, under combined-code next to the Assets folder.
Project Root
  Assets
    FolderWithScripts
      script1.cs
      script2.cs
  combined-code
    FolderWithScripts-main.cs
    FolderWithScripts-main.json
    FolderWithScripts-types.json
    FolderWithScripts-Upload.zip

Notes

  • Disclaimer: Parts of this project were co-created by an AI LLM.

Party on dudes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages