Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/StaticMeshComponentDetails.h
bryan sefcik 0837230669 Ran IWYU again on half of the Engine/Source/Editor/... source files.
#jira

[CL 21716414 by bryan sefcik in ue5-main branch]
2022-08-30 23:03:03 -04:00

40 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Array.h"
#include "HAL/Platform.h"
#include "IDetailCustomization.h"
#include "Misc/Optional.h"
#include "Templates/SharedPointer.h"
#include "UObject/WeakObjectPtr.h"
#include "UObject/WeakObjectPtrTemplates.h"
class IDetailLayoutBuilder;
class IPropertyHandle;
class UObject;
class FStaticMeshComponentDetails : public IDetailCustomization
{
public:
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
static TSharedRef<IDetailCustomization> MakeInstance();
/** IDetailCustomization interface */
virtual void CustomizeDetails( IDetailLayoutBuilder& DetailBuilder ) override;
private:
/**
* @return Which UI to show whether or not override lightmap res is enabled
*/
int HandleNoticeSwitcherWidgetIndex() const;
/**
* @return Accessor for the static mesh's light resolution value.
*/
TOptional<int32> GetStaticMeshLightResValue() const;
private:
TArray<TWeakObjectPtr<UObject>> ObjectsCustomized;
TSharedPtr<IPropertyHandle> OverrideLightResProperty;
};