Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialLayersFunctions.h |
| Include | #include "Materials/MaterialLayersFunctions.h" |
Syntax
USTRUCT ()
struct FMaterialLayersFunctionsTree
Variables
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMaterialLayersFunctionsTree
(
const FMaterialLayersFunctionsTree& Rhs |
|||
FMaterialLayersFunctionsTree
(
const FMaterialLayersFunctions& Rhs |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNodeId | Add a new node with the specified Payload under the InPArent at the specified child index the new node id is returned | ||
| void | Empty () |
||
| TArray< FNodeId > | GetChildrenIds
(
FNodeId InNodeId |
Gather the list of children for this node. | |
| int32 | Return the depth of the node in the tree, the root is depth 0 the first valid node in the tree under the root is depth 1 | ||
| FNode * | Find and return the node at the specified Id or null if invalid. | ||
| FNode * | Find and return the parent node at the specified Id or null if invalid. | ||
| FPayload * | GetPayload
(
FNodeId InNodeId |
Find and return the node payload at the specified Id or null if invalid. | |
| FNodeId | GetSiblingHeadId
(
FNodeId InNodeId |
Find the node which is the head of the list of siblings where InNodeID belongs. | |
| bool | IsEmpty () |
||
| bool | Authoring the Tree. | ||
| FString | Logging the tree data structure, useful for debugging generate a multiline string representing the tree nodes hierarchy with the payload info per node | ||
| TArray< FNodeId > | RemoveNode
(
FNodeId RemovedNodeId |
Remove this node detach the node from the tree hierarchy as well as all the children recursively the nodes are all cleared in the array of nodes the payloads are NOT cleared and still hold on their value return the array of Id of the removed nodes | |
| bool | |||
| void | |||
| FNodeId | TraverseNode
(
V InVisitor, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FMaterialLayersFunctionsTree& Other |
||
| FMaterialLayersFunctionsTree & | operator=
(
const FMaterialLayersFunctionsTree& Rhs |
||
| bool | operator==
(
const FMaterialLayersFunctionsTree& Other |
Classes
Typedefs
| Name | Description |
|---|---|
| FNodeId | |
| FNodeVisitor | Traverser Utility. |
| FPayloadId |
Constants
| Name | Description |
|---|---|
| InvalidId |