Skip to content

feat(unity): name clip bindings in the hierarchy that plays the clip - #69

Merged
nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/bindings
Oct 15, 2026
Merged

nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/bindings

Conversation

@nichinichisou0609

@nichinichisou0609 nichinichisou0609 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • nnnotes.unity.bindings.resolve(bindings, prefab, root, material) names each binding of a clip document in a prefab.json hierarchy played by the Animator on the GameObject at root:
    • paths: relative to that GameObject, by crc32;
    • attributes: field paths of the bound component (for a MonoBehaviour, the one with its script), properties of the renderer's materials for a material binding (customType 22), then engine property names and fields of other components of the class.
  • A binding that no name, or several, fit stays unresolved; ambiguous paths list their candidates.
  • The name tables, flat_names and the material attribute bit layout move into this module; the typetree exporter imports them from it.

Tests

Synthetic hierarchy: paths below the Animator, MonoBehaviour fields by script, Transform attributes, material bindings with and without known materials, renderer fields, ambiguous paths, the bit layout.

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

Base automatically changed from redesign/product-roles to redesign/depot October 15, 2026 02:41
nnnotes.unity.bindings.resolve gives, for the bindings of an AnimationClip
document, the path and the attribute each names in a prefab.json hierarchy
played by the Animator on a given GameObject: paths relative to that
GameObject by their crc32, attributes among the field paths of the bound
component (a MonoBehaviour's by its script), the properties of a renderer's
materials for a material binding, and the engine property names. A binding
that no name, or several, fit stays unresolved; several fitting paths are
listed.

The binding name tables, field path listing and the material attribute bit
layout live in this module, and the typetree exporter uses them from there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nichinichisou0609
nichinichisou0609 merged commit b7e9d7d into redesign/depot Oct 15, 2026
9 checks passed
@nichinichisou0609
nichinichisou0609 deleted the redesign/bindings branch October 15, 2026 03:04
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