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.
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.