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

[Unity]Imageサイズを一発で元画像と同じに変更する方法

Last updated at Posted at 2018-09-14

UnityEditor上で、Imageサイズを元画像サイズに変更する作業。

よくある作業だと思います。

毎回、RectTransformでwidthとheightに手動で数値を入力していたのですが

これってワンクリックでなんとかできないのかと疑問が沸いてきました。

RectTransformを見る限りはそのような機能は見つかりませんでした。

ではImageコンポーネントではどうなのか。

ありました。

「Set Native Size」というボタンが!

英語には盲目な私は、気付くのに時間がかかりました。

↓ Imageサイズを一発で元画像と同じに変更する方法.gif
Imageサイズを一発で元画像と同じに変更する方法.gif

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?