PrefabUtility.CreatePrefab

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

Description

Creates a prefab from a game object hierarchy