LoginSignup
1
1

More than 5 years have passed since last update.

unity > RectTransform.SetAsLastSibling(); > 最後に描画 > 前面に来る

Last updated at Posted at 2015-08-21

https://www.youtube.com/watch?v=0L-Y8dPJHDM&list=WL&index=35
の18:55あたりで出てくる。

public class DragPanel : MonoBehavior, ... {
  ...
  public void OnPointerDown (PointerEventData data) {
    panelRectTransofmr.SetAsLastSibling();
  }
}

RectTransform.SetAsLastSibling();を実行することで最後に描画することになる。
最後に描画したものは前面に来るらしいので、DragPanelとして使うときによさそう。

Move the transform to the end of the local transfrom list.

ドキュメントだけではlistの最後に来ることはわかるが、それで何に役立つのかはわからなかった。

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