PrefabUtility.CreatePrefab Manual     Reference     Scripting  
Scripting > Editor Classes > PrefabUtility
PrefabUtility.CreatePrefab

static function CreatePrefab (path : String, go : GameObject, options : ReplacePrefabOptions = ReplacePrefabOptions.Default) : GameObject

Description

Creates a prefab from a game object hierarchy