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