# Script Templates

{% hint style="info" %}
As of August 2023, Unity Asset Store does not allow us to upload ScriptTemplates anymore. Import this package to add them to your project.

* You must **restart Unity** after importing this package for Unity to wire up the menus.
  {% endhint %}

{% file src="/files/QaeM3Wp6CrzVf68S1cSB" %}
ScriptTemplates Unity Package
{% endfile %}

{% hint style="warning" %}
**Root Folder Required:** ScriptTemplates is a special folder to Unity and must remain in the Assets folder.
{% endhint %}

We've added Script Templates to make it easier to create derived class scripts that inherit from our base classes.

* All possible overrides are already made for you and organized.
* They're all fully commented as to what they all do.
* Base method calls are all in place where needed so you can see what they already do.
* Each has links at the top to their doc page(s).

The **Mirror** section will appear under the **Assets > Create menu**, as well as the context menu that comes up when you right-click on any folder in your project. You'll be prompted for the file name like any other asset creation.

<div align="left"><figure><img src="/files/Drdn5Y5bD8G6IO25Cg5Q" alt=""><figcaption><p>Menu to Mirror Script Templates</p></figcaption></figure></div>

Hopefully these templates will be helpful to new users of Mirror to learn what methods are available in various classes, as well as just being more convenient for everyone.


---

# 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://mirror-networking.gitbook.io/docs/manual/general/script-templates.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.
