vault backup: 2024-10-12 17:19:45
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# DeprecatedProperty
|
||||
|
||||
- **功能描述:** 标记弃用,引用到该属性的蓝图会触发一个警告
|
||||
|
||||
- **使用位置:** UPROPERTY
|
||||
|
||||
- **引擎模块:** Development
|
||||
|
||||
- **元数据类型:** bool
|
||||
|
||||
- **关联项:**
|
||||
|
||||
UCLASS:[Deprecated](../../../Specifier/UCLASS/Development/Deprecated/Deprecated.md)
|
||||
|
||||
- **常用程度:** ★
|
||||
|
||||
标记弃用,引用到该属性的蓝图会触发一个警告
|
||||
|
||||
## 示例代码:
|
||||
|
||||
```cpp
|
||||
// Simple
|
||||
UPROPERTY(BlueprintReadWrite, meta=(DeprecatedProperty, DeprecationMessage="This is deprecated"))
|
||||
FString PlantName;
|
||||
|
||||
// Better
|
||||
UPROPERTY(BlueprintReadWrite, meta=(DisplayName="PlantName", DeprecatedProperty, DeprecationMessage="PlantName is deprecated, instead use PlantDisplayName."))
|
||||
FString DEPRECATED_PlantName;
|
||||
```
|
||||
|
||||

|
||||
|
||||

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