Skip to content

SetInScenePlaced marks runtime instantiated NetworkObjects as InScenePlaced #4118

Description

@ffejlersen

Description

A clear and concise description of what the bug is.

Reproduce Steps

  1. Go to 'NGO_Setup'
  2. Start play mode
  3. Click on 'Start Host'
  4. Click on the keyboard button "L" to load an additive scene with a spawner object
    • Console prints instance InScenePlaced state as False
  5. Click on the keyboard button "D" to print current state of spawned object
  • Console prints instance InScenePlaced state as True

Expected Outcome

Network objects instantiated during runtime should not be marked as InScenePlaced = true.
Before the introduction of SetInScenePlaced it was allowed to instantiate network objects from Awake.

Environment

  • OS: Windows 11
  • Unity Version: 6000.3.6f1
  • Netcode Version: 2.13.1
  • Netcode Topology: Client-Server

Unity Project

UnityProject.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:awaiting-responseAwaiting response from author. This label should be added manually.stat:awaiting-triageStatus - Awaiting triage from the Netcode team.type:bugBug Report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions