Constructor CustomPieceTable
| Improve this Doc View SourceCustomPieceTable(GameObject)
Custom piece table from a prefab.
Declaration
public CustomPieceTable(GameObject pieceTablePrefab)
Parameters
Type | Name | Description |
---|---|---|
GameObject | pieceTablePrefab | The prefab for this custom piece table. It has to have a PieceTable component attached |
CustomPieceTable(GameObject, PieceTableConfig)
Custom piece table from a prefab with a PieceTableConfig attached.
Declaration
public CustomPieceTable(GameObject pieceTablePrefab, PieceTableConfig config)
Parameters
Type | Name | Description |
---|---|---|
GameObject | pieceTablePrefab | The prefab for this custom piece table. It has to have a PieceTable component attached. |
PieceTableConfig | config | The PieceTableConfig for this custom piece table. |
CustomPieceTable(string, PieceTableConfig)
"Empty" custom piece table with a PieceTableConfig attached.
Declaration
public CustomPieceTable(string name, PieceTableConfig config)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the custom piece table. |
PieceTableConfig | config | The PieceTableConfig for this custom piece table. |
CustomPieceTable(AssetBundle, string, PieceTableConfig)
Custom piece table from a prefab loaded from an AssetBundle with a PieceTableConfig attached.
Declaration
public CustomPieceTable(AssetBundle assetBundle, string assetName, PieceTableConfig config)
Parameters
Type | Name | Description |
---|---|---|
AssetBundle | assetBundle | A preloaded AssetBundle |
string | assetName | Name of the prefab in the bundle. It has to have a PieceTable component attached. |
PieceTableConfig | config | The PieceTableConfig for this custom piece table. |