C++ Create A Simple Struct!

Here’s a good example PlayerStruct.h in UE5:

#pragma once

#include "PlayerStruct.generated.h"

USTRUCT(BlueprintType)
struct FPlayerStruct
{
    GENERATED_USTRUCT_BODY()

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Player")
    FString Name;
};

Sorry for reviving this.

2 Likes