The game works fine in editor without any problem but when I package it, it gives this issue:
LowLevelFatalError [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading2.cpp] [Line: 8281] ObjectSerializationError: /Game/Blueprints/PlayerCharacter_BP (0xAE3D211A21E6C2FA) /Game/Blueprints/PlayerCharacter_BP (0xAE3D211A21E6C2FA) - SoundManager /Game/Blueprints/PlayerCharacter_BP.PlayerCharacter_BP_C:PlayerSoundManager_GEN_VARIABLE: Serial size mismatch: Expected read size 94, Actual read size 50
And the thing is that PlayerSoundManager was old name of my component which I’ve changed to SoundManager and for some reason its still linking to that.
I tried deleting saved/intermediate/derivedDataCache and removing the component in my blueprint and readding it. It still gives this same error on launch.
And even after completely removing the component from my BP and then packaging the game still gives this issue even tho the component isn’t present in the BP.