Objective:
Integrate collider-based interior scenes into the streaming layers, ensuring they are managed correctly by World Streamer 2.
Why This Step is Important:
Including interior scenes in streaming layers allows for seamless loading and unloading based on player proximity, maintaining performance while providing dynamic environments.
Detailed Instructions:
- Access Scene Manager:
- Navigate to:
- Navigate to Streaming Layers Tab:
- Within the Scene Manager, ensure you’re on the Streaming Layers tab.
- Configure Collider-Based Streaming:
- Select Appropriate Layer:
- Choose the streaming layer designated for interiors or collider-managed scenes.
- If not existing, consider creating a new layer, e.g.,
Interiors.
- Select Appropriate Layer:
- Enable Collider-Only Scene Generation:
- At the bottom of the Streaming Layers tab, locate and select the option:
- Function: This setting tells World Streamer to create streaming scenes based solely on collider triggers, rather than virtual grids.
- Initiate Scene Generation:
- Click the Generate Scenes from Colliders Only button.
- World Streamer will scan for collider zones tagged with
ColliderStreamerManagerand create corresponding streaming scenes.
- Verify Scene Creation:
- Check the Hierarchy and Project panel for newly created interior scenes.
- Ensure each collider zone has an associated streaming scene.
- Repeat as Necessary:
- If you have multiple collider zones, ensure all have corresponding scenes generated.
- Integrate into Build Settings:
- Important: After generating collider-based scenes, revisit Step 14 to add these new scenes to the Build Settings.
- This ensures they are included in the final build and can be loaded at runtime.
Notes:
- Scene Naming: Collider-generated scenes often follow a naming convention based on the collider’s Scene Prefix.
- Scene Dependencies: Ensure that interior scenes have all necessary dependencies and references to function correctly when loaded.
Tips:
- Consistency: Maintain consistent naming and tagging conventions for all collider zones to streamline scene generation.
- Testing: After generation, test each interior streaming to confirm correct loading and unloading behaviors.
