Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionDistanceToNearestSurface
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionDistanceToNearestSurface.h |
| Include | #include "Materials/MaterialExpressionDistanceToNearestSurface.h" |
Syntax
UCLASS ()
class UMaterialExpressionDistanceToNearestSurface : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | Position | ||
| EPositionOrigin | WorldPositionOriginType | Defines the reference space for the Position input. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionDistanceToNearestSurface
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FName | GetInputName
(
int32 InputIndex |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |