Skip to content

Preload Assets: VContainer Settings Should Apply to All Players in Unity 6+ #812

@NeriDavid1

Description

@NeriDavid1

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

  1. In Unity 6 or later, use Create > VContainer > VContainer Settings to generate a settings asset.
  2. Check the preload assets for all players.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions