UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionFirstPersonOutput.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
Materials/MaterialExpressionCustomOutput.h
"
7
#include "
UObject/ObjectMacros.h
"
8
#include "MaterialExpressionFirstPersonOutput.generated.h"
9
11
UCLASS
(MinimalAPI,
collapsecategories
,
hidecategories
=
Object
)
12
class
UMaterialExpressionFirstPersonOutput
:
public
UMaterialExpressionCustomOutput
13
{
14
GENERATED_UCLASS_BODY
()
15
16
17
UPROPERTY
(meta = (RequiredInput =
"false"
,
ToolTip
=
"Interpolates between world space and first person space. Valid range is [0, 1], from world space to first person space. Defaults to 'ConstFirstPersonInterpolationAlpha' if not specified."
))
18
FExpressionInput
FirstPersonInterpolationAlpha;
19
21
UPROPERTY
(EditAnywhere, Category =
"First Person"
, meta = (OverridingInputProperty =
"FirstPersonInterpolationAlpha"
, UIMin = 0.0f, UIMax = 1.0f, ClampMin = 0.0f, ClampMax = 1.0f))
22
float
ConstFirstPersonInterpolationAlpha = 1.0f;
23
24
public
:
25
#if WITH_EDITOR
26
//~ Begin UMaterialExpression Interface
27
virtual
int32
Compile
(
class
FMaterialCompiler
* Compiler,
int32
OutputIndex)
override
;
28
virtual
void
GetCaption
(
TArray<FString>
&
OutCaptions
)
const override
;
29
30
//~ End UMaterialExpression Interface
31
#endif
32
33
//~ Begin UMaterialExpressionCustomOutput Interface
34
virtual
int32
GetNumOutputs()
const override
;
35
virtual
FString GetFunctionName()
const override
;
36
virtual
FString GetDisplayName()
const override
;
37
#if WITH_EDITOR
38
virtual
bool
NeedsPreviousFrameEvaluation
()
override
{
return
true
; }
39
virtual
EShaderFrequency
GetShaderFrequency(
uint32
OutputIndex)
override
{
return
SF_Vertex
; }
40
#endif
41
//~ End UMaterialExpressionCustomOutput Interface
42
};
EAudioParameterType::Object
@ Object
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
EAccessibleBehavior::ToolTip
@ ToolTip
MaterialExpressionCustomOutput.h
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_UCLASS_BODY
#define GENERATED_UCLASS_BODY(...)
Definition
ObjectMacros.h:768
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
EShaderFrequency
EShaderFrequency
Definition
RHIDefinitions.h:202
SF_Vertex
@ SF_Vertex
Definition
RHIDefinitions.h:203
ERDGSetupTaskWaitPoint::Compile
@ Compile
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FMaterialCompiler
Definition
MaterialCompiler.h:109
TArray
Definition
Array.h:670
UMaterialExpressionCustomOutput
Definition
MaterialExpressionCustomOutput.h:15
UMaterialExpressionFirstPersonOutput
Definition
MaterialExpressionFirstPersonOutput.h:13
FExpressionInput
Definition
MaterialExpressionIO.h:23
Engine
Source
Runtime
Engine
Public
Materials
MaterialExpressionFirstPersonOutput.h
Generated by
1.9.8