How to reference a chooser table in c++ ?

Hello,

I recently checked the game animation sample, and I saw they used a chooser table to get the best matching animation.
I am now working on a tile-based game, where each tile will have a different mesh based on it’s height, temperature and humidity. I feel like this would be the perfect place for a Chooser Table!

I enabled the “Chooser” plugin, and I am now wondering how do I reference a Chooser Table in an UPROPERTY using C++.
I guess there is somewhere a UChooserTable class but i can’t find the header to include.

Any help would be greatly appreciated!

Hi,

First add the module "Chooser" in your .Build.cs

Second add the #include "Chooser.h"

And finally:

UPROPERTY(EditDefaultsOnly, Category = "AnimData")
UChooserTable* ChooserTable;

Bye!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.