# Getly Publisher

Publish a Unity asset to [Getly](https://www.getly.store) without leaving the editor.

## Getting started

1. **Window → Getly → Publish Asset**
2. **Sign in.** Your browser opens; approve the editor there. No password is typed
   into Unity, and the key it receives is scoped to your own store.
3. **Pick the folder you are selling** and press **Check my package**.
4. Fix anything marked as a problem, fill in the listing, and **Submit**.

Submitting creates a **draft**. You add images and publish it on getly.store —
the editor is the wrong place to be choosing screenshots.

## What the check looks for

Two kinds of finding, and the difference is deliberate:

- **Problems** stop the product going live. Each one means the buyer receives
  something broken — a prefab whose script does not resolve, runtime code that
  will not compile in their build, a path that only exists on your machine.
- **Suggestions** never block. They are things that make an asset better —
  documentation, a demo scene, a namespace, a texture the buyer's phone can
  afford. If you know your asset better than the rule does, ship it anyway.

The full list is at https://www.getly.store/api/publisher/checks, and it is the
same list the server uses. Nothing is checked here that is not checked there.

## Why the check runs twice

The editor sees things a server cannot: whether a prefab's script GUID actually
resolves, what a texture's import settings are, how the compiler reads a file.
That is why this tool exists rather than being an upload check.

But it runs on your machine, in a package you can edit, so it advises. The
server reads the bytes you upload and decides. Where both can see a problem,
both report it the same way.

## Where your sign-in is kept

`EditorPrefs`, on your machine only — never a file inside the project. A key
written under `Assets/` gets committed, shared, and — for an asset publisher
especially — exported inside your own package and sold to strangers.

Sign out from the same window at any time, or revoke the key on getly.store
under Developer → API keys.

## Requirements

Unity 2020.3 or newer.

## Support

support@getly.store
