Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/TopLevelAssetPath.h |
| Include | #include "UObject/TopLevelAssetPath.h" |
Syntax
struct FTopLevelAssetPath
Remarks
A struct that can reference a top level asset such as '/Path/To/Package.AssetName' Stores two FNames internally to avoid a) storing a concatenated FName that bloats global FName storage b) storing an empty FString for a subobject path as FSoftObjectPath allows Can also be used to reference the package itself in which case the second name is NAME_None and the object resolves to the string `/Path/To/Package_ This struct is mirrored and exposed to the UE reflection system in NoExportTypes.h
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTopLevelAssetPath
(
TYPE_OF_NULLPTR |
|||
| This function is only for temporary use interfacing with APIs that still produce an FName Those APIS... | FTopLevelAssetPath
(
FName InPath |
FNames containing full asset paths have been replaced by FTopLevelAssetPath/FSoftLevelObjectPath. | |
FTopLevelAssetPath
(
const FString& Path |
Construct from string / string view / raw string of a supported character type. | ||
FTopLevelAssetPath
(
TStringView< CharType > Path |
|||
FTopLevelAssetPath
(
const CharType* Path |
|||
FTopLevelAssetPath
(
const UObject* InObject |
Construct from an existing object. | ||
FTopLevelAssetPath
(
FName InPackageName, |
Construct directly from components |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendString
(
FString& OutString |
Append the full asset path (e.g. '/Path/To/Package.AssetName') to the string. | |
| void | AppendString
(
FStringBuilderBase& Builder |
Append the full asset path (e.g. '/Path/To/Package.AssetName') to the string builder. | |
| int32 | Compare
(
const FTopLevelAssetPath& Other |
Lexically compares two paths. | |
| int32 | CompareFast
(
const FTopLevelAssetPath& Other |
Compares two paths in a fast non-lexical order that is only valid for process lifetime. | |
| bool | ExportTextItem
(
FString& ValueStr, |
||
| FName | GetAssetName () |
Return the asset name part e.g. AssetName as an FName. | |
| FName | Return the package name part e.g. /Path/To/Package as an FName. | ||
| bool | ImportTextItem
(
const TCHAR*& Buffer, |
||
| bool | IsNull () |
Checks to see if this is initialized to null | |
| bool | IsValid () |
Check if this could possibly refer to a real object | |
| void | Reset () |
Resets reference to point to null | |
| bool | SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
||
| FString | ToString () |
Return the full asset path (e.g. '/Path/To/Package.AssetName') as a string. | |
| void | Copy the full asset path (e.g. '/Path/To/Package.AssetName') into the provided string. | ||
| bool | TrySetPath
(
const FString& Path |
||
| bool | TrySetPath
(
const UObject* InObject |
Sets asset path to path of existing object. | |
| bool | TrySetPath
(
FWideStringView Path |
Sets asset path of this reference based on a string path. | |
| bool | TrySetPath
(
FUtf8StringView Path |
Sets asset path of this reference based on components. | |
| bool | TrySetPath
(
FAnsiStringView Path |
Sets asset path of this reference based on components. | |
| bool | TrySetPath
(
const CharType* Path |
||
| bool | TrySetPath
(
FName InPackageName, |
Sets asset path of this reference based on components. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
FTopLevelAssetPath const& Other |
Compares two paths for non-case-sensitive inequality. | |
| FTopLevelAssetPath & | operator=
(
TStringView< CharType > Path |
||
| FTopLevelAssetPath & | operator=
(
TYPE_OF_NULLPTR |
||
| FTopLevelAssetPath & | Assign from the same types we can construct from | ||
| FTopLevelAssetPath & | operator=
(
const CharType* Path |
||
| bool | operator==
(
FTopLevelAssetPath const& Other |
Compares two paths for non-case-sensitive equality. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| This function is only for temporary use interfacing with APIs that still produce an FName Those APIS... | FTopLevelAssetPath
(
FName InPath |
FNames containing full asset paths have been replaced by FTopLevelAssetPath/FSoftLevelObjectPath. | |
| This function is only for temporary use interfacing with APIs that still expect an FName Those APIS ... | ToFName () |
FNames containing full asset paths have been replaced by FTopLevelAssetPath/FSoftLevelObjectPath. |