CreateEmptyPrefab(string)
Creates an empty Prefab at given path.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static Object CreateEmptyPrefab(string path)
Parameters
The asset path to use for the new empty Prefab.
Returns
Type | Description |
|---|---|
| Object | A 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.