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]
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDetailCustomization.h"
|
|
|
|
class IMaterialListBuilder;
|
|
class UMaterialInterface;
|
|
|
|
/**
|
|
* Creates details for the level editor details view that are not specific to any selected actor type
|
|
*/
|
|
class FLevelEditorGenericDetails : 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( class IDetailLayoutBuilder& DetailLayout ) override;
|
|
|
|
private:
|
|
/**
|
|
* Adds a section for selected surface details
|
|
*/
|
|
void AddSurfaceDetails( class IDetailLayoutBuilder& DetailLayout );
|
|
|
|
/**
|
|
* Populate the specified material list with the materials used on the currently selected BSP surfaces
|
|
*/
|
|
void GetSelectedSurfaceMaterials(IMaterialListBuilder& MaterialList) const;
|
|
|
|
/**
|
|
* Called when the material should be changed on all selected BSP surfaces
|
|
*/
|
|
void OnMaterialChanged( UMaterialInterface* NewMaterial, UMaterialInterface* PrevMaterial, int32 SlotIndex, bool bReplaceAll );
|
|
};
|
|
|