> For the complete documentation index, see [llms.txt](https://bennykok.gitbook.io/rhythm-game-starter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bennykok.gitbook.io/rhythm-game-starter/advance/asmdef.md).

# Asmdef

<div align="left"><img src="/files/-MPSn7jYA-mod1SRCkFV" alt=""></div>

<div align="left"><img src="/files/-MPSnCnV4ZDSl4bMGfni" alt=""></div>

### Asmdef?

Learn more about [asmdef](https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html) at Unity's docs.

### Advantage

Asmdef has multiple advantages such as editor performance and code organization, which is the best practice and commonly used by official unity packages.

### Notices

Since with asmdf setup, you cannot reference other code in other assemblies without asmdef directly (e.g. you wanted to modify rgs's scripts directly and referenced some code that is outside of the rgs assembly.)&#x20;

There are few ways you can go about this

* (Dirty way) Remove the two asmdef file
* (Ok way) Add custom `UnityEvent` or plain old c# event to hook up your custom logic if needed, so there won't be direct code reference in between.
* (Best way) Have you custom code setup with asmdef, and reference your asmfef to rgs asmdef, this way you can properly reference your code inside rgs assembly.
