Objects added to scene through extended editor not drawn until selected.

I created an Editor extension class that instantiates prefabs on the OnEnable() call. The objects are instantiated and added under another object in the scene as specified without a problem. However, they are not drawn in the Scene window until I actually select the added objects themselves through the Hierarchy tab OR I run the application. I have tried to force repaints with things like: HandleUtility.Repaint(); SceneView.RepaintAll(); But no luck. Any thoughts on what might be going on here?

Thank you

I have a similar case, it could be a bug. What you could check however is that your shader doesn’t use any starttime uniform variables which it depends on for displaying.

Having GameObject.hideFlags propery equal to HideFlags.DontSave will do this.