> For the complete documentation index, see [llms.txt](https://conusyntax.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://conusyntax.gitbook.io/products/parent-widget-reference.md).

# Parent Widget Reference

To create custom widgets that can access the **Character** or **Customization Component** references in **WBP\_CreatorMenu**, you must establish a link using the **BPI\_CharacterWidgetLink** interface.

#### Setting the Parent Widget Reference

This process allows your custom widget to communicate with the creator menu via blueprint messages.

#### 1. Create the Reference Variable

1. In your custom widget, create a new variable.
2. Set the variable type to **Object**.
3. Name the variable something descriptive, such as **ParentWidgetRef**.

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2FNoX4WxhNd7e0Xx1b5GX3%2FSet%20Parent%20Widget%20Reference%20-%20Reference.png?alt=media&amp;token=82ad0fc7-e553-4d62-bdba-1a75db3714a4" alt=""><figcaption></figcaption></figure>

#### 2. Implement the Blueprint Interface

1. Go to **Class Settings** at the top of the Blueprint editor.
2. In the **Details**, go to **Interfaces** ➞ **Implemented Interfaces**.
3. Click **Add** and select **BPI\_CharacterWidgetLink**.

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2FVeZcrrWiDX5p02T189g1%2FSet%20Parent%20Widget%20Reference%20-%20Blueprint%20Interface.png?alt=media&amp;token=8c1f926e-0c7d-45bd-8ca8-5e4a0391a506" alt=""><figcaption></figcaption></figure>

#### 3. Configure Interface Functions

Once the interface is added, several functions will appear in the **My Blueprints** under the **Interfaces** category, including **SetParentWidget**, **GetCharacter**, and **GetCustomizationComponent**.

1. Open the **SetParentWidget** function.
2. Drag your **ParentWidgetRef** variable into the graph and connect it to the input pin to store the reference when the widget is initialized.

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2Fnyj4JcYlp5iVHhpHGbHz%2FSet%20Parent%20Widget%20Reference%20-%20Set%20Reference.png?alt=media&amp;token=b1c03833-a8c9-4d7d-9088-258c919ebaec" alt=""><figcaption></figcaption></figure>

### Accessing Core Components

With the interface successfully implemented, you can now get the **Customization Component** or **Character** reference from **WBP\_CreatorMenu** by calling the interface messages and using your **ParentWidgetRef** as the target.

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2FU29rdlhpshctZNcjEmmy%2FSet%20Parent%20Widget%20Reference%20-%20Get%20Component%20and%20Character.png?alt=media&amp;token=496b43ae-24a8-4380-a772-6025e71a0f0f" alt=""><figcaption></figcaption></figure>
