0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RGB値なんかコードで書かなくても良くなる場面が増えるようにしたい方はぜひ使ってみてほしい機能です。
見た方が早いのでやり方だけ載せておきます

手順1

assetsを開く

image.png

手順2

assets内で右クリックしてNew Color Setを押す

image.png

手順3

作成したカラーセットに名前を入れ、Input Methodを8bit(0-255)にする

名前は単純明快なものにしましょう

image.png

手順4

好きな色の数値に変更する

image.png

手順5

Color.で呼び出す

image.png

するとこのように設定した色を簡単に呼び出せました。

image.png

これを使うとコードでRGBを使わないで良くなったりするので楽です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?