UENUM(BlueprintType)
enum class EquipmentTypes : uint8
{
Weapon = 0,
Weapon2 = 1,
};
USTRUCT()
struct FEquipments{
GENERATED_USTRUCT_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Bonus)
EquipmentTypes EquipmentSlot;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Bonus)
ABaseItem *Item;
FEquipments(){
}
};
TArray Equipments;
My problem started at this point. I used this but this is a wrong.
Equipments.FindByKey(EquipmentSlot::Weapon)
How can I find my weapon key struct from Equipments ?
Thanks a lot …