I want to add an object to the inspector window. at Scene

Hi
I want to add an object to the inspector window.
For example
public GameObject m_objects;
To a component created with
To add an object, select it in the hierarchy
i can add by dragging and dropping, but i have to drag and drop so many objects.
So I wonder if there is a way to select and add objects directly from Scene.

You can use GetComponentsInChildren

or use find object

And can assign in the awake or start of your script.