vault backup: 2024-10-12 17:19:45
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# CollapsableChildProperties
|
||||
|
||||
- **功能描述:** 在TextureGraph模块中新增加的meta。用于折叠一个结构的内部属性。
|
||||
- **使用位置:** UPROPERTY
|
||||
- **元数据类型:** bool
|
||||
- **限制类型:** TextureGraph插件内使用
|
||||
- **关联项:** [ShowInnerProperties](ShowInnerProperties/ShowInnerProperties.md)
|
||||
- **常用程度:** 0
|
||||
|
||||
在TextureGraph模块中新增加的meta。用于折叠一个结构的内部属性。
|
||||
|
||||
## 源码:
|
||||
|
||||
```cpp
|
||||
bool STG_GraphPinOutputSettings::CollapsibleChildProperties() const
|
||||
{
|
||||
FProperty* Property = GetPinProperty();
|
||||
bool Collapsible = false;
|
||||
// check if there is a display name defined for the property, we use that as the Pin Name
|
||||
if (Property && Property->HasMetaData("CollapsableChildProperties"))
|
||||
{
|
||||
Collapsible = true;
|
||||
}
|
||||
return Collapsible;
|
||||
}
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = NoCategory, meta = (TGType = "TG_Input", CollapsableChildProperties,ShowOnlyInnerProperties, FullyExpand, NoResetToDefault, PinDisplayName = "Settings") )
|
||||
FTG_OutputSettings OutputSettings;
|
||||
```
|
Reference in New Issue
Block a user