EM_Task/UnrealEd/Classes/MaterialEditor/DEditorStaticComponentMaskParameterValue.h

49 lines
1.6 KiB
C
Raw Permalink Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "MaterialEditor/DEditorParameterValue.h"
#include "DEditorStaticComponentMaskParameterValue.generated.h"
USTRUCT()
struct UNREALED_API FDComponentMaskParameter
{
GENERATED_USTRUCT_BODY()
UPROPERTY(EditAnywhere, Category = DComponentMaskParameter)
uint32 R : 1;
UPROPERTY(EditAnywhere, Category = DComponentMaskParameter)
uint32 G : 1;
UPROPERTY(EditAnywhere, Category = DComponentMaskParameter)
uint32 B : 1;
UPROPERTY(EditAnywhere, Category = DComponentMaskParameter)
uint32 A : 1;
/** Constructor */
FDComponentMaskParameter(bool InR, bool InG, bool InB, bool InA): R(InR),
G(InG),
B(InB),
A(InA) {
};
FDComponentMaskParameter(): R(false),
G(false),
B(false),
A(false) {
};
};
UCLASS(hidecategories = Object, collapsecategories)
class UNREALED_API UDEditorStaticComponentMaskParameterValue: public UDEditorParameterValue
{
GENERATED_UCLASS_BODY()
UPROPERTY(EditAnywhere, Category = DEditorStaticComponentMaskParameterValue)
struct FDComponentMaskParameter ParameterValue;
};