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
- virtual FString GetSanitizedId() const
-
Get the label of this Interactor, sanitized to remove characters that can cause issues (e.g.
‘.’
- Returns:
-
The ID with invalid characters replaced or removed
- 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