Method ClonePrefab
| Edit this page View SourceClonePrefab(GameObject, string, Transform)
Clones a prefab and registers it in the SoftReference system with the same dependencies as the original asset
Declaration
public GameObject ClonePrefab(GameObject asset, string newName, Transform parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | asset | |
| string | newName | |
| Transform | parent |
Returns
| Type | Description |
|---|---|
| GameObject |