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:
- sync_find(context=None) Object ¶
Attempt to resolve the object locator by finding the object. If it is not currently loaded or created,
- sync_load(context=None) Object ¶
Attempt to resolve the object locator by finding or loading the object.