USMContentAsset¶
Module: SMContentEditor
#include <SMContentAsset.h>
Inherits from UObject
Description¶
Import content to your project to use as examples or a base for your own implementation.
Public Functions¶
Name | |
---|---|
virtual bool | IsEditorOnly() const override |
FString | GetOwningDirectory() const |
FString | GetDirectoryPath(bool bRelative =false) const |
FString | GetStagedFilesPath(bool bRelative =false) const |
FString | GetPackFilePath(bool bRelative =false) const |
TArray< FAssetData > | GetStagedAssets() const |
bool | IsExtractedAndStaged() const |
void | SetInputMappingContext(const UInputMappingContext * InInputMappingContext) |
const TMap< FName, FSMInputActionWrapper > & | GetInputActionsMapping() const |
const TArray< FString > & | GetPackagedFiles() const |
void | PackageAsset() |
FString | GetStagedFilesDirectoryName() |
Public Attributes¶
Name | |
---|---|
FText | Name |
FText | Author |
FText | Description |
FText | DetailedDescription |
TObjectPtr< UTexture2D > | TitleImage |
TObjectPtr< UTexture2D > | DescriptionImage |
ESMContentType | ContentType |
int32 | SortPriority |
FString | PrimaryMapName |
TArray< TSoftObjectPtr< USMContentAsset > > | ContentAssetDependencies |
bool | bInstallToPluginContent |
Public Functions Documentation¶
function
IsEditorOnly¶
function
GetOwningDirectory¶
The relative directory owning this file.
function
GetDirectoryPath¶
The full directory path to this asset.
function
GetStagedFilesPath¶
The full path to the staged files before installation.
function
GetPackFilePath¶
Return the expected pak file path location
function
GetStagedAssets¶
Retrieve the actual UAssets for this content; Only valid if staged. These are assets either extracted and ready to be migrated or are assets ready to be packaged into a pak file.
function
IsExtractedAndStaged¶
Checks if this asset is extracted to the plugin content folder and staged, potentially ready for migration.
function
SetInputMappingContext¶
Set the input mapping context for the asset This will duplicate the input context.
function
GetInputActionsMapping¶
Return the input action context embedded into the content asset.
function
GetPackagedFiles¶
Return the files packaged with this asset.
function
PackageAsset¶
function
GetStagedFilesDirectoryName¶
The single contained directory files should be staged to prior to install. Not a full path.
Public Attributes Documentation¶
variable
Name¶
variable
Author¶
variable
Description¶
variable
DetailedDescription¶
variable
TitleImage¶
The small title image.
variable
DescriptionImage¶
The large image to display when selected.
variable
ContentType¶
The type of content this asset represents.
variable
SortPriority¶
The order to display by default during Content selection.
variable
PrimaryMapName¶
The name of the map which should be opened when the Content is installed.
variable
ContentAssetDependencies¶
Other content assets this one is dependent on.
variable
bInstallToPluginContent¶
The content should be installed to the plugin content folder only.
Private Attributes Documentation¶
variable
InputActionsMapping¶
Input values detected during packaging.
variable
PackagedFiles¶
Read only view of all packaged files.