Hello everyone,
I’m not sure if I’ve come across a bug in the engine or if the behavior was triggered by some action.
When I try to add a Blueprint to an ActorComponent in the Blueprint Editor, it initially appears and then disappears again when I compile the class.
In my case, this concerns my UCharacterSkillComponent.
It has the following array:
UPROPERTY(EditDefaultsOnly, Category = “Skill”)
TArray<UCharacterSkillBase*> BaseSkills;
In it, I want to add a Blueprint object that is based on this class in the array.
However, as soon as I press the compile button, it disappears again and leaves an empty field:
My project is using Unreal Engine 5.1.1.
The error was not always present but suddenly appeared. All variables that are pointers and not directly based on AGameCharacter are affected.
When I touch a pointer that has a value, it also loses the value when compiling the Blueprint.
There is no indication in the logs that something is wrong.
Things I’ve tried so far:
Deleted Binaries, Intermediate, and Saved folders and recompiled, without success.
Created new Blueprints from the C++ classes, without success.
Any idea what could be causing this?