素人Unity練習帳
Objectの非表示について 01
Body、LeftMis、RightMisのオブジェクトを作り

それぞれのTransformの値を
Body

Transform.Position x0, y0.5, z0
Transform.Rotation x0, y0, z0
Transform.Scale x1, y1, z2
LeftMis

Transform.Position x0.7, y1, z0
Transform.Rotation x90, y0, z0
Transform.Scale x0.5, y1, z0.5
RightMis

Transform.Position x-0.7, y1, z0
Transform.Rotation x90, y0, z0
Transform.Scale x0.5, y1, z0.5

Unity上で、表示非表示は
Inspectorの
名前の左にあるチェックで操作できるけど
スクリプトで、
表示させたり
消したりしたい。
単純に消すなら
Destroy(gameObject);
とすれば、削除できるのですが
ある状態になったら、オブジェクトを表示させる
なんていうのもあるので、まとめてみる。
Body、LeftMis、RightMisのオブジェクトを作り

それぞれのTransformの値を
Body

Transform.Position x0, y0.5, z0
Transform.Rotation x0, y0, z0
Transform.Scale x1, y1, z2
LeftMis

Transform.Position x0.7, y1, z0
Transform.Rotation x90, y0, z0
Transform.Scale x0.5, y1, z0.5
RightMis

Transform.Position x-0.7, y1, z0
Transform.Rotation x90, y0, z0
Transform.Scale x0.5, y1, z0.5

Unity上で、表示非表示は
Inspectorの
名前の左にあるチェックで操作できるけど
スクリプトで、
表示させたり
消したりしたい。
単純に消すなら
Destroy(gameObject);
とすれば、削除できるのですが
ある状態になったら、オブジェクトを表示させる
なんていうのもあるので、まとめてみる。

Reon Viewin