Metadata-Version: 2.4
Name: unitytk
Version: 0.10.0
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.0
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/)
![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.

- **An FBX imports ready to play.** The package ([`com.m3trik.unitytk/`](https://github.com/m3trik/unitytk/blob/main/com.m3trik.unitytk/README.md)) 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. It reads the delivery alone, whichever tool wrote it.
- **A build sheet becomes a playable task.** The [Manifest](https://github.com/m3trik/unitytk/blob/main/docs/manifest.md) window reads the sheet a procedure is written in beside that delivery, shows what the scene is missing, and builds it. When the sheet or the export changes, only what changed is rebuilt. The [Tasks kit](https://github.com/m3trik/unitytk/blob/main/docs/tasks.md) is the first set of behaviors a row can ask for. [Watch the demo](https://github.com/m3trik/unitytk/blob/main/docs/images/unity_manifest.mp4): a sheet and its FBX staged into a new project, assessed, built, and the task played.
- **Unity, driven from Python.** `UnityHost` runs C# in an editor the tooling starts and owns, never in one a person opened. `UnityCompile` compiles the package's C# in seconds with no editor running, and `ProjectBuilder` makes the test and demo project on demand.

![Build: every row of the sheet built into the scene](https://raw.githubusercontent.com/m3trik/unitytk/main/docs/images/unity_manifest_build.gif)

The same sheet builds the shots in Maya or Blender, and [one job is recorded through all four tools](https://github.com/m3trik/m3trik/blob/main/docs/TOOL_DEMOS.md).

The package installs through Unity's Package Manager, by one line in a project's manifest, never by pip; `pip install unitytk` installs the Python side.

<!-- 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 -->

## More

- [A scene from a build sheet: the manifest](manifest.md) — a sheet and its delivery staged into a project (`sheet.sync`, `unitytk.sheets`), the Manifest window that assesses and builds the scene from them, and how each half extends
- [The Tasks kit](tasks.md) — the first set of behaviors a sheet's rows read as: the phrases, what each builds, the building blocks, the sample task
- [The Unity package's README](../com.m3trik.unitytk/README.md) — the package's catalog, the FBX import contract, and installing it (one Package Manager line)
- [pythontk's `DELIVERABLE_FORMAT.md`](https://github.com/m3trik/pythontk/blob/main/pythontk/core_utils/engines/scene_export/DELIVERABLE_FORMAT.md) — the data a deliverable carries, which the package reads (the `data_export` carrier and every scene record's block)
- [`CHANGELOG.md`](../CHANGELOG.md) — notable changes
- [`AGENTS.md`](../AGENTS.md) — contributor / agent conventions

## 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.
