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

RectTransform.SetsizeWithCurrentAnchorについて

Posted at

#RectTransform.SetsizeWithCurrentAnchorについて

SetSizeWithCurrentAnchors(Axis axis, float size)
二つの引数Axis,sizeについて。

##Axisについて
Recttransform.Axisである。
Horizontal(水平),Vertical(垂直)
の縦横二つがある。

##sizeについて
Recttransform大きさのマックスを指定

#つまり
uGuiの大きさを変える。

参考文献
公式ドキュメント[https://docs.unity3d.com/jp/460/ScriptReference/RectTransform.SetSizeWithCurrentAnchors.html]

【Unity uGUI】RectTransformの基本的な使い方を理解する
[https://docs.unity3d.com/jp/460/ScriptReference/RectTransform.SetSizeWithCurrentAnchors.html]

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