unreal.SoftObjectPath

class unreal.SoftObjectPath(path_string: str = '')

Bases: StructBase

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.

C++ Source:

  • Module: CoreUObject

  • File: SoftObjectPath.h