Initialize Choice
Blueprint display name: Initialize Choice
Declaring type: UAdvancedDialogueChoiceWidgetBase
Blueprint category: Dialogue|UI
Exposure: BlueprintCallable
What it does
Section titled “What it does”Initialize a custom entry using a current visible index. Normally called by the main widget. No disabled reason is supplied; prefer Initialize Choice With Reason when needed.
C++ declaration
Section titled “C++ declaration”void InitializeChoice(UAdvancedDialogueWidgetBase* InOwnerWidget, int32 InChoiceIndex, const FText& InChoiceText, bool bInEnabled);Inputs, outputs and Blueprint pins
Section titled “Inputs, outputs and Blueprint pins”| Parameter | Declared type | Direction / default | Meaning |
|---|---|---|---|
InOwnerWidget |
UAdvancedDialogueWidgetBase* |
Input | Owning main dialogue widget for this choice entry. |
InChoiceIndex |
int32 |
Input | Index within the current visible choice list. |
InChoiceText |
const FText& |
Input | Visible response text assigned to this choice widget. |
bInEnabled |
bool |
Input | Availability state supplied to this choice widget. |
Return: No return value (void). As a callable function it can be invoked from an appropriate Blueprint instance, using standard execution flow.
Usage context
Section titled “Usage context”Use with a Widget Blueprint derived from the matching base and a bound dialogue component as applicable. For a larger workflow, see the feature guide.
Validation, prerequisites and limitations
Section titled “Validation, prerequisites and limitations”The reflected declaration and tooltip are confirmed in the provided source. Exact pin layout, widget visibility, gameplay success and cooked-build behavior were not observed in a live Unreal Editor in this environment. Validate against your engine version and inspect failure outputs when present.
Source references
Section titled “Source references”- Declaration:
Source/AdvancedDialogue/Public/AdvancedDialogueChoiceWidgetBase.h - Out-of-line implementation match:
Source/AdvancedDialogue/Private/AdvancedDialogueChoiceWidgetBase.cpp