Adding proc_macro #[required(TransformComponent, ...)]
for Component.
#14737
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
X-Controversial
There is active debate or serious implications around merging this PR
What problem does this solve or what need does it fill?
A
required
proc_macro will add automatically specified components along with component that has this proc_macro.What solution would you like?
Don't know.
What alternative(s) have you considered?
None.
Additional context
This is similiar to the Unity's
RequieredComponent
attribute. If we specify this attribute, then, with adding component to the GameObject, will be also added specified components (by components I meanMonoBehaviour
s).The text was updated successfully, but these errors were encountered: