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
  1. The UIs

Replacing UI

PreviousEnquiryNextOthers

Last updated 5 months ago

To replace any UI, a button for example, to another button. Simply copy and paste the component attached on the UI. Then, remember to select ChessBaseUIs scene game object and drag your replaced UI to the slot where it was belongs to previous UI.

Copy the script component and paste to the UI you want to replace with
Select ChessBaseUIs scene game object and drag your replaced UI to the slot