Asset Swap Docs
View product

Teams and automation

Adapter SDK

Build deterministic third-party structured adapters with the same exact-occurrence contract as built-ins.

Asset Swap 26.8.5Unity 6000.0+Editor onlyBuilt-in · URP · HDRP

Implement IKiwiAssetSwapAdapter and let KiwiAssetSwapAdapterRegistry discover it through deterministic TypeCache ordering.

An adapter provides:

  • a stable namespaced Id
  • a human-readable DisplayName
  • deterministic Priority and scan mode
  • CanInspect without mutation
  • Collect that emits exact structured occurrences
  • Apply that changes only the supplied selected occurrences
  • Verify that proves the source is gone and exact target is present

Use KiwiAssetSwapStructuredOwnerSession for scenes, prefabs, and persistent assets. Use KiwiAssetSwapStructuredReferenceUtility for Unity object-reference properties or an explicitly recognized GUID schema.

Every occurrence needs a stable ID, mapping ID, adapter ID, project-relative asset path, stable owner ID, property path, exact source and target, state, diagnostic, and selection default.

Throwing or returning failure is safe: Asset Swap treats third-party adapter failure as blocking and rolls back any active transaction. Never swallow a schema mismatch or silently skip a previewed occurrence.

See the Adapter SDK Example sample for a known schema containing GUID plus 64-bit local file ID.

Still stuck?

Bring the plan and receipt with you.

Include the Asset Swap version, Unity version, operating system, plan, preview or receipt, relevant logs, and the smallest reproducible project state.

Email supportJoin Discord

Asset Swap 26.8.5

Search documentation