# 컴포넌트란 무엇인가요?

### 컴포넌트와 친해지기

![](/files/-Mgcb7okD3eEUlNV_rse)

컴포넌트란 경험에서 오브젝트가 작동하거나 다른 요소들과 상호작용하는 방식을 조정할 수 있는 **변수 모음**📦입니다.&#x20;

컴포넌트는 경험을 아주 **매끄럽게 만들어 주죠**! 변수들을 간단한 슬라이더 및 입력🎚️ 🎛️ 세트로 묶어 오브젝트의 작동 방식을 정의하여 제작 과정에 걸리는 시간을 단축할 수 있습니다.

예를 들어, **클릭 몇 번**만으로 체력 컴포넌트의 오브젝트가 데미지🛡️를 입지 않도록 하거나 플레이어가 특정 오브젝트를 물리치면 **보물 아이템을 드롭**하도록 만들 수 있죠!

경험 내 오브젝트에 이러한 컴포넌트를 추가해도 **애셋 원본이 변경되는 것은 아닙니다**. 동일한 애셋의 복사본이 있을 경우, 복사본마다 **커스텀한 컴포넌트를 추가**하여 각 복사본을 고유한 용도로 사용할 수 있다는 의미입니다.

{% hint style="info" %}

**오브젝트에만 컴포넌트를 추가**할 수 있으며, 블록에는 컴포넌트 추가가 불가능합니다.
{% endhint %}

**비헤이비어와 컴포넌트를 적절히 사용**하여 풍부하고 역동적인 경험을 만들 수 있지만, 반드시 둘 모두를 함께 사용할 필요는 없습니다. 예를 들어, 한 오브젝트에 **비헤이비어 없이**⚙️ 체력 컴포넌트만 추가할 경우 해당 오브젝트는 추가한 컴포넌트를 기반으로 다양한 상호 작용과 기능을 조정하는 것이 가능합니다.

이제 게임 메이커에서 어떻게 **컴포넌트를 적용**하는지 차근차근 알아보겠습니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sandbox.game/the-game-maker-academy_kr/components/what-is-a-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
