Method CreateEmptyPrefab
| Improve this Doc View SourceCreateEmptyPrefab(string, bool)
Create a new prefab from an empty primitive.
Declaration
public GameObject CreateEmptyPrefab(string name, bool addZNetView = true)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the new GameObject |
bool | addZNetView | When true a ZNetView component is added to the new GameObject for ZDO generation and networking. Default: true |
Returns
Type | Description |
---|---|
GameObject | The newly created empty prefab |