vault backup: 2024-10-12 17:19:45
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# BitmaskEnum
|
||||
|
||||
- **功能描述:** 使用位标记后采用的枚举名字
|
||||
- **使用位置:** UPROPERTY
|
||||
- **元数据类型:** string="abc"
|
||||
- **限制类型:** 用来表示枚举值的int32
|
||||
- **关联项:** [Bitmask](../Bitmask/Bitmask.md)
|
||||
- **常用程度:** ★★★★★
|
||||
|
||||
如果没有标上BitmaskEnum,则无法提供标记的的名称值
|
||||
|
||||
```cpp
|
||||
UCLASS(Blueprintable, BlueprintType)
|
||||
class INSIDER_API AMyActor_EnumBitFlags_Test:public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, Meta = (Bitmask))
|
||||
int32 MyNormalWithoutEnum;
|
||||
};
|
||||
```
|
||||
|
||||
如果没有标上BitmaskEnum,则无法提供标记的的名称值
|
||||
|
||||

|
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
Reference in New Issue
Block a user