How do I select a prefab that was just instantiated from an editor window?

Hi Unity,

I’m building out an Editor Window that will place prefabs on the Scene View.
I’m trying to figure out how to :
a) automatically select that newly created prefab in the Scene view so that the Manipulator is active for it.
b) automatically focus on that item and shuttle the scene camera to it so that it’s centered on the screen.

I have look on the forums but just can’t seem to find an answer.


I hate to be that guy that answers his own question, but I did find this article which has a static c# class which will move the scene view camera:

And selecting a newly added prefab from code is as easy as : Selection.ActiveObject = foo;