Download

Displaying StaticMesh from property editor onto viewport

I’m looking at the PhAT module and I am not exactly sure how the connection between the viewport and the property editor is made. In the shared data class, it looks like the preview scene has components added to it such as the skeletal mesh and a static mesh but I am not sure how these components are displayed in the viewport that is declared in the PhAT class.

That is, how does the viewport know of the components in the property editor?
Or more genarally, what is the process for which you would display the components in the property editor in the viewport?

The viewport (at least in some cases, I don’t know about PhAT) creates and owns the preview scene. The asset editor will generally add an object to the scene, and it is also up to the asset editor to point the details panel to that same object.