UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionMaterialSample.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
7#pragma once
8
9#include "CoreMinimal.h"
11
12#include "MaterialExpressionMaterialSample.generated.h"
13
14#define ENABLE_MATERIAL_SAMPLE_PROTOTYPE 0
15
17
18UCLASS(MinimalAPI)
20{
22
23 UPROPERTY(EditAnywhere, Category=MaterialExpressionMaterialSample)
25
26 //~ Begin UMaterialExpression Interface
27#if WITH_EDITOR
28#if ENABLE_MATERIAL_SAMPLE_PROTOTYPE
29 ENGINE_API virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
30 ENGINE_API virtual int32 CompilePreview(FMaterialCompiler* Compiler, int32 OutputIndex) override;
31 ENGINE_API virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
32 virtual bool IsResultSubstrateMaterial(int32 OutputIndex) override;
33 virtual FSubstrateOperator * SubstrateGenerateMaterialTopologyTree(class FMaterialCompiler* Compiler, class UMaterialExpression* Parent, int32 OutputIndex) override;
34
35 int32 DynamicCompile(FMaterialCompiler* Compiler, int32 OutputIndex, bool bCompilePreview);
36#endif
37 ENGINE_API virtual void GetCaption(TArray<FString>& OutCaptions) const override;
38#endif
39
40 //~ End UMaterialExpression Interface
41};
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
EMaterialValueType
Definition MaterialValueType.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition MaterialExpressionMaterialSample.h:20
Definition MaterialExpression.h:150
Definition SubstrateMaterialShared.h:105
Definition ObjectPtr.h:488