What GUI method renders 3D object thumbnail previews in the editor?

Hi all,

I’ve googled the crap out of this and searched the documentation but I can’t seem to type the correct keyword sequence to find anything that’s helpful. What GUI, GUILayout, EditorGUI, or EditorGUILayout control do I use to render out a thumbnail similar to what the terrain tree tool does?

I presume that the GUILayout.SelectionGrid is used, but that can only take a texture array or GUIContent array (which can contain a texture). So something is rendering the tree object to a texture. That is really the information that I cannot find.

Can anybody give me a hint?

Thanks!

Do you mean like using the AssetPreview.GetAssetPreview()?