Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 890 Bytes

CreateUType.md

File metadata and controls

35 lines (29 loc) · 890 Bytes

UE4 C++ 数据类型

USTRUCT:

USTRUCT(BlueprintType)
struct FData_PageInfo
{
    GENERATED_USTRUCT_BODY()

    FData_PageInfo();
    FData_PageInfo(UChildActorComponent *parent_Com);

    void reInit();

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "struct_Variants")
        class UChildActorComponent *Parent_Com;

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "struct_Variants")
        class ACpp_PagerActor *PageActor;

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "struct_Variants")
        class UChildActorComponent *FrontCanvas_Com;

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "struct_Variants")
        class UChildActorComponent *BackCanvas_Com;
};

UENUM:

UENUM()
enum class GroupActorState : uint8
{
    EM_Expand    UMETA(DisplayName = "Expand"),
    EM_Merge    UMETA(DisplayName = "Merge")
};