/Ecs.Hybrid.CodeGen

Primary LanguageC#Apache License 2.0Apache-2.0

Depra.Ecs.Baking.CodeGen

License Last Commit Code Size

English | Русский
Table of Contents

🧾 Introduction

Depra.Ecs.Baking.CodeGen is an extension for Depra.Ecs.Baking, which introduces code generation, making the process of creating custom components more efficient and freeing you from routine.

💡 Features

  • Open Source: This library is open-source and free to use.
  • Easy to Use: Add the DefaultBaking attribute to your ECS components and get ready-made AuthoringComponent.

📥 Installation

First of all you need to install Depra.Ecs. Simply add the .dll to your project.

📦 Using UPM:

  1. Open the Unity Package Manager window.
  2. Click the + button in the upper-right corner of the window.
  3. Select Add package from git URL....
  4. Enter the link to the Depra.Baking repository.
  5. Click Add.
  6. Repeat steps 2-5 for Depra.CodeGen.Unity.
  7. Repeat steps 2-5 for this repository.

⚙️ Manual:

Add the following lines to Packages/manifest.json in the dependencies section:

"com.depra.ecs.baking": "https://github.com/Depra-Inc/Ecs.Baking.git"
"com.depra.codegen": "https://github.com/Depra-Inc/CodeGen.Unity.git",
"com.depra.ecs.baking.codegen": "https://github.com/Depra-Inc/Ecs.Baking.CodeGen.git"

📋 Usage Examples

  1. Add the DefaultBaking attribute to your ECS components.
  2. Click Generate Authoring Components in the Depra/Ecs menu.
  3. You're all set! The generated components will be located in the Assets/Generated/AuthoringComponents folder.

🖇️ Dependencies

🤝 Collaboration

I welcome feature requests and bug reports in the issues section, and I also accept pull requests.

🫂 Support

I am an independent developer, and most of the development of this project is done in my free time. If you are interested in collaborating or hiring me for a project, please check out my portfolio and contact me!

🔐 License

This project is distributed under the Apache-2.0 license

Copyright (c) 2023 Nikolay Melnikov n.melnikov@depra.org