- Home /
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 problem. Any help would be appreciated.
I have found a related bug report:
But there seems to be no answer yet.
Answer by Kajos · May 27, 2013 at 01:26 PM
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.
Answer by cdorey · Aug 12, 2013 at 04:51 PM
Having GameObject.hideFlags propery equal to HideFlags.DontSave will do this.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092151im_/https://answers.unity.com/themes/thub/images/avi.jpg)