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?

UIの描画優先度(Hierarchy内の順番)

Last updated at Posted at 2025-06-15
1.環境

Unityバージョン:Unity 6 Preview 6000.0.5f1
ライセンス:Unity Personal
対象プラットフォーム:iOS, Android, Windows Store

2.UI構成

Canvasの中に複数のButtonやPanelがある構成

3.問題の発生個所

OnCancelButton が EnemyAttacked と重なってクリックできなかった

4.原因

EnemyAttacked が Hierarchy で OnCancelButton より下にあり、UI上では前面に表示されていた

5.対応内容

Hierarchyで OnCancelButton を EnemyAttacked より上に移動

6.備考

Unityでは Hierarchy の下にある UI が前面になる仕様に注意

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?