UAssetImportData

Todo: Make this class better suited to multiple import paths - maybe have [FAssetImportInfo](API\Runtime\Engine\EditorFramework\FAssetImportInfo) use a map rather than array?

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public variable

FAssetImportInf...

 

SourceData

Source file data describing the files that were used to import this asset.

Constructors

Name Description

Public function

UAssetImportData

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AddFileName

(
    const FString& InPath,
    int32 Index,
    FString SourceFileLabel
)

Add a filename at the specific index.

Public function Virtual

void

 

AppendAssetRegistryTags

(
    TArray< FAssetRegistryTag >& OutTa...
)

If your asset import data flavor need to add some asset registry tag, override this function.

Public function Const

void

 

ExtractDisplayLabels

(
    TArray< FString >& FileDisplayLabe...
)

Public function Const

void

 

ExtractFilenames

(
    TArray< FString >& AbsoluteFilenam...
)

Extract all the (resolved) filenames from this data

Public function Const

TArray< FStr...

 

ExtractFilenames()

Extract all the (resolved) filenames from this data

Public function Const

FString

 

GetFirstFilename()

Helper function to return the first filename stored in this data.

Public function Const

const FAsset...

 

GetSourceData()

Const access to the source file data

Public function Const

int32

 

GetSourceFileCount()

Public function Const

TArray< FStr...

 

K2_ExtractFilenames()

Extract all the (resolved) filenames from this data

Public function Const

FString

 

K2_GetFirstFilename()

Helper function to return the first filename stored in this data.

Public function Static

FString

 

ResolveImportFilename

(
    const FString& InRelativePath,
    const UPackage* Outermost
)

Resolve a filename that is relative to either the specified package, BaseDir() or absolute

Protected function Const

FString

 

ResolveImportFilename

(
    const FString& InRelativePath
)

Resolve a filename that is relative to either this object's package, BaseDir() or absolute

Public function Static

FString

 

SanitizeImportFilename

(
    const FString& InPath,
    const FString& PackagePath
)

Convert an absolute import path so that it's relative to either this object's package, BaseDir() or leave it absolute

Public function Static

FString

 

SanitizeImportFilename

(
    const FString& InPath,
    const UPackage* Outermost
)

Convert an absolute import path so that it's relative to either this object's package, BaseDir() or leave it absolute

Protected function Const

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

Public function

void

 

ScriptedAddFilename

(
    const FString& InPath,
    int32 Index,
    FString SourceFileLabel
)

Add or update a filename at the specified index.

Public function

void

 

Update

(
    const FString& AbsoluteFilename,
    FMD5Hash* Md5Hash
)

Update this import data using the specified file.

Public function

void

 

Update

(
    const FString& AbsoluteFileName,
    const FMD5Hash PreComputedHash
)

Update this import data using the specified filename and Precomputed Hash.

Public function

void

 

UpdateFilenameOnly

(
    const FString& InPath
)

Update this import data using the specified filename.

Public function

void

 

UpdateFilenameOnly

(
    const FString& InPath,
    int32 Index
)

Update the filename at the specific specified index.

Overridden from UObject

Name Description

Public function Virtual Const

bool

 

IsEditorOnly()

Only valid in the editor

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Protected function Virtual

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

Name Description

Public variable

FString

 

SourceFilePath_DEPRECATED

Path to the resource used to construct this static mesh.

Public variable

FString

 

SourceFileTimestamp_DEPRECATED

Date/Time-stamp of the file from the last import

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss