# Extending the editor

Since Airship uses Unity, most of the custom editor features will work as-is. Some examples of features you might may want to add to your project:

* [Adding editor menus](https://docs.unity3d.com/6000.0/Documentation/ScriptReference/MenuItem.html)

Airship also has our own analogous versions of Unity features such as

* [Adding custom property inspectors for `AirshipBehaviour`s](/editor-extensions/custom-inspectors-c.md)

### Before you begin

If you are planning to write C# scripts for the editor, it's recommended you turn *off* the TypeScript compiler *while* you write C# editor code.&#x20;

<figure><img src="/files/MwMaI0CNd2j72JS8ajLS" alt=""><figcaption><p>How to access the TypeScript service settings</p></figcaption></figure>

<figure><img src="/files/wRcBXxMswrhZPwqVQBtn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/NBIbiOxG9DbhzNvGXamO" alt=""><figcaption><p>Developer Options setting, which will allow more settings for the TypeScript compiler</p></figcaption></figure>

This will change the TypeScript menu to add options to start/stop the compiler. This can be utilized to stop the compiler recompiling each time you make a C# change.

<figure><img src="/files/qmtFceOp2hx1gHN32Y51" alt=""><figcaption><p>TypeScript developer mode</p></figcaption></figure>

### Airship Editor C# API

Airship has the following user editor APIs you can use:

* \
  `AirshipSerializedProperty`  and `AirshipSerializedObject` for handling Airship Behaviour property serialization
* `AirshipCustomEditors` for querying the registered custom inspectors for AirshipBehaviours
  * See [AirshipBehaviour inspectors](/editor-extensions/custom-inspectors-c.md) for how to add custom editors
* `AirshipType` which is the Airship version of `Type` for TypeScript-based types.
  * Types can be queried using `AirshipType.GetType(name)`&#x20;
* `AirshipEditorGUI` - for drawing editor properties for `AirshipSerializedProperty` instances using IMGUI.
* `AirshipGUI` for general Airship GUI state
* `TypescriptService` for general TypeScript APIs
* `TypescriptProjectsService.Project` for querying the project settings
* `TypescriptCompilationService` for querying the compiler state


---

# 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://docs.airship.gg/editor-extensions/extending-the-editor.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.
