Files
UnrealEngine/Engine/Source/Runtime/AdvancedWidgets/Public/Widgets/PropertyViewer/SDefaultPropertyValue.h
2025-05-18 13:04:45 +08:00

33 lines
678 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Widgets/SCompoundWidget.h"
#include "Framework/PropertyViewer/PropertyPath.h"
#include "Framework/PropertyViewer/PropertyValueFactory.h"
namespace UE::PropertyViewer
{
/** */
class SDefaultPropertyValue : public SCompoundWidget
{
public:
static ADVANCEDWIDGETS_API TSharedPtr<SWidget> CreateInstance(const FPropertyValueFactory::FGenerateArgs Args);
public:
SLATE_BEGIN_ARGS(SDefaultPropertyValue) {}
SLATE_ARGUMENT(FPropertyPath, Path);
SLATE_END_ARGS()
ADVANCEDWIDGETS_API void Construct(const FArguments& InArgs);
private:
FText GetText() const;
FPropertyPath Path;
};
} //namespace