In Editor Windowhow can I get all the GameObjects in current Scene?

In Editor Window,how can I get all the GameObjects in current Scene?I have searched from EditorUtility and EditorApplication, but it seems no answer.

Hi, maybe

Object.FindObjectsOfType(typeof(GameObject)) ? :slight_smile:

http://unity3d.com/support/documentation/ScriptReference/Object.FindObjectsOfType.html?from=GameObject