> For the complete documentation index, see [llms.txt](https://dante-3.gitbook.io/dante-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dante-3.gitbook.io/dante-docs/modular-experience-system/modular-user-facing-experience/methods.md).

# Methods

### GetFacingActionByClass

```cpp
UFUNCTION(BlueprintPure, DisplayName = "Get Facing Action By Class",
          meta = (DeterminesOutputType = "ActionClass"))
UMES_FacingAction* GetFacingActionByClass(TSubclassOf<UMES_FacingAction> ActionClass) const;
```

Usable from Blueprint. Returns the first Facing Action of the given class.

### FindFacingAction\<T> (C++ Only)

```cpp
template <typename T>
T* FindFacingAction() const;
```

## UMES\_FacingAction (Base Class)

Facing Actions are UObjects that live as **instanced subobjects** on `UMES_UserFacingExperience`.

```cpp
UCLASS(Abstract, Blueprintable, BlueprintType, DefaultToInstanced, EditInlineNew,
       DisplayName = "Modular User Facing Action", Category = "Experience")
class UMES_FacingAction : public UObject
```

### Blueprint Events

#### ApplyBeforeTravel

<figure><img src="https://4216330531-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYsGXprPiDJ68FN8HnOaN%2Fuploads%2FOeNoAmZ5bB3R5OhTKNny%2Fimage.png?alt=media&amp;token=0f5afa77-7cd9-4969-aa45-588ef55edc39" alt=""><figcaption></figcaption></figure>

```cpp
UFUNCTION(BlueprintNativeEvent, DisplayName = "Apply Before Travel")
void ApplyBeforeTravel(UObject* WorldContext, TArray<FString>& InOutOptions);
```

Called right before map travel. Subclasses can:

* Add key-value pairs to the URL options
* Override the loading screen
* Modify session settings

#### GetDisplayDescription

<figure><img src="https://4216330531-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYsGXprPiDJ68FN8HnOaN%2Fuploads%2Fv7iqJWrA9icfVO9c91td%2Fimage.png?alt=media&amp;token=5f9c2d7b-96bd-4e55-8824-3b6cdc3f20e6" alt=""><figcaption></figcaption></figure>

```cpp
UFUNCTION(BlueprintNativeEvent, DisplayName = "Get Display Description")
FText GetDisplayDescription() const;
```

Returns a description text to be shown in the editor and UI.
