How to generate a Texture2D of the thumbnail of a prefab?

Hi, I’m quite new to Unity3D and I use C#. I’m making a inventory system. I want to know how can I use the thumbnail of a prefab and convert it into a Texture2D and attach it to each item in the inventory. I want to know if that is possible with scripts or plugins, please notify me. I dont mind if its a at run time script or not. Thank for reading.

Within the editor, you could write a script using AssetPreview.GetAssetPreview to get the preview Texture2D’s from your assets, then encode those textures into PNGs and save them out to be used as assets in your game.

Other than that, I don’t believe there is any quick or efficient way of doing this at runtime.