Hi everyone, I need help with a simple question about UE5. I have a property in a C++ script that indicates which enemy my player will focus on when the game starts (I have this flow just for study). My question is: how can I guarantee that when my player starts the game, this property has the default value EnemyCpp_BP? I have tried many ways to set this default value, but so far I have not been able to do so.
In my C++ class, this property is defined like this:
UPROPERTY(BlueprintReadWrite, EditAnywhere)
AEnemy* FocusedEnemy;|