Skip to content

feat(link)!: find objects by their Resources.Load path - #67

Merged
nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/resource-paths
Oct 15, 2026
Merged

nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/resource-paths

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator

Summary

  • The census records the container of a ResourceManager (resourcePaths), the paths Resources.Load finds objects at; unity.census is at version 4.
  • The address table becomes nnnotes.addresses/2 (link.addresses version 2) with a resources table: each path with the object ids it names. Those objects get stable addresses as container paths of the built-in file holding the ResourceManager (apk/data.unity3d/<path>).
  • AddressIndex.resource(path) looks a path up ignoring case, as Unity does.
  • Request roots and product stages take resource paths (resources) besides catalog keys and object ids. A product stage that names resource paths depends on link.addresses.

Tests

  • census of a ResourceManager, including a null entry
  • the resources table and its stable addresses from a built-in census
  • index lookup by resource path
  • a product rooted at a resource path alone: request roots, the units exported, dependencies, table roots
  • schemas, docs and the CLI schema check updated

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

The census lists the container of a ResourceManager (`resourcePaths`: the
paths Resources.Load finds objects at, in stored order); unity.census is at
version 4. The address table (nnnotes.addresses/2, link.addresses version 2)
adds `resources`, each path with the object ids it names, and gives those
objects stable addresses as container paths of the built-in file holding the
ResourceManager. AddressIndex.resource looks a path up ignoring case.

A request's roots and a product stage take resource paths besides catalog
keys and object ids (`resources`), so a product can start from the objects a
runtime loads by name, such as the materials of a model's masks.

BREAKING CHANGE: address tables are nnnotes.addresses/2 with a required
`resources` table, and census documents carry `resourcePaths`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nichinichisou0609
nichinichisou0609 merged commit 199d8a8 into redesign/depot Oct 15, 2026
8 checks passed
@nichinichisou0609
nichinichisou0609 deleted the redesign/resource-paths branch October 15, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant