Version: 2022.3
言語: 日本語
Method group is Obsolete

PrefabUtility.CreatePrefab

マニュアルに切り替える
Obsolete public static GameObject CreatePrefab (string path, GameObject go);
Obsolete public static GameObject CreatePrefab (string path, GameObject go, ReplacePrefabOptions options);

パラメーター

path The path where the Prefab is saved.
go The GameObject that you want to create a Prefab from.

戻り値

GameObject A reference to the created Prefab.

説明

Creates a Prefab from a game object hierarchy.

Use this to create a Prefab from a GameObject in the hierarchy, and give it a path to save the Prefab in.