Give Page Feedback | API

Upgrading - Scene Loaders

The Scene Loader has been renamed to the Scene Chunk Streamer within SAM. You will need to create the component using the new Deep Space Labs component creation path. Do note that it is recommended to simply use the game object quick creation option, which will create all basic components you need to get started with SAM, including a Scene Chunk Streamer.

To do so, simply choose GameObject -> Create Other -> Deep Space Labs -> SAM -> Default SAM Setup, either via the top Unity menu bar or by right clicking in the Scene Hierarchy.

Alternatively, if you want to only create a new Scene Chunk Streamer component and nothing else, that information is provided below.

Creating A Scene Chunk Streamer Component

You can add this component by selecting a game object and then selecting from the Top Menu Bar:

Component -> Deep Space Labs -> -> SAM -> Chunk Streamers -> Scene Chunk Streamer

Adding A Scene Chunk Streamer Component From The Top Menu Bar GIF

or by selecting a game object and using the Add Component menu via its inspector:

Component -> Deep Space Labs -> -> SAM -> Chunk Streamers -> Scene Chunk Streamer

Adding A Scene Chunk Streamer Component From Add Component Menu GIF

Time To Wait Between Loads (Removed)

This setting has been removed.

Unbound Object Tag (Removed)

This setting has been removed, as it's no longer necessary to assign a special tag to scene Asset Chunks.

Are Scenes Fixed (Removed)

This setting has been removed, as it's no longer required.

Generate Scenes Button (Removed)

If you wish to create scenes, you can create a Scene Generation File via the Asset Creation Menu(Assets -> Create -> Deep Space Labs -> SAM -> Scene Generation File).

Assignment Note

Remember, previously Cell Object Loaders were assigned to Scene Chunk Streamers. In the Streamable Assets Manager, the Chunk Streamer component is assigned to the World, either via the Default Chunk Streamer field found in the Overridable Settings window, via the Chunk Streamer field within the Grouping Overrides window of any World Grouping, or via the Chunk Streamer field of any LOD Override.

New Responsibility

The Chunk Streamer class is now responsible for destroying/removing Asset Chunks from the scene, however unlike the Prefab Chunk Streamer, it cannot utilize a Chunk Destroyer in order to do so. This is because all scene assets are removed via call to SceneManager.UnloadSceneAsync for optimal performance.

Other Settings

Each setting on the Scene Chunk Streamer has a detailed tooltip (hover over setting label to see), however if you would like to view even more detailed information, you can take a look at the Scene Streamer Section within the Chunk Streamers Chapter.

Scene Chunk Streamers