Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorUtility   

EditorUtility.CreateGameObjectWithHideFlags  

static function CreateGameObjectWithHideFlags (name : string, flags : HideFlags, params components : Type[]) : GameObject

Description

Creates a game object with HideFlags and specified components.

This is very similar to creating a GameObject the usual way, except it sets the specified HideFlags immediately.