Hello guys,
This is my first UE project and Im having this issue with my Data Asset BP’s where i can Creat an instance of my DataAsset class in the edditor and it works fine. It has all re properies i asigned in my code and perofrms as intended. But once I restart the edditor, the DataAsset BP’s fail to reload.
error log:
LogLinker: Warning: [AssetLog] C:\…\Unreal Projects\SNM_Prototype2\Content\Weapons\Melee\Greatsword\Abilities\PrimaryAbilityData.uasset: CreateExport: Failed to load Class /Script/SNM_WeaponSystem.UAbilityData as Parent for BlueprintGeneratedClass /Game/Weapons/Melee/Greatsword/Abilities/PrimaryAbilityData.PrimaryAbilityData_C - both will fail to load
LogLinker: Warning: Unable to load Default__PrimaryAbilityData_C with outer Package /Game/Weapons/Melee/Greatsword/Abilities/PrimaryAbilityData because its class (PrimaryAbilityData_C) does not exist
LogLinker: Warning: Unable to load UP with outer Package /Game/Weapons/Melee/Greatsword/Abilities/UP because its class (PrimaryAbilityData_C) does not exist
So I checked extensiveley what the issue could be:
API Macro is set:
class SNM_WEAPONSYSTEM_API UAbilityData : public UPrimaryDataAsset
Class Macro is set:
UCLASS(Blueprintable, BlueprintType)
.Build.cs dependencies are set as public dependencies.
checked if all thre modules are loading before the error
Warning LogTemp SNM_CombatResourceSystem
Warning LogTemp SNM_WeaponSystem loaded
Warning LogTemp SNM_CombatState loaded
After edditor restart the AActor that was holding the Data Asset is no longer holding it. When I try to open the data asset the following error log is printed:
LogLinker: Warning: Unable to load test22 with outer Package /Game/Weapons/Melee/Greatsword/Abilities/test22 because its class (UAbilityData) does not exist
LogAssetEditorSubsystem: Error: Opening Asset editor failed because of null asset
Has anyone had this issue before? As this is my first UE5 projet im might be missing something, but nither Chat GPT or Epic Developer Assistant knew how to fix this. I also searched google and the forums and found nothing.
I found one post discribing they fixed their issue by using an FPrimaryAssetType and trying to Hotreload the asset. But if I have to manualy hot reload i might as well just try to implement it using another BP type and not DataAsset.
Anyway, I appreciat any help and info. Please let me know if you need extra info.
Take care!