ドキュメント

Unity Engine

Unity Engine

CreateEmptyPrefab(string)

Creates an empty Prefab at given path.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
注意
Deprecated. The concept of creating a completely empty Prefab has been discontinued. You can however use SaveAsPrefabAsset with an empty GameObject.
public static Object CreateEmptyPrefab(string path)

Parameters

path

The asset path to use for the new empty Prefab.

Returns

Type

Description

ObjectA reference to the new Prefab Asset.

Remarks

If a Prefab at the path already exists it will be deleted and replaced with an empty Prefab. Returns a reference to the Prefab.