0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Unity 2d spriteにOutlineや影をつける

Posted at

やりたいこと

image.png
影と、アウトラインをつける。

方法

シェーダーを使った方法もあるがもっとシンプルに同じものをコピーして、影の色のにしてずらすだけ。

同じものをコピー、Objの子にする
image.png
スプライトを色を黒にアルファ値はお好みで
image.png

アウトラインならスケールを調整。影ならpositionをずらす
image.png

レイヤの順には気を付けつる
image.png

単純にずらしているので、2重も、色も、形も、すべて自由に設定できる
image.png

やったね。

終わりに

意外と気が付かない簡単な解決策だったので記事にしました。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?