Skip to content

Adder 0.3.0: includes, preloading, transitions, cross-scene references

Choose a tag to compare

@Nekuzaky Nekuzaky released this 30 Nov 17:42
· 8 commits to main since this release

Added

  • Includes: a Scene Set can include other sets (shared terrain, audio, lighting), loaded before its own scenes and
    reference counted like them. Cycles are ignored. Releasing a set gives back exactly what its load took.
  • Priorities: LoadPriority on sets and requests (Adder.Load(set, LoadPriority.High)); high priority scenes
    load first.
  • Preloading: Adder.Preload, Activate, CancelPreload, IsPreloaded, and the new SceneState.Ready. Backends
    opt in with IPreloadSceneBackend.
  • Transitions: AdderTransition assets (fade colour and durations, Loading Screen between the fades, minimum
    duration, pause), Adder.SwitchTo(set, transition), Adder.Load(set, transition), Adder.Transition(...), and a
    Transition field on Scene Set Loaders. TransitionOperation can be yielded or awaited.
  • await on AdderOperation and TransitionOperation.
  • Events: Adder.SetLoaded, SetUnloaded, SceneUnloading (before an unload), and the Scene Events component.
  • Cross-scene references: CrossSceneReference<T>, the Scene Object Id component, SceneObjects lookups,
    and an inspector field that accepts objects from any open scene.
  • Project Settings > Adder: scheduling defaults, a boot set loaded at start (press Play from any scene), the
    panel transitions draw on, a default transition, and a catalog of every set kept up to date.
  • Saves: Adder.CaptureState, RestoreState, AdderState JSON, Adder.Find by id or name, SceneSet.Id.
  • Streaming: velocity lookahead on Streaming Sources, a minimum loaded time on zones, high priority for the zone a
    source stands in.
  • Addressables: AddressablesSceneBackend, compiled when the Addressables package is installed.
  • Editor: a Map tab (zones from above, with distances and sources), the Adder overlay of the Scene view (open,
    add and close sets, show all zones, editor streaming), editor streaming around the Scene view camera, Quick Setup,
    Create Streaming Zones For Selected Sets, Scene Set From Selected Scenes, inspectors and icons for the new
    components, Preload / Activate / Fade To buttons in Play Mode.
  • Profiler markers Adder.Tick and Adder.Streaming.

Changed

  • SceneState gained Ready (between Loading and Loaded): code that compared states by number must be updated.
  • Streaming zones keep their set at least 3 s by default and sources predict 1 s ahead; set Minimum Loaded Time and
    Lookahead to 0 for the old behaviour.
  • AdderOperation constructors and ISceneBackend gained preload support through new interfaces; custom backends
    keep working without it (preloads then load fully).

Install

Window > Package Manager > + > Install package from git URL:

https://github.com/Nekuzaky/Adder-Unity-Additive-Scenes.git?path=Packages/com.nekuzaky.adder#v0.3.0