UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialDependencyWalker.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
#pragma once
3
4
#if WITH_EDITOR
5
6
#include "
CoreMinimal.h
"
7
8
class
UMaterialExpression
;
9
10
struct
FMaterialDependencySearchMetadata
11
{
12
FMaterialDependencySearchMetadata
() :
13
bHasTextureInput
(0)
14
{
15
}
16
17
uint32
bHasTextureInput
: 1;
18
};
19
20
enum
EMaterialDependencySearchFlags
21
{
22
MDSF_TextureDependencyOnly
= (1 << 0),
23
};
24
25
26
// Walks the dependency graph (i.e. all expression inputs) of the specified material expression.
27
// Returns the maxmium depth the search went or INDEX_NONE if the limit has reached before finding anything.
28
// @param SearchFlags can be a bitwise OR combination of EMaterialDependencySearchFlags.
29
ENGINE_API
int32
WalkMaterialDependencyGraph
(
const
UMaterialExpression
* Expression,
int32
MaxDepth,
uint32
SearchFlags
,
FMaterialDependencySearchMetadata
&
OutMetaData
);
30
31
32
#endif
// WITH_EDITOR
CoreMinimal.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
UMaterialExpression
Definition
MaterialExpression.h:150
Engine
Source
Runtime
Engine
Public
Materials
MaterialDependencyWalker.h
Generated by
1.9.8