---
title: スクリプトによるコンポーネントの作成
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/ja-jp/engine/6000.0/manual/working-with-gameobjects/unity-components/creating-components
latest_url: https://docs.unity.com/ja-jp/engine/7000.0/manual/working-with-gameobjects/unity-components/creating-components.md
last_updated: 2026-09-14
generated_at: 2026-12-02T18:30:46.628Z
locale: ja-jp
---

# スクリプトによるコンポーネントの作成

> スクリプトを使用してコンポーネントを作成する方法を学びます。

コンポーネントはゲームオブジェクトに機能を追加します。エディターでコンポーネントをカスタマイズして追加するには、独自のスクリプトを作成します。

スクリプトでコンポーネントを作成するには、スクリプトを記述し、ゲームオブジェクトにアタッチ、設定、添付する必要があります。ゲームオブジェクトに添付されたスクリプトは、ゲームオブジェクトの Inspector ウィンドウに表示されます。これは、エディターがビルトインコンポーネントとして扱うためです。

スクリプトの作成方法については、「 [Create and Using Scripts](/engine/6000.0/manual/scripting/get-started/creating-scripts.md) 」を参照してください。

## 追加リソース##additional-resources

* [コンポーネント](https://docs.unity3d.com/ScriptReference/Component.html)スクリプティング API ページ。

* [Use Components](/engine/6000.0/manual/working-with-gameobjects/unity-components/using-components.md)。
