Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/EditorFramework
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAssetImportData
- PAPER2UTileMapAssetImportData
- UAbcAssetImportData
- UDatasmithAssetImportData
- UDatasmithDeltaGenAssetImportData
- UDatasmithStaticMeshImportData
- UDatasmithStaticMeshCADImportData
- UDatasmithStaticMeshGLTFImportData
- UDatasmithVREDAssetImportData
- UDatasmithSceneImportData
- UDatasmithCADImportSceneData
- UDatasmithFBXSceneImportData
- UDatasmithDeltaGenSceneImportData
- UDatasmithVREDSceneImportData
- UDatasmithGLTFSceneImportData
- UDatasmithMDLSceneImportData
- UDatasmithTranslatedSceneImportData
- UDMXGDTFAssetImportData
- UDMXMVRAssetImportData
- UFbxAssetImportData
- UFbxAnimSequenceImportData
- UFbxMeshImportData
- UFbxSkeletalMeshImportData
- UFbxStaticMeshImportData
- UFbxTextureImportData
- UGroomAssetImportData
- UGroomCacheImportData
- UInterchangeAssetImportData
- USpeedTreeImportData
- UUsdAssetImportData
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/EditorFramework/AssetImportData.h |
| Include | #include "EditorFramework/AssetImportData.h" |
Syntax
class UAssetImportData : public UObject
Remarks
Todo: Make this class better suited to multiple import paths - maybe have FAssetImportInfo use a map rather than array?
Variables
| Type | Name | Description | |
|---|---|---|---|
| FAssetImportInfo | SourceData | Source file data describing the files that were used to import this asset. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAssetImportData
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddFileName
(
const FString& InPath, |
Add a filename at the specific index. | |
| void | AppendAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
If your asset import data flavor need to add some asset registry tag, override this function. | |
| void | ExtractDisplayLabels
(
TArray< FString >& FileDisplayLabels |
||
| void | ExtractFilenames
(
TArray< FString >& AbsoluteFilenames |
Extract all the (resolved) filenames from this data | |
| TArray< FString > | Extract all the (resolved) filenames from this data | ||
| FString | Helper function to return the first filename stored in this data. | ||
| const FAssetImportInfo & | Const access to the source file data | ||
| int32 | |||
| TArray< FString > | Extract all the (resolved) filenames from this data | ||
| FString | Helper function to return the first filename stored in this data. | ||
| FString | ResolveImportFilename
(
FStringView InRelativePath, |
Resolve a filename that is relative to either the specified package, BaseDir() or absolute | |
| FString | ResolveImportFilename
(
const FString& InRelativePath |
Resolve a filename that is relative to either this object's package, BaseDir() or absolute | |
| FString | ResolveImportFilename
(
const FString& InRelativePath, |
Resolve a filename that is relative to either the specified package, BaseDir() or absolute | |
| FString | SanitizeImportFilename
(
const FString& InPath, |
Convert an absolute import path so that it's relative to either this object's package, BaseDir() or leave it absolute | |
| FString | SanitizeImportFilename
(
const FString& InPath, |
Convert an absolute import path so that it's relative to either this object's package, BaseDir() or leave it absolute | |
| FString | SanitizeImportFilename
(
const FString& InPath |
Convert an absolute import path so that it's relative to either this object's package, BaseDir() or leave it absolute | |
| void | ScriptedAddFilename
(
const FString& InPath, |
Add or update a filename at the specified index. | |
| void | SetSourceFiles
(
TArray< FAssetImportInfo::FSourceFile >&& SourceFiles |
Replace the source files with the one provided. The MD5 hashes will be computed if they aren't set | |
| void | Update this import data using the specified file. | ||
| void | Update this import data using the specified filename and Precomputed Hash. | ||
| void | UpdateFilenameOnly
(
const FString& InPath |
Update this import data using the specified filename. | |
| void | UpdateFilenameOnly
(
const FString& InPath, |
Update the filename at the specific specified index. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEditorOnly () |
Only valid in the editor | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Serialize
(
FStructuredArchive::FRecord Record |
Overridden serialize function to write out the underlying data as json |
Constants
| Name | Description |
|---|---|
| OnImportDataChanged | Static event that is broadcast whenever any asset has updated its import data |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | SourceFilePath_DEPRECATED | Path to the resource used to construct this static mesh. | |
| FString | SourceFileTimestamp_DEPRECATED | Date/Time-stamp of the file from the last import |