Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/Vector4StructCustomization.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

35 lines
1.4 KiB
C++

// Copyright 1998-2019 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 UProperty
TSharedPtr<FColorGradingVectorCustomization> GetOrCreateColorGradingVectorCustomization(TSharedRef<IPropertyHandle>& StructPropertyHandle);
TSharedPtr<FColorGradingVectorCustomization> ColorGradingVectorCustomization;
};