Download

Correctly displaying a sprite picker in datatable entry

Hey all,

I’ve got a datatable based off a UStruct as an FTableRow etc… not a problem.

But I want to be able to select 1) a texture (which works ok) or 2) a sprite frame from an atlas - which is the problem.

So Trying:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = CharacterData)
TWeakObjectPtr<UTexture2D> CharacterRosterImage;

Works fine, but:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = CharacterData)
TWeakObjectPtr<UImage> CharacterRosterImage;

Doesn’t. I’ve got UMG as a dependency and it compiles, but that field doesn’t show as an editable field in the editor (its clearly being seen as it shows in the row view without a value).

I understand that paper2D and all the sprite stuff isn’t a core engine feature. But having a user specify an index instead of picking an image from a set of images upsets my sensibilities :slight_smile: also, I want to be able to atlas lots of headshots together, so UImage seemed like the way to go.

So how do I setup my UStruct such that an image picker that allows for picking a sub-image of a larger atlas is displayed? Is that even a thing?