Show / Hide Table of Contents

Method CreateClonedPrefab

| Edit this page 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
| Edit this page 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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾