UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionPanner.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
10#include "MaterialExpressionPanner.generated.h"
11
14{
16
17 UPROPERTY(meta = (RequiredInput = "false", ToolTip = "Defaults to 'ConstCoordinate' if not specified"))
18 FExpressionInput Coordinate;
19
20 UPROPERTY(meta = (RequiredInput = "false", ToolTip = "Defaults to Game Time if not specified"))
22
23 UPROPERTY(meta = (RequiredInput = "false", ToolTip = "Vector2 speed scale, if specified"))
25
26 UPROPERTY(EditAnywhere, Category=MaterialExpressionPanner, meta = (OverridingInputProperty = "Speed"))
27 float SpeedX;
28
29 UPROPERTY(EditAnywhere, Category=MaterialExpressionPanner, meta = (OverridingInputProperty = "Speed"))
30 float SpeedY;
31
33 UPROPERTY(EditAnywhere, Category = MaterialExpressionPanner, meta = (OverridingInputProperty = "Coordinate"))
34 uint32 ConstCoordinate = 0;
35
36 // Output only the fractional part of the pan calculation for greater precision.
37 // Output is greater than or equal to 0 and less than 1.
38 UPROPERTY(EditAnywhere, Category=MaterialExpressionPanner)
39 bool bFractionalPart;
40
41 //~ Begin UMaterialExpression Interface
42#if WITH_EDITOR
43 virtual void Build(MIR::FEmitter& Emitter) override;
44 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
45 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
46 virtual bool NeedsRealtimePreview() override { return Time.Expression==NULL && (SpeedX != 0.f || SpeedY != 0.f); }
47#endif
48 //~ End UMaterialExpression Interface
49
50};
51
52
53
#define NULL
Definition oodle2base.h:134
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition MaterialExpressionPanner.h:14
Definition MaterialExpression.h:150
Definition MaterialExpressionIO.h:23