| FSoftObjectPath
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPath.h |
Include |
#include "UObject/SoftObjectPath.h" |
struct FSoftObjectPath
A struct that contains a string reference to an object, either a package, a top level asset or a subobject. This can be used to make soft references to assets that are loaded on demand. This is stored internally as an FTopLevelAssetPath pointing to the top level asset (/package/path.assetname) and an optional string subobject path. If the MetaClass metadata is applied to a FProperty with this the UI will restrict to that type of asset.
Name | Description | |
---|---|---|
|
FSoftObjectPath() |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
Asset path FNames have been deprecated. This constructor should be used only temporarily to fix up old codepaths that produce an FName. |
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
Construct from an existing object in memory |
|
FSoftObjectPath ( |
|
|
FSoftObjectPath |
Asset path FNames have been deprecated. This constructor should be used only temporarily to fix up old codepaths that produce an FName. |
|
FSoftObjectPath |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
Construct from a path string. Non-explicit for backwards compatibility. |
|
FSoftObjectPath ( |
Explicitly extend a top-level object path with an empty subobject path. |
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
|
|
FSoftObjectPath ( |
Name | Description | |
---|---|---|
|
~FSoftObjectPath() |
Name | Description | ||
---|---|---|---|
|
void |
AddPIEPackageName ( |
Adds list of packages names that have been created specifically for PIE, this is used for editor fixup |
|
void |
AppendString ( |
Append string representation of reference, in form /package/path.assetname[:subpath] |
|
void |
AppendString ( |
Append string representation of reference, in form /package/path.assetname[:subpath] |
|
void |
ClearPIEPackageNames() |
Disables special PIE path handling, call when PIE finishes to clear list |
|
bool |
ExportTextItem ( |
|
|
bool |
FastLess ( |
Return true if this path appears before Other using fast index-based fname order |
|
bool |
FixupCoreRedirects() |
Fixes soft object path for CoreRedirects to handle renamed native objects, returns true if it was modified |
|
bool |
FixupForPIE ( |
Fixes up this SoftObjectPath to add the PIE prefix for the given PIEInstance index, returns true if it was modified |
|
bool |
FixupForPIE ( |
Fixes up this SoftObjectPath to add the PIE prefix depending on what is currently active, returns true if it was modified. |
|
GetAssetFName() |
Returns assetname string, leaving off the /package/path part and sub object |
|
|
GetAssetName() |
Returns assetname string, leaving off the /package/path part and sub object |
|
|
FTopLevelAss... |
GetAssetPath() |
Returns the top-level asset part of this path, without the subobject path. |
|
GetAssetPathString() |
Returns string version of asset path, including both package and asset but not sub object |
|
|
int32 |
GetCurrentTag() |
These will be deprecated in a followup change as they are no longer used by FSoftObjectPtr |
|
GetLongPackageFName() |
Returns /package/path, leaving off the asset name and sub object |
|
|
GetLongPackageName() |
Returns /package/path, leaving off the asset name and sub object |
|
|
FSoftObjectP... |
GetOrCreateIDForObject ( |
|
|
const FStrin... |
GetSubPathString() |
Returns the sub path, which is often empty |
|
FSoftObjectP... |
GetWithoutSubPath() |
Returns this path without the SubPath component, restricting the result to a top level asset but keeping the type as FSoftObjectPath in contrast to GetAssetPath. |
|
bool |
ImportTextItem ( |
|
|
int32 |
InvalidateTag() |
|
|
bool |
IsAsset() |
Check if this represents an asset, meaning it is not null but does not have a sub path |
|
bool |
IsNull() |
Checks to see if this is initialized to null |
|
bool |
IsSubobject() |
Check if this represents a sub object, meaning it has a sub path |
|
bool |
IsValid() |
Check if this could possibly refer to a real object, or was initialized to null |
|
bool |
LexicalLess ( |
Return true if this path appears before Other in lexical order |
|
void |
PostLoadPath ( |
Handles when a path has been loaded, call if loading with a method that skips SerializePath. |
|
bool |
PreSavePath ( |
Fixes up path for saving, call if saving with a method that skips SerializePath. |
|
void |
Reset() |
Resets reference to point to null |
|
UObject *... |
ResolveObject() |
Attempts to find a currently loaded object that matches this path |
|
bool |
Serialize ( |
Struct overrides |
|
bool |
Serialize ( |
Struct overrides |
|
bool |
SerializeFromMismatchedTag ( |
|
|
void |
SerializePath ( |
Serializes the internal path and also handles save/PIE fixups. |
|
void |
SerializePathWithoutFixup ( |
Serializes the internal path without any save/PIE fixups. |
|
void |
SetPath ( |
|
|
void |
SetPath ( |
|
|
void |
SetPath ( |
Sets asset path of this reference based on a string path |
|
void |
SetPath ( |
|
|
void |
SetPath ( |
|
|
void |
SetPath ( |
|
|
void |
SetPath ( |
Sets asset path of this reference based on a string path |
|
void |
SetSubPathString ( |
|
|
ToString() |
Returns string representation of reference, in form /package/path.assetname[:subpath] |
|
|
void |
ToString ( |
Append string representation of reference, in form /package/path.assetname[:subpath] |
|
UObject *... |
TryLoad ( |
Attempts to load the asset, this will call LoadObject which can be very slow |
Name | Description | ||
---|---|---|---|
|
bool |
operator!= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
FSoftObjectP... |
operator= ( |
|
|
bool |
operator== ( |
Name |
Description |
---|---|
PIEPackageNames |
Package names currently being duplicated, needed by FixupForPIE |
Name | Description | ||
---|---|---|---|
|
FSoftObjectPath ( |
Asset path FNames have been deprecated. This constructor should be used only temporarily to fix up old codepaths that produce an FName. |
|
|
FSoftObjectPath |
Asset path FNames have been deprecated. This constructor should be used only temporarily to fix up old codepaths that produce an FName. |
|
|
GetAssetPathName() |
Asset path FNames have been deprecated. Use GetAssetPath instead. |
|
|
FSoftObjectP... |
operator= ( |
Asset path FNames have been deprecated. This assignment operator should be used only temporarily to fix up old codepaths that produce an FName. |
|
void |
SetAssetPathName ( |
Asset path FNames have been deprecated. Use SetAssetPath instead. |
|
void |
SetPath ( |
Asset path FNames have been deprecated. This function should be used only temporarily to fix up old codepaths that produce an FName. |
|
ToFName() |
Asset path FNames have been deprecated. This function should be used only temporarily to interface with old APIs that require an FName. |