Typescript Overview

In Airship, you write code using TypeScript instead of C#.

Most Unity APIs are available. If something is missing ask in our Discord — we'll add it for you.

  • You do not use C# for any game scripts (only advanced editor scripts)

  • TypeScript allows you to instantly update your game on all platforms

Opening in VSCode

In VSCode choose File > Open Folder and select the Assets folder in your project. This will give you proper syntax highlighting and import suggestions.

It's important to open the "Assets" folder and not the root folder.

Creating Scripts

To create a new script open the Project tab and navigate to the Assets/Code folder. In here you can see the scripts that control the template.

In the folder you can create a new script by right clicking and selecting: Create > Airship > Typescript File

Important Globals

Useful Airship services can be found under the Game Airship and Platform globals.

Last updated