assets

Addressables Service

Ref-counted Addressables asset service with load scopes. Client-only.

Category Infra Unity types 1
Unity package
com.crossplay.assets
Depends on
core
Shape
client-only · no server half

Unity services you inject 1

Crossplay binds these in the client context. Inject and call them from your own MonoBehaviours and presenters.

IZoneContentStreamer

The Addressables consumer for zone travel: entering a zone preloads everything under the label prefix+zone into an IAssetScope, and leaving releases the previous zone's scope — content residency follows the player automatically. The GAME decides what each label contains (models, audio banks, VFX) and renders its own loading UI off the events.

  • event Action<string> ZoneLoadStarted

    A zone preload began (zone name).

  • event Action<string, int> ZoneLoadCompleted

    A zone preload finished (zone name, assets resident).

  • string CurrentZone

    The zone whose content is currently resident (empty before the first enter).