This is one of the super cool features about Lyra, that it can inject components into your actors at runtime.
How does that work?
Where does Lyra do this injection?
How do I get it to inject stuff into actors that I spawn myself?
These and related questions would make a good tutorial.
Short answer: You do have to inject components yourself into any actors that you spawn. Lyra only injects into default pawns and other default objects that it explicitly spawns for you.
Fore more info you should search for ULyraPawnData in the C++ and see where they use it. Understand what that class is and how it is used and you'll be able to accomplish the same thing yourself.
To find the injections Lyra is doing, look in:
Experience Definition
Game Feature Data asset (GFP's self-named asset in its Content root)
Both of those assets may have instantiated Game Feature Actions that perform component injections.
This is one of the super cool features about Lyra, that it can inject components into your actors at runtime.
These and related questions would make a good tutorial.
Short answer: You do have to inject components yourself into any actors that you spawn. Lyra only injects into default pawns and other default objects that it explicitly spawns for you.
Fore more info you should search for
ULyraPawnData
in the C++ and see where they use it. Understand what that class is and how it is used and you'll be able to accomplish the same thing yourself.To find the injections Lyra is doing, look in:
Both of those assets may have instantiated Game Feature Actions that perform component injections.