1
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?

More than 1 year has passed since last update.

[Unity]LayoutGroupの中で個別にサイズを指定する

Posted at

概要

UnityでVerticalLayoutGroupなどを使ってオブジェクトを並べた時
スクリーンショット 2023-04-11 7.59.25.png
スクリーンショット 2023-04-11 8.03.51.png
一つだけHeightを高くしたいけれど変更できない!ってなることあると思います。
スクリーンショット 2023-04-11 8.03.14.png

本文

そんな時は目的のオブジェクトにLayoutElementをAddComponentすれば解決します。
スクリーンショット 2023-04-11 8.03.31.png
スクリーンショット 2023-04-11 8.00.11.png

補足

これは一例です。調整の方法は他にもあると思います:open_hands:

1
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
1
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?