Is there a way to show gameobject components when select another gameobject?

When I Select GameObject B , the Inspector only show GameObjectB’s Components information.

I wonder Is there a way when I select GameObjectB I can also show GameObjectA’s Compoents in the same Inspector?
GameObjectA and GameObjectB with different components.

Thanks.

The easiest way to show the components of 2 different GameObjects is to open 2 inspectors like explained here:

1 Like

Thanks for your helpful reply~ It’s easiest way to show more inspectors.

I am working on my own Plugins. I want find some directly way to show more than one gameobject components in one inspector.

You’re very welcome :slight_smile:

I don’t know if that’s even possible but good luck with it anyway.

You can generate an editor for an arbitrary Unity object and draw it somewhere else. Get the editor with Editor.CreateEditor, and then call that Editors OnInspectorGUI.

1 Like

Thanks so much~~