Class UAbstractInteractor
- class UAbstractInteractor : public UObject
-
An abstract class objects that can interact with the environment, either by observing or acting.
Subclassed by UAbstractObserver, UActuator
Public Functions
- AActor *TryGetOwner() const
-
Try and Get the Actor this Observer is attached to, may return nullptr.
- Returns:
-
the Agent this Observer is attached to in, may return nullptr
- FString GetLabel() const
-
Get an non-unique label of this Interactor, based on the class of the object containing the interactor.
- Returns:
-
the collected ID
- FString GetId(int IntId) const
-
Get the label of this Interactor, with a prepended numberical ID to ensure uniqueness and alphanumeric ordering.
- Returns:
-
the collected ID
- UObject *GetLocation() const
-
Get an Outer for this object that is unique w.r.t the agent for getting the ID.
Note
If the UObject is inside a Controller returns the controller. If the UObject is inside a Component return the owner of the component.
- Returns:
-
a UObject ptr to an owning object in the heirarchy