跳到主内容
Documentation

4.怎么定义枚举.md

2025/12/16预计阅读 1 分钟

参考这个


// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"

/**
 * 陷阱底座的位置, 
 */
UENUM(BlueprintType)
enum class ETowerPosition : uint8
{
	/**
	 * 地面
	 */
	Ground = 0 UMETA(DisplayName = "地面"),

	/**
	 * 墙面
	 */
	Wall = 1 UMETA(DisplayName="墙上"),

	/**
	 * 天花板
	 */
	Ceiling = 2 UMETA(DisplayName="天花板"),

	/**
	 * 斜坡
	 */
	Slope = 3 UMETA(DisplayName="斜坡")
};
返回顶部