ME FIRST GAMES
Menu

games for me and you

Name Selection UI

6/24/2020

0 Comments

 
📌 This is implemented with a prefab.
📌 The screen is controlled through a TextSelectorUi script at the root of the prefab.
📌 The controller code must manually call Show() on the TextSelectorUi.
📌 Using a custom script provides a great advantage over hardcoding text in code or in the prefab itself. It allows text changes, prefab reuse, and dynamic population of the title and text fields.
📌 The TextSelectorUi provides an interface that may be expanded upon in the future. This gives us flexibility, which is very important in fast-moving game development.
📌 If the script did not use Show(), but instead started inside OnEnable and ended in OnDisable, then the flexibility and future-proofing of this screen would be severely limited.
📌 The screen appears using a DOTween Fade. This is invoked in code, performant, and easy to implement. However, it is not as flexible as using an Animator for elaborate animations.
📌 If required, this could easily be refactored to use an Animator instead of DOTween. This would be a simple refactor, only requiring changes inside this single prefab.

0 Comments



Leave a Reply.

    Picture
    Me First Games is an independent game studio dedicated to creating unique and bizarre video games.
    GAMES HERE

    Red Matter

    Star Impact is an upcoming adventure platformer coming to PC, Mac, and Linux.

    Archives

    April 2021
    February 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2019
    March 2019
    December 2018
    April 2018

    Categories

    All

    RSS Feed

Copyright (c) 2020 Me First LLC
  • STU the First AI
  • Blog
  • Contact
  • Unity Tools
    • Hierarchy Comments
  • STU the First AI
  • Blog
  • Contact
  • Unity Tools
    • Hierarchy Comments