LoginSignup
7
2

More than 3 years have passed since last update.

【Unity】ProBuilderで生成したオブジェクトの中心の位置がずれる

Last updated at Posted at 2019-05-12

問題

ProBuilderを使って生成したオブジェクトの中心の位置がずれる。

スクリーンショット 2019-05-12 午後10.57.29.png
スクリーンショット 2019-05-12 午後10.57.14.png

白いCubeはUnityのHierarchyで普通にCreateし、
グレーのCubeはProBuilder -> New Shape -> Build Cube で作成しました。
どちらも位置は(0, 0, 0)です。

確かにグレーのCubeは位置がずれています。

原因

スクリーンショット 2019-05-12 午後11.04.33.png
スクリーンショット 2019-05-12 午後11.04.41.png

グレーのCubeのCenterの位置とPivotの位置が異なっていることが原因です。

解決方法

PivotをCenterに一致させます。

対象のオブジェクトを選択 -> Center Pivot

スクリーンショット 2019-05-12 午後11.20.03.png

これでPivotがCenterに一致しました。
スクリーンショット 2019-05-12 午後11.21.53.png

7
2
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
7
2