# ChooserTable 使用 C++ UStruct 作为 Input 

**URL:** <https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [April 2, 2026, 3:32am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669 "2026-04-02T03:32:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 2, 2026, 3:32am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669/1 "2026-04-02T03:32:26Z")

</div>

在C++中想使用一个 USTRUCT 结构作为 ChooserTable的参数，比如继承了 FGameplayEffectContext，然后增加了一个枚举变量E，但是发现在 ChooserTable 的 TableSettings 里选 Struct Parameter 然后选这个C++的 结构，在新增一列的时候并不能选择到结构里的变量，不知道是结构或者变量的标识符没有设对还是本身不支持。

但是试了一下在编辑器里创建的 Structure，增加枚举变量，ChooserTable 就可以使用

[Image Removed]

[Image Removed]

\<br/\>

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![tuo.chen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tuo.chen](https://forums.unrealengine.com/u/tuo.chen)\
**Post date:** [April 3, 2026, 5:23am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669/2 "2026-04-03T05:23:49Z")

</div>

您好，如果要在ChooseTable里展开，需要对应的properties对蓝图是可见的，也就是说，要加上 BlueprintReadWrite 或 BlueprintReadOnly 的标记

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 3, 2026, 6:05am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669/3 "2026-04-03T06:05:59Z")

</div>

尝试了加了这这些 property确实ChooserTable中能选，但是在对应行中，没法选具体值，比如bool，正常可以选 true，false，any，默认也会显示一个，但是C++的好像不行

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![tuo.chen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tuo.chen](https://forums.unrealengine.com/u/tuo.chen)\
**Post date:** [April 3, 2026, 6:08am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669/4 "2026-04-03T06:08:54Z")

</div>

可以直接给代码的例子吗​，我刚刚试了是可以的，以下是我使用的代码

```auto
UENUM(BlueprintType)
enum class EMyTestEnum : uint8
{
	OptionA,
	OptionB,
	OptionC
};
 
USTRUCT(BlueprintType)
struct FMyTestStruct
{
	GENERATED_BODY()
 
	UPROPERTY(BlueprintReadWrite)
	EMyTestEnum MyEnum;
};

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 3, 2026, 6:19am UTC](https://forums.unrealengine.com/t/choosertable-c-ustruct-input/2719669/5 "2026-04-03T06:19:33Z")

</div>

哦我的问题，我填加一行选的是fallback，所以没显示，正常添加行就对了，没问题了

[Attachment Removed]
