Repository navigation
Adder 0.3.0: includes, preloading, transitions, cross-scene references
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:
LoadPriorityon sets and requests (Adder.Load(set, LoadPriority.High)); high priority scenes
load first. - Preloading:
Adder.Preload,Activate,CancelPreload,IsPreloaded, and the newSceneState.Ready. Backends
opt in withIPreloadSceneBackend. - Transitions:
AdderTransitionassets (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.TransitionOperationcan be yielded or awaited. - await on
AdderOperationandTransitionOperation. - Events:
Adder.SetLoaded,SetUnloaded,SceneUnloading(before an unload), and the Scene Events component. - Cross-scene references:
CrossSceneReference<T>, the Scene Object Id component,SceneObjectslookups,
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,AdderStateJSON,Adder.Findby 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.TickandAdder.Streaming.
Changed
SceneStategainedReady(betweenLoadingandLoaded): 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. AdderOperationconstructors andISceneBackendgained 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