Search Unity

Question How do I include a option to change a sprite from a settings menu?

Discussion in '2D' started by djhddhh, Jan 28, 2023.

  1. djhddhh

    djhddhh

    Joined:
    Jul 31, 2021
    Posts:
    4
    Hello, for my first project, I have decided to do something simple, Pong. However, I wanted to include a option to change the sprite of the paddles from the menu. How would I do that? Thanks in Advance?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,726
    Steps to success:

    - make a GameManager or SettingsManager (your decide depending on lifecycle of choice in your game design)

    - make a UI to select, and when selected, save the choice in the above manager

    - when spawning the paddles, choose the prefab sized based on the value stored in the manager above

    100% of these steps are painstakingly laid out in MILLIONS of tutorials on Youtube, so get busy there.

    It seems that I already posted all of this to you last time you posted here in August 2021.

    Nothing has changed, so I will simply provide you the same link again:

    https://forum.unity.com/threads/need-help-restricting-in-air-movement.1151147/#post-7386899