The Coolest Chess
  • The Chess Documentation
    • Chess Game Introduction
    • Essential Prefabs
    • Components
  • Importing Stockfish AI
  • Controller
    • Base Controller
    • Two Player Controller
  • The UIs
    • Button Prefabs
    • UI Events
    • Enquiry
    • Replacing UI
    • Others
  • Scenes Details
    • ChessPGN
    • ChessPuzzleEditor
    • ChessPuzzle
    • ChessAI
  • Honorable Mentioned
    • ChessBoard class
    • GUI Classes
    • Game Logic Classes
    • The Architecture Notice
  • Customization
    • Time AI
    • AI Draw Game
    • TypeI AI
    • TypeII AI
    • Event Based Functions
    • Chess Game Finishing Rule
  • Unit Tests
Powered by GitBook
On this page
  • ChessGameObjectBase
  • ChessReusableUIs
  • ChessBaseUI
  1. The Chess Documentation

Essential Prefabs

Introduction to prefabs that's running the game

PreviousChess Game IntroductionNextComponents

Last updated 5 months ago

In folder Prefabs/UIs/Essential, all of them are the essential game objects to drag into an empty scene for chess game to run on Play Mode in an instant.

ChessGameObjectBase

-The most basic group of script components needed to kick start a chess game. Sound effect is nested within its hierachy.

ChessReusableUIs

-Containing Common UI that can be reused by almost all scene such as promotion selection UI, current turn UI and game finishing UI panel.

ChessBaseUI

This prefab contain EventSystem in its hierachy, any EventSystem in Canvas gameobject created on scene should be removed since a scene cannot have two EventSystem component.

-Containing all the basic UI to control chess game, including undo, redo, start game, quit game, etc. Basically all of the UI nested in this prefab hierachy is listened() by ChessGameBaseGUI script component. Only partial UI is listened by ChessBaseGUI which is attached as the base for ChessGameObjectBase prefab, simply replace the ChessBaseGUI with ChessGameBaseGUI script component for all of the button to work automatically.

see this section