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 3 years have passed since last update.

[UE5] カメラ距離でプレイヤーを透過する

0
Last updated at Posted at 2022-10-06
  1. まずエディタ上でマテリアルを複製して透過設定します。
  2. 次にTherdParsonCharactorBPを開いて変数を2つ用意。
    プレイヤーのマテリアル一覧と透過設定済みのマテリアル一覧の2つ。マテリアルをそれぞれ設定します。
  3. 最後にEventTickからノードを伸ばします。
    先ほど作った2つのマテリアルリストをカメラ距離で入れ替えます。

image.png
参考元: https://blueprintue.com/blueprint/ekjxysa-/

ドラクエ11っぽい切り替わりかたします。透過時にマテリアル同士が重なっちゃうけどいいよね(^з^) ~♪

参考にした記事:
https://historia.co.jp/archives/23521/
https://qiita.com/EGJ-Hiroyuki_Kobayashi/items/afea086b62d75d235593

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?