Navigation
API > API/Plugins > API/Plugins/GeometryCollectionNodes
Assign material to a set of face in a geometry collection
| Name | FAssignMaterialInterfaceToCollectionDataflowNode |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/GeometryCollectionPlugin/Source/GeometryCollectionNodes/Public/Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
| Include Path | #include "Dataflow/GeometryCollectionMaterialInterfaceNodes.h" |
Syntax
USTRUCT ()
struct FAssignMaterialInterfaceToCollectionDataflowNode : public FDataflowNode
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDataflowNode → FAssignMaterialInterfaceToCollectionDataflowNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAssignMaterialInterfaceToCollectionDataflowNode
(
const UE::Dataflow::FNodeParameters& InParam, |
Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bMergeDuplicateMaterials | bool | If true, detect duplicate in the material array and only add the material in the array if it does not yet exists | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
|
| FaceSelection | DATAFLOW_NODE_DEFINE_INTERNAL(FAssignMaterialInterfaceToCollectionDataflowNode, "AssignMaterialToCollection", "Materials", "") private FDataflowFaceSelection | Collection to assign material to Faces that will be set with this material index, if no selection is connected , all faces will be set | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
|
| Material | TObjectPtr< UMaterialInterface > | Material to assign to the selection | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
|
| MaterialArray | TArray< TObjectPtr< UMaterialInterface > > | Array holding the materials objects | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
|
| MaterialIndex | int32 | Index where the material was set in the array | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddOrMergeMaterialToArray
(
TArray< TObjectPtr< UMaterialInterface > >& InOutMaterials, |
Add or merge a material and return the index where the material was set inthe array | Dataflow/GeometryCollectionMaterialInterfaceNodes.h |
Overridden from FDataflowNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Evaluate
(
UE::Dataflow::FContext& Context, |
Dataflow/GeometryCollectionMaterialInterfaceNodes.h |