Objective:
Define distinct streaming rules for various categories of objects (e.g., terrains, buildings, props) by creating streaming layers.
Why This Step is Important:
Streaming layers allow World Streamer 2 to manage different object types efficiently, applying tailored streaming behaviors based on category-specific needs.
Detailed Instructions:
- Determine Your Streaming Layers:
- Analyze your game world and categorize objects based on their size, importance, and streaming requirements.
- Example Categories:
TerrainAndTreesLowPolyTerrainMeshesHugeObjects(e.g., Buildings, Cliffs)MediumOutdoorObjects(e.g., Market Stalls)SmallOutdoorObjects(e.g., Tools, Mushrooms)
- Create Streaming Layers in Scene Manager:
- Open the Scene Manager via:
- Navigate to the Streaming Layers tab.
- Add New Layers:
- Click the Add Layer button for each category you’ve identified.
- Naming Conventions:
- Use clear and descriptive names, e.g.,
TerrainAndTrees,HugeObjects.
- Use clear and descriptive names, e.g.,
- Understand Streaming Layers Functionality:
- Each streaming layer manages how its associated objects are loaded and unloaded based on player proximity and other factors.
- Scene Collection Manager Creation:
- For every streaming layer you create, a corresponding Scene Collection Manager object is generated.
- Location: These objects are stored in the Assets directory at the path specified at the top of the Streaming Layers tab.
- Organize Scene Collection Managers:
- Recommendation: Rename each Scene Collection Manager to match its streaming layer for easy identification.
- Example: Rename
SceneCollectionManager1toTerrainAndTrees_Manager.
- Example: Rename
- Recommendation: Rename each Scene Collection Manager to match its streaming layer for easy identification.
- Note on Indoor vs. Outdoor Streaming:
- The example setup focuses solely on outdoor objects.
- Interiors: Handled differently, typically using collider-based streaming (covered in Step 17).
Tips:
- Hierarchy Management: Maintain a structured hierarchy by grouping similar streaming layers under parent GameObjects.
- Flexibility: You can adjust streaming layers based on game complexity and specific performance needs.
