kinect/codes/AzureKinectForUE/Source/AzureKinectEditor/Private/Customizations/AzureKinectDeviceCustomizat...

27 lines
701 B
C
Raw Normal View History

2024-03-06 15:31:40 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "IDetailCustomization.h"
#include "AzureKinectDevice.h"
/**
*
*/
class FAzureKinectDeviceCustomization : public IDetailCustomization
{
public:
static TSharedRef<IDetailCustomization> MakeInstance();
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
TSharedRef<SWidget> MakeWidgetForOption(TSharedPtr<FString> InOption);
void OnSelectionChanged(TSharedPtr<FString> NewValue, ESelectInfo::Type);
FText GetCurrentItemLabel() const;
private:
TWeakObjectPtr<UAzureKinectDevice> AzureKinectDevice;
TSharedPtr<FString> CurrentOption;
};