Init
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;
|
||||
```
|
||||
|
||||

|
||||
|
||||

|
BIN
03-UnrealEngine/Gameplay/UObject/UnrealSpecifiers/Meta/Development/DeprecatedProperty/Untitled 1.png
(Stored with Git LFS)
Normal file
BIN
03-UnrealEngine/Gameplay/UObject/UnrealSpecifiers/Meta/Development/DeprecatedProperty/Untitled 1.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
03-UnrealEngine/Gameplay/UObject/UnrealSpecifiers/Meta/Development/DeprecatedProperty/Untitled.png
(Stored with Git LFS)
Normal file
BIN
03-UnrealEngine/Gameplay/UObject/UnrealSpecifiers/Meta/Development/DeprecatedProperty/Untitled.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user