LoginSignup
0
0

More than 5 years have passed since last update.

uGUIのButtonを使用する(備忘

Posted at

UnityでuGUIのButtonって使用しますよね。

私はButtonを3D空間に配置して使用したいので、
Canvas(設定はWorld Space)を作ってしてButtonを配置するのですが、
Canvasが大きくてSceneで操作しにくいです。

そこで、Buttonを使用する際、Sceneで操作しやすいように行う設定を備忘のため記載。

Canvas作成
Render Mode を World Space に設定
Pos X とPos Y を 0 に設定
Width と Hight を 1 に設定
Dynamic Pixels Per Unit を 10 に設定(Button の 文字がぼやけるため)

Buttonを作成
Scale の X、Y、Z を0.01に設定

後はお好みで位置、大きさの調整を行う。

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