Navigation
API > API/Editor > API/Editor/PlacementMode
Structure defining a placeable item in the placement mode panel
| Name | FPlaceableItem |
| Type | struct |
| Header File | /Engine/Source/Editor/PlacementMode/Public/IPlacementModeModule.h |
| Include Path | #include "IPlacementModeModule.h" |
Syntax
struct FPlaceableItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor | IPlacementModeModule.h | ||
FPlaceableItem
(
UClass& InActorFactoryClass, |
Constructor for any actor factory class | IPlacementModeModule.h | |
FPlaceableItem
(
TScriptInterface< IAssetFactoryInterface > InAssetFactory, |
Constructor that takes a specific factory and asset | IPlacementModeModule.h | |
FPlaceableItem
(
UActorFactory* InFactory, |
Constructor that takes a specific actor factory and asset | IPlacementModeModule.h | |
FPlaceableItem
(
TSharedPtr< FPlaceableItem::FDragHandler > InDragHandler, |
IPlacementModeModule.h | ||
FPlaceableItem
(
TScriptInterface< IAssetFactoryInterface > InAssetFactory, |
Constructor that takes a specific factory and asset with brush and display name overrides | IPlacementModeModule.h | |
FPlaceableItem
(
UClass& InActorFactoryClass, |
Constructor for any placeable actor class with associated asset data, brush and display name overrides | IPlacementModeModule.h |
Structs
| Name | Remarks |
|---|---|
| FDragHandler | An object which provides handling for Drags. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetData | FAssetData | Asset data pertaining to the class | IPlacementModeModule.h | |
| AssetFactory | TScriptInterface< IAssetFactoryInterface > | The factory used to create an instance of this placeable item | IPlacementModeModule.h | |
| AssetTypeColorOverride | TOptional< FLinearColor > | Optional overridden color tint for the asset | IPlacementModeModule.h | |
| bAlwaysUseGenericThumbnail | bool | Whether to always use the generic thumbnail for this item or not | IPlacementModeModule.h | |
| ClassIconBrushOverride | FName | Optional override for the small icon brush | IPlacementModeModule.h | |
| ClassThumbnailBrushOverride | FName | Optional override for the thumbnail brush (passed to FClassIconFinder::FindThumbnailForClass in the form ClassThumbnail. |
IPlacementModeModule.h | |
| DisplayName | FText | This item's display name | IPlacementModeModule.h | |
| DragHandler | TSharedPtr< FDragHandler > | If provided, handles the drag for the item. | IPlacementModeModule.h | |
| Factory | UActorFactory * | IPlacementModeModule.h | ||
| NativeName | FString | This item's native name | IPlacementModeModule.h | |
| SortOrder | TOptional< int32 > | Optional sort order (lowest first). Overrides default class name sorting. | IPlacementModeModule.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NativeFName | FName | This item's native name as an FName (initialized on access only) | IPlacementModeModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AutoSetDisplayName() |
IPlacementModeModule.h | ||
void AutoSetNativeAndDisplayName() |
Automatically set this item's native and display names from its class or asset | IPlacementModeModule.h | |
FName GetNativeFName() |
Return NativeName as an FName (and cache it) | IPlacementModeModule.h |