You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Customizations/MathStructCustomizations.h"
|
|
#include "IDetailCustomNodeBuilder.h"
|
|
#include "ColorGradingVectorCustomization.h"
|
|
|
|
/**
|
|
* Customizes FVector4 structs.
|
|
* We override Vector4 because the color grading controls are made with vector4
|
|
*/
|
|
class FVector4StructCustomization
|
|
: public FMathStructCustomization
|
|
{
|
|
public:
|
|
FVector4StructCustomization();
|
|
~FVector4StructCustomization();
|
|
/** @return A new instance of this class */
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/** FMathStructCustomization interface */
|
|
|
|
virtual void MakeHeaderRow(TSharedRef<IPropertyHandle>& StructPropertyHandle, FDetailWidgetRow& Row) override;
|
|
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
|
|
|
|
private:
|
|
// We specialize the detail display of color grading vector property. The color grading mode is specified inside the metadata of the FProperty
|
|
TSharedPtr<FColorGradingVectorCustomization> GetOrCreateColorGradingVectorCustomization(TSharedRef<IPropertyHandle>& StructPropertyHandle);
|
|
|
|
TSharedPtr<FColorGradingVectorCustomization> ColorGradingVectorCustomization;
|
|
};
|
|
|