Objective:
Create scene objects that reside on disk and can be loaded additively by World Streamer 2 based on the virtual grid.
Why This Step is Important:
Generating these scenes allows World Streamer to manage loading and unloading of different world segments seamlessly, enhancing performance and player experience in large environments.
Detailed Instructions:
- Ensure Virtual Grid is Created:
- Complete Step 11 to have a fully established virtual grid.
- Access Scene Manager:
- Navigate to:
- Locate the Generate Scenes Button:
- Within the Streaming Layers tab, find the button labeled Generate All Scenes From Virtual Grid.
- Initiate Scene Generation:
- Click the Generate All Scenes From Virtual Grid button.
- Note: This process may take time, especially if you’ve enabled Y-axis splitting or have a large number of grid segments.
- Wait for Completion:
- Allow Unity to process the scene generation. Avoid interacting with other Unity features during this process to prevent interruptions.
- Verify Scene Creation:
- Once completed, check the Project panel for newly created scene assets.
- These scenes should correspond to the virtual grid’s segmentation and follow the naming conventions based on your Scene Prefixes.
- Troubleshooting If No Scenes Are Created:
- Possible Reasons:
- Incorrect or inconsistent prefixes.
- Objects not correctly tagged or parented.
- Solutions:
- Adjust Prefixes: Ensure that all objects and parents have the correct
GameObject Prefixset in Step 10. - Recreate Virtual Grid: Go back to Step 11 and recreate the virtual grid, ensuring all configurations are accurate.
- Manual Intervention: If necessary, manually create parent objects with the
ObjectParentscript and correct prefixes to facilitate scene generation.
- Adjust Prefixes: Ensure that all objects and parents have the correct
- Possible Reasons:
- Final Verification:
- Confirm that the generated scenes contain the appropriate objects and terrain segments as per your streaming layers.
Notes:
- Generation Time: Scene generation is resource-intensive. Ensure your system is adequately powered and monitor the process to avoid crashes.
- Empty Folders Issue: If you encounter empty folders after generation:
- Re-examine your streaming layer configurations.
- Ensure all required objects are correctly tagged or nested.
Tips:
- Backup: Before generating scenes, consider backing up your project to prevent data loss in case of unexpected issues.
- Incremental Testing: After generating a few scenes, test loading them to ensure they’re functioning correctly before proceeding with the entire grid.