Show / Hide Table of Contents

Method CreateEmptyPrefab

| Edit this page View Source

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