官术网_书友最值得收藏!

Adding a cube

Let's add the first object to the scene: a unit-sized cube.

Within the Hierarchy panel, use the Create menu and choose 3D Object | Cube. The same selection can also be found in the main menu bar's GameObject drop-down menu.

A default white cube is added to the scene, centered on the ground plane at the (0, 0, 0) position, with no rotation, and a scale of one, as you can see in the Inspector panel. This is the Reset setting, which can be found in the object's Transform component of the Inspector panel.

The Reset values of the Transform component are Position (0, 0, 0), Rotation (0, 0, 0), and Scale (1, 1, 1).

If for some reason your cube has other Transform values, set these in the Inspector panel or locate the small gear icon in the upper right-hand side of the Inspector panel's Transform component, click on it, and select Reset.

This cube has the dimensions of one unit on each side. As we'll see later, one unit in Unity corresponds to one meter in world coordinates. Its local center is the center of the cube.

主站蜘蛛池模板: 教育| 木里| 六安市| 环江| 宁南县| 仪陇县| 堆龙德庆县| 濉溪县| 吴桥县| 佛坪县| 塔河县| 平遥县| 高平市| 班戈县| 莒南县| 汕头市| 芜湖县| 永善县| 太康县| 湛江市| 文成县| 靖西县| 阿巴嘎旗| 巴塘县| 九台市| 天水市| 廉江市| 威信县| 安新县| 常德市| 张北县| 宜君县| 平谷区| 横山县| 佛学| 讷河市| 商城县| 宁南县| 那曲县| 南宫市| 凤冈县|