Is it possible to get PlatformData from sprite?

Hello, everyone:

I want to make a button with custom shape, which comes from sprite.

I guess I need to do a Alpha test, so I need information from PlatformData.

The predicted procedure is : Set the brush with desired sprite → Get PlatformData → Do Alpha test in events.

But I can’t find a way to access PlatformData from brush or sprite.

I’ve tried the solution in the post below, but it is based on UTexture2D.

https://forums.unrealengine.com/community/community-content-tools-and-tutorials/96724-free-custom-shaped-buttons-custom-hit-box-for-any-button

It may be solved by using UTexture2D only, but is it possible to be done by sprite?