Table of Contents
Leopotam.EcsLite.Baking.CodeGen is an extension for Leopotam.EcsLite.Baking, which introduces code generation, making the process of creating custom components more efficient and freeing you from routine.
- 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-madeAuthoringComponent
.
- Open the Unity Package Manager window.
- Click the + button in the upper-right corner of the window.
- Select Add package from git URL....
- Enter the link to the Leopotam.EcsLite.Baking repository.
- Click Add.
- Repeat steps 2-5 for Depra.CodeGen.Unity.
- Repeat steps 2-5 for this repository.
Add the following lines to Packages/manifest.json
in the dependencies
section:
"com.leopotam.ecslite": "https://github.com/Leopotam/ecslite.git",
"com.leopotam.ecslite.baking": "https://github.com/g0dzZz-coder/ecslite.baking.git",
"com.depra.codegen": "https://github.com/Depra-Inc/CodeGen.Unity.git",
"com.leopotam.ecslite.baking.codegen": "https://github.com/g0dzZz-coder/ecslite.baking.codegen.git"
- Add the
DefaultBaking
attribute to your ECS components. - Click
Generate Authoring Components
in theDepra/Ecs
menu. - You're all set! The generated components will be located in the
Assets/Generated/AuthoringComponents
folder.
- Leopotam ECS Lite - the base ECS library.
- Leopotam ECS Lite Baking - a package for converting GameObject to Entity.
- Depra.CodeGen.Unity - a package for code generation.
I welcome feature requests and bug reports in the issues section, and I also accept pull requests.
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!
This project is distributed under the Apache-2.0 license
Copyright (c) 2023 Nikolay Melnikov [email protected]