x157 / x157.github.io

46 stars 7 forks source link

5.2 Upgrade Note: Export Gameplay Tags with LYRAGAME_API #16

Closed x157 closed 1 year ago

x157 commented 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:

    UE_DECLARE_GAMEPLAY_TAG_EXTERN(InputTag_Move);

Add LYRAGAME_API like this:

    LYRAGAME_API UE_DECLARE_GAMEPLAY_TAG_EXTERN(InputTag_Move);

Personally I just exported all the tags because I'm lazy.

x157 commented 1 year ago

Epic has now exported all Lyra tags in the base distribution as of 5.2

Thank you Epic! :-)