Metadata-Version: 2.4
Name: unitytk
Version: 0.11.1
Summary: The automation beside the unitytk Unity package: an owned editor for agents, the test and demo project, a compile check.
Author-email: Ryan Simpson <m3trik@outlook.com>
License-Expression: LGPL-3.0-or-later
Project-URL: Homepage, https://github.com/m3trik/unitytk
Project-URL: Repository, https://github.com/m3trik/unitytk
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: COPYING
License-File: COPYING.LESSER
Requires-Dist: pythontk>=0.27.1
Dynamic: license-file

[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
[![Tests](https://img.shields.io/badge/Tests-146%20passed-brightgreen.svg)](../tests/)
[![Unity](https://img.shields.io/badge/Unity-6.3+-orange.svg)](https://unity.com/releases/editor/archive)
![Platform](https://img.shields.io/badge/Platform-Windows%2C%20Linux-lightgrey.svg)

# unitytk

**A Unity package that turns a DCC delivery into a working scene, and the Python that drives Unity from outside.**

<!-- diagram:ecosystem/unitytk -->
<!-- Generated by m3trik/scripts/generate_readme_diagrams.py from the workspace's declarations: change those and re-run it, never this block. -->
<p align="center">
<a href="https://github.com/m3trik/m3trik#readme"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg"><img alt="unitytk (highlighted) in the ecosystem: uitk requires pythontk; unitytk requires pythontk; mayatk requires uitk; blendertk requires uitk; tentacle requires uitk; extapps requires uitk; tentacle installs mayatk as its [maya] extra; tentacle installs blendertk as its [blender] extra; tentacle opens extapps by name (its [apps] extra) and never imports it; mayatk and blendertk share a mirrored API. tentacle and extapps are products, which nothing imports." src="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg" width="781"></picture></a>
</p>
<!-- /diagram:ecosystem/unitytk -->

## Design

| Principle | In practice |
|:--|:--|
| **An FBX imports ready to play** | The package reads the records an export carries and wires up what Unity's importer leaves out: fades and highlights, sound cues in the clips, per-shot metadata, baked lightmaps, ground shadow planes, rigs a hand can grab, and materials as they were authored. Nothing is configured, and it reads the delivery alone, whichever tool wrote it. |
| **A build sheet becomes a playable task** | The Manifest window reads the sheet a procedure is written in beside its delivery, shows what the scene is missing, and builds it. When the sheet or the export changes, only what changed is rebuilt, and what a person adjusted stays. |
| **Behaviors are registered** | A row is a behavior, built by whichever kit registers it. The Tasks kit is the first set: take a tool, use it on a part, go to a viewpoint, answer a question. |
| **Unity, driven from Python** | `UnityHost` runs C# in an editor the tooling starts and owns, never in one a person opened, so a script or an AI agent can drive Unity. No Python runs inside Unity: the editor serves each call in C#, so nothing needs Unity's Python Scripting package (`com.unity.scripting.python`), whose support Unity ended with Unity 6.1. |
| **Test-driven, on both pipelines** | Every bug is reproduced as a failing test before it is fixed, and the test stays in the suite. A release requires the package's Edit Mode tests to pass in Unity on URP and on the Built-in pipeline. |

## What's in it

| Part | What it holds |
|:--|:--|
| [`com.m3trik.unitytk/`](../com.m3trik.unitytk/README.md) | The Unity package: what it wires up, the import contract, installing it |
| [Manifest](manifest.md) | Staging a sheet and its delivery into a project (`sheet.sync`), then Assess and Build |
| [Tasks kit](tasks.md) | The phrases a row is written in and what each builds |
| [The delivery's format](https://github.com/m3trik/pythontk/blob/main/pythontk/core_utils/engines/scene_export/DELIVERABLE_FORMAT.md) | The records a delivery carries, declared in pythontk |

See also: [changelog](../CHANGELOG.md) · [tests](../tests/) · [contributing](../AGENTS.md) · [issues](https://github.com/m3trik/unitytk/issues).

## Install

In Unity's Package Manager, **+ ▸ Install package from git URL**:

```
https://github.com/m3trik/unitytk.git?path=/com.m3trik.unitytk#v<version>
```

`pip install unitytk` installs the Python side.

## License

LGPL-3.0-or-later — see [COPYING.LESSER](../COPYING.LESSER) and [COPYING](../COPYING), except the Unity package's C# ([`com.m3trik.unitytk/`](../com.m3trik.unitytk/LICENSE.md)), which is MIT so it can ship inside Unity player builds.
