2023-01-25 14:20:34 +03:00
|
|
|
This package is used for code generation of C# meta structs for LeoECS using Twig templates
|
|
|
|
|
|
|
|
# Example:
|
|
|
|
ecs.meta
|
|
|
|
```
|
|
|
|
struct TestComponent
|
2023-01-27 15:54:55 +03:00
|
|
|
@bhl_ecs_component @ecs_gen_component @ecs_gen_authoring @serializable
|
|
|
|
pos : Vector3 @serializable
|
|
|
|
fwd : Vector3 @serializable
|
2023-01-25 14:20:34 +03:00
|
|
|
width : float
|
|
|
|
length : float
|
|
|
|
end
|
|
|
|
```
|
|
|
|
This will automatically generate serializable TestComponent struct and TestComponentAuthoringComponent monobehaviour class
|
|
|
|
to be added on game object.
|
|
|
|
|
|
|
|
# Tags:
|
|
|
|
@ecs_gen_component - generates C# component
|
|
|
|
@ecs_gen_authoring - generates authoring monobehaviour to be added on game object
|
2023-01-27 15:54:55 +03:00
|
|
|
@serializable - makes component editable in inspector
|
2023-01-25 14:20:34 +03:00
|
|
|
@ecs_tag - marks component tag
|