How to create Texture2D type texture as an asset in c++ plugin?

I want to dynamically update 2D texture in c++ plugin and expose it to editor as texture 2d asset, Pls guide me to do this.

A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums - this might be helpful.

how to save UTexture2D Object to asset?