unreal.UniversalObjectLocator

class unreal.UniversalObjectLocator(object: Object = Ellipsis, context: Object = Ellipsis)

Bases: StructBase

Universal Object Locators (UOLs) define an address to an object.

The address is implemented as a chain of FUniversalObjectLocatorFragments, allowing addressing of objects

that may be nested deeply within levels of externally defined spawn or ownership logic.

For example, a Universal Object Locator may reference an Anim Instance within a Skeletal Mesh Actor

is spawned by a Child Actor Component that is spawned by Sequencer. This is impossible with a regular soft object path, but is perfectly feasible for a UOL.

This type is 16 bytes.

C++ Source:

  • Module: UniversalObjectLocator

  • File: UniversalObjectLocator.h

is_empty() bool

Check whether the specified locator is empty; not equivalent to Resolve() != None. An empty locator will never resolve to a valid object.

Return type:

bool

sync_find(context=None) Object

Attempt to resolve the object locator by finding the object. If it is not currently loaded or created,

Parameters:

context (Object) – (Optional) Context object to use for resolving the object. This should usually be the object that owns or created the locator.

Returns:

The resolve object pointer, or null if it was not found.

Return type:

Object

sync_load(context=None) Object

Attempt to resolve the object locator by finding or loading the object.

Parameters:

context (Object) – (Optional) Context object to use for resolving the object. This should usually be the object that owns or created the locator.

Returns:

The resolve object pointer, or null if it was not found.

Return type:

Object

sync_unload(context=None) None

Attempt to resolve the object locator by unloading the object if possible.

Parameters:

context (Object) – (Optional) Context object to use for resolving the object. This should usually be the object that owns or created the locator.

to_string() str

Convert the specified locator to its string representation

Return type:

str