> For the complete documentation index, see [llms.txt](https://rhythm-engine.gitbook.io/rhythm-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rhythm-engine.gitbook.io/rhythm-engine/samples/mania-editor-sample.md).

# Mania Editor Sample

Loads all the notes from a Song and gives an interface to modify them.

<figure><img src="https://2453352182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegXPFnkaY7ySpmnkFA8P%2Fuploads%2Fdf8WkDhciP3o6vnEX4r5%2Fimage.png?alt=media&amp;token=325b559f-7299-4e3e-ab5d-7e3f4aef41e7" alt=""><figcaption><p>Mania Editor Scene</p></figcaption></figure>

ManiaEditor GameObject contains two main scripts:

ManiaEditor.cs handles most of the logic behind the editor: creating beat visuals, loading notes, creating new notes, deleting existing notes, pausing, unpausing and scrolling time.

ManiaEditor.cs also makes use of a static script ManiaEditorSongSaver.cs to save the song to the Assets.

ManiaNotePlacer.cs figures out which beat your mouse was on when you right click and then uses ManiaEditor to actually toggle the note on that beat.

<figure><img src="https://2453352182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegXPFnkaY7ySpmnkFA8P%2Fuploads%2FanFFynqNKUtz9daD0r9h%2Fimage.png?alt=media&amp;token=c02f195a-5b9a-416e-ae94-fa23d512ce0e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2453352182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegXPFnkaY7ySpmnkFA8P%2Fuploads%2F5v3s4HT6gU8XuXKd0T1J%2Fimage.png?alt=media&amp;token=6b4265a1-1b66-4d73-aff2-e6f9a2c8df95" alt="" width="470"><figcaption></figcaption></figure>

ManiaEditorTimer.cs is just a simple script that gets the current time and shows it on an UI text.

<figure><img src="https://2453352182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegXPFnkaY7ySpmnkFA8P%2Fuploads%2F3tTsR8Rbz4t56LduO2l9%2Fimage.png?alt=media&amp;token=8f1e3492-7d23-4b7f-b793-20925b0aa98b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2453352182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegXPFnkaY7ySpmnkFA8P%2Fuploads%2FaDdwysbUBrSRmXGVFSM2%2Fimage.png?alt=media&amp;token=7c0dc248-5f27-45d4-b6b5-2aad5b89a2d3" alt="" width="463"><figcaption></figcaption></figure>
