Show / Hide Table of Contents

Method RegisterPieceInPieceTable

| Edit this page View Source

RegisterPieceInPieceTable(GameObject, string, string)

Register a single piece prefab into a piece table by name.
Also adds the prefab to the PrefabManager and ZNetScene if necessary.
Custom categories can be referenced if they have been added to the manager before.
No mock references are fixed.
Declaration
public void RegisterPieceInPieceTable(GameObject prefab, string pieceTable, string category = null)
Parameters
Type Name Description
GameObject prefab GameObject with a Piece component to add to the table
string pieceTable Prefab or item name of the PieceTable
string category Optional category string, does not create new custom categories
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾