.h: UENUM(BlueprintType) enum class ESequenceItem : uint8 { Invalid = 0, WaitingSubway UMETA(DisplayName = "体验者等待地铁"), FindPeople UMETA(DisplayName = "寻找患者友人"), Undress UMETA(DisplayName = "解开患者上衣"), ChoiceLocation UMETA(DisplayName = "选择施救位置"), RescueChest UMETA(DisplayName = "实施心肺按压"), ArtificialRespiration UMETA(DisplayName = "实施人工呼吸"), AEDUsing UMETA(DisplayName = "使用AED"), Max, }; .cpp: //遍历枚举,全部生成 UEnum* MyEnum = StaticEnum<ESequenceItem>(); for (int32 i = 0; i < MyEnum->NumEnums() - 1; i++) { ESequenceItem Temp = ESequenceItem(MyEnum->GetValueByIndex(i)); //执行某些逻辑 }