Method CreateClonedPrefab
|
Improve this Doc
View Source
CreateClonedPrefab(string, string)
Create a copy of a given prefab without modifying the original.
Declaration
public GameObject CreateClonedPrefab(string name, string baseName)
Parameters
Type |
Name |
Description |
string |
name |
Name of the new prefab. |
string |
baseName |
Name of the vanilla prefab to copy from. |
Returns
Type |
Description |
GameObject |
Newly created prefab object |
|
Improve this Doc
View Source
CreateClonedPrefab(string, GameObject)
Create a copy of a given prefab without modifying the original.
Declaration
public GameObject CreateClonedPrefab(string name, GameObject prefab)
Parameters
Type |
Name |
Description |
string |
name |
Name of the new prefab. |
GameObject |
prefab |
Prefab instance to copy. |
Returns
Type |
Description |
GameObject |
Newly created prefab object |