Search Unity

Help with a color idea for settings menu

Discussion in 'Getting Started' started by kevin5141, Jan 13, 2017.

  1. kevin5141

    kevin5141

    Joined:
    Jan 11, 2017
    Posts:
    5
    Hi everyone

    Very new here. Working on my first game!

    I am creating a simple 2D click game, when you click on buttons they do things.
    In the games settings scene, I would like to create a color wheel that the player can select a color which appears in a little box. So the player can see if that's the color they want, if it is, they can set it as the background color for all the scenes in the game.

    I would love some help if anyone has some time, or to point me in the right direction if it has already been done!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    What's your question? Is it how to create a color wheel? Or how to apply a color as the background color for all scenes in the game?

    There isn't a built-in color picker for use in your game, but you can find a few in the Asset Store.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,448
    Then can use PlayerPrefs to save the setting,
    https://docs.unity3d.com/ScriptReference/PlayerPrefs.html

    If you just want few colors to be available, could simple create them as separate buttons to select from..
    (like in many games where you customize for example hair color, by selecting some color from the available ones)