> For the complete documentation index, see [llms.txt](https://kap35.gitbook.io/kap-engine-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kap35.gitbook.io/kap-engine-wiki/user-manual/component/what-is-it.md).

# What is it ?

### Component System

A component is a logical program use to do something in your game.

Each component has some functions made to update, initiate or call for special events during the runtime.

Component is the only thing you gonna code to change or add new gameplay systems

### How component call functions ?&#x20;

<figure><img src="https://4254317266-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWLCvkNtXkF46zmAW32yt%2Fuploads%2FbPX8Nf3coTMQRVsReKsl%2Fcomponent.drawio.png?alt=media&amp;token=3a17d863-b464-4a87-89ef-c3f9dc9dbcc7" alt=""><figcaption></figcaption></figure>

### How create my Component ?

To create a new component, follow these instructions :

{% content-ref url="/pages/QN6SiU7iRBnh5JCayqdm" %}
[Create new one](/kap-engine-wiki/user-manual/component/create-new-one.md)
{% endcontent-ref %}

### List of basic functions

{% content-ref url="/pages/s68jD15pdW7BPQHhzgpX" %}
[checkComponentValidity](/kap-engine-wiki/user-manual/component/checkcomponentvalidity.md)
{% endcontent-ref %}

{% content-ref url="/pages/u9YougX7SEpIrezWRoZ5" %}
[onAwake](/kap-engine-wiki/user-manual/component/onawake.md)
{% endcontent-ref %}

{% content-ref url="/pages/SjYxIx8I62P8IvackCAH" %}
[onStart](/kap-engine-wiki/user-manual/component/onstart.md)
{% endcontent-ref %}

{% content-ref url="/pages/tAGEf4KNRyyqo1Lu2wiH" %}
[onUpdate](/kap-engine-wiki/user-manual/component/onupdate.md)
{% endcontent-ref %}

{% content-ref url="/pages/hwnTGDaINe2ao0c4nHNe" %}
[onFixedUpdate](/kap-engine-wiki/user-manual/component/onfixedupdate.md)
{% endcontent-ref %}

{% content-ref url="/pages/3cPiCOkIikG9BBXizoPQ" %}
[onDisplay](/kap-engine-wiki/user-manual/component/ondisplay.md)
{% endcontent-ref %}

### List of event functions

{% content-ref url="/pages/DcO7s00SP6T7EaNpZ2Um" %}
[onDestroy \[EVENT\]](/kap-engine-wiki/user-manual/component/ondestroy-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/8tpQ1YAstzDHdzGq7NN4" %}
[onGameQuit \[EVENT\]](/kap-engine-wiki/user-manual/component/ongamequit-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/GqUS6evNT7CAZeNsBPDw" %}
[onDisable \[EVENT\]](/kap-engine-wiki/user-manual/component/ondisable-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/vwvDLF0d4NbWvkaltTHc" %}
[onEnable \[EVENT\]](/kap-engine-wiki/user-manual/component/onenable-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/8Me922djfm4omBQbW94u" %}
[onMouseEnter \[EVENT\]](/kap-engine-wiki/user-manual/component/onmouseenter-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/XX2d242PKDyeG1XsPpaN" %}
[onMouseStay \[EVENT\]](/kap-engine-wiki/user-manual/component/onmousestay-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/WmnoH4TOKbk1REca1G1F" %}
[onMouseExit \[EVENT\]](/kap-engine-wiki/user-manual/component/onmouseexit-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/P2vIEJC46Xe15sHzQ6Sq" %}
[onTriggerEnter \[EVENT\]](/kap-engine-wiki/user-manual/component/ontriggerenter-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/EOrEPaZKWdp6xpd6P91Z" %}
[onTriggerStay \[EVENT\]](/kap-engine-wiki/user-manual/component/ontriggerstay-event.md)
{% endcontent-ref %}

{% content-ref url="/pages/q8KEZq7auoAraSQUpycp" %}
[onTriggerExit \[EVENT\]](/kap-engine-wiki/user-manual/component/ontriggerexit-event.md)
{% endcontent-ref %}
