Show / Hide Table of Contents

Method AddPrefab

| Edit this page View Source

AddPrefab(GameObject)

Add a custom prefab to the manager.
Checks if a prefab with the same name is already added.
Added prefabs get registered to the ZNetScene on ZNetScene.Awake.
Declaration
public void AddPrefab(GameObject prefab)
Parameters
Type Name Description
GameObject prefab Prefab to add
| Edit this page View Source

AddPrefab(CustomPrefab)

Add a custom prefab to the manager.
Checks if a prefab with the same name is already added.
Added prefabs get registered to the ZNetScene on ZNetScene.Awake.
Declaration
public void AddPrefab(CustomPrefab customPrefab)
Parameters
Type Name Description
CustomPrefab customPrefab Prefab to add
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾