VContainer
VContainer copied to clipboard
Preload Assets: VContainer Settings Should Apply to All Players in Unity 6+
Describe the bug
When creating VContainer settings using Create > VContainer > VContainer Settings, the settings are only added to the preload assets for one player. Starting from Unity 6, multiple players can exist, so the settings should be added to the preload assets for all players, not just one.
Expected behavior
- When a user creates VContainer settings from the menu, the settings asset should be added to the preload assets for all players in Unity 6 and later.
Current behavior
- The settings asset is only added to the preload assets of a single player, resulting in incorrect or incomplete setup for multi-player projects in Unity 6+.
Steps to reproduce
- In Unity 6 or later, use
Create > VContainer > VContainer Settingsto generate a settings asset. - Check the preload assets for all players.
- Observe that the settings asset is only present for one player, not all.
Environment
- Unity version: 6+
- VContainer version: 1.17.0
Additional context This behavior may break projects that rely on multi-player setups in Unity 6+. Please update the asset creation logic to ensure compatibility with Unity's new player system.