Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.57 KB

File metadata and controls

52 lines (40 loc) · 1.57 KB

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)
  • Separates Editor, code, and test files
  • Creates a .json file index
  • Creates a .json list of classes
  • Optionally recurses through 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 numbers of small code files for review, you can upload one combined code file, reducing file requirements and cognitive load.
  • It is easier to upload a whole folder as a combined code file.

Usage

  • From the Tools menu
  • Tools ▸ ExoLabs ▸ 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 ChatGPT.

Party on dudes