게임 오브젝트는 컴포넌트를 포함하고 있는 Unity 에디터의 오브젝트입니다. 컴포넌트는 해당 게임 오브젝트의 동작을 정의합니다.
이 페이지에서는 컴포넌트를 확인하고 상호작용하는 방법에 대해 설명하고, Unity에서 가장 일반적인 컴포넌트 설정에 대해 간략히 소개합니다.
게임 오브젝트의 컴포넌트를 보려면 씬 창 또는 계층 창에서 게임 오브젝트를 선택한 후 인스펙터 창에서 전체 컴포넌트 리스트와 해당 설정을 확인하십시오.
에디터에서 또는 스크립트를 통해 컴포넌트와 직접 상호작용할 수 있습니다. 스크립트를 통해 컴포넌트를 제어하고 상호작용하는 방법에 대한 지침은 스크립팅 섹션을 참조하십시오.
이 섹션에서는 Unity의 몇 가지 기본적인 컴포넌트 설정에 대해 자세히 설명합니다.
Unity의 모든 게임 오브젝트에는 Transform 컴포넌트가 있습니다. 이 컴포넌트는 게임 월드와 씬 뷰에서 게임 오브젝트의 포지션, 회전, 스케일을 정의합니다. 이 컴포넌트는 제거할 수 없습니다.
또한 Transform 컴포넌트는 부모 지정 개념을 활성화하여, 한 게임 오브젝트를 다른 게임 오브젝트의 자식으로 지정한 후 부모의 Transform 컴포넌트를 통해 해당 포지션을 제어할 수 있습니다. 이는 Unity에서 게임 오브젝트를 사용하는 작업의 핵심 요소입니다.
기본적으로 모든 새로운 씬은 메인 카메라라고 부르는 게임 오브젝트로 시작합니다. 이 게임 오브젝트는 게임의 기본 카메라 역할을 수행하도록 설정됩니다. 또한 Transform 컴포넌트, Camera 컴포넌트, 그리고 애플리케이션에서 오디오를 포착하기 위한 오디오 리스너를 포함하고 있습니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.