Closed x157 closed 1 year ago
After you upgrade to Lyra 5.2 you may get linker errors like this:
LNK2001: unresolved external symbol "class FNativeGameplayTag LyraGameplayTags::InputTag_Move" (?InputTag_Move@LyraGameplayTags@@3VFNativeGameplayTag@@A)
This is because Lyra does not export the GameplayTags by default. To fix this, you need to export any tags that you use in your Lyra-derived code.
Example InputTag.Move Lyra code:
InputTag.Move
UE_DECLARE_GAMEPLAY_TAG_EXTERN(InputTag_Move);
Add LYRAGAME_API like this:
LYRAGAME_API
LYRAGAME_API UE_DECLARE_GAMEPLAY_TAG_EXTERN(InputTag_Move);
Personally I just exported all the tags because I'm lazy.
Epic has now exported all Lyra tags in the base distribution as of 5.2
Thank you Epic! :-)
:-)
After you upgrade to Lyra 5.2 you may get linker errors like this:
This is because Lyra does not export the GameplayTags by default. To fix this, you need to export any tags that you use in your Lyra-derived code.
Example
InputTag.Move
Lyra code:Add
LYRAGAME_API
like this:Personally I just exported all the tags because I'm lazy.