유니티/유니티 튜토리얼
[유니티 튜토리얼 1.1] 4. 오브젝트 배치하기
da_log
2022. 11. 28. 16:14
4. Add an obstacle and reposition it
- Go to Course Library > Obstacles and drag an obstacle directly into the Scene view
- In the Inspector for your obstacle, in the top-right of the Transform component, click the more options button > Reset Position Note: The more options button may appear as three vertical dots or a gear icon, depending on your version of Unity
- In the Inspector, change the XYZ Location to x=0, y=0, z=25
- In the Hierarchy, Right-click > Rename your two objects as “Vehicle” and “Obstacle”
장애물 배치하기
Assets - Obstacles에 가면 배치할 수 있는 장애물들이 나오는데
Hierarchy 창에 놓아도 되지만 보이는 Scene 화면에 놓아도 배치가 가능하다

Inspector 창에서 오브젝트 이름도 변경하고
X, Y, Z 축으로 위치 이동도 가능하다.

콘 장애물의 이름을 Obstacle로 바꾸고
z 축으로 25만큼 이동시켜줬다.
Transform 창에서 오브젝트 위치에 대한 정보를 볼 수 있고,
이동시킨 후에 위치를 처음 위치로 돌리고 싶으면
Transform 끝에 있는 ⁝ 누르고 Reset을 누르면 된다.