void FSuraUI_ARModule::RegisterSuraToPlacementMode( ) { IPlacementModeModule& PlacementModeModule = IPlacementModeModule::Get(); FPlacementCategoryInfo Category( NSLOCTEXT("PlacementMode", "Sura", "Sura"), SuraCategoryInPlacementMode, TEXT("PMSura"), 49 ); int32 SortOrder = 0; PlacementModeModule.RegisterPlacementCategory(Category); PlacementModeModule.RegisterPlaceableItem(Category.UniqueHandle, MakeShareable(new FPlaceableItem(nullptr, FAssetData(ASURACameraDriver::StaticClass()), SortOrder += 10))); FAssetData ShadowCaptureActorAssetData( TEXT("/SURAPlugin/ARShadow/ShadowGenerator/BluePrints/ShadowCapture"), TEXT("/SURAPlugin/ARShadow/ShadowGenerator/BluePrints"), TEXT("ShadowCapture"), TEXT("Blueprint") ); PlacementModeModule.RegisterPlaceableItem(Category.UniqueHandle, MakeShareable(new FPlaceableItem(nullptr, ShadowCaptureActorAssetData, SortOrder += 10))); } void FSuraUI_ARModule::UnregisterSuraToPlacementMode( ) { IPlacementModeModule& PlacementModeModule = IPlacementModeModule::Get(); PlacementModeModule.UnregisterPlacementCategory(SuraCategoryInPlacementMode); }