Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Single player bugged with no reason

Discussion in 'VR' started by Christian_Perri, May 23, 2023.

  1. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    Hi guys,i am having a very strange issue with my unity3d VR game,when i change a scene it is like i can no more grab objects (i am using the XR toolkit) and the physics stop working like you can see in this video
    .

    Linked with this post there is also a screen of the code that runs when i change the scene and how you can see the only part of code responsible to change the scene is SceneManagment.LoadScene(),i can not give an explanation of the error.

    In the console is all ok,no red warning,please if somebody has an idea i need help.
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Can it be networking related?
     
  3. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    I don't think cause it is singleplayer mode and the NetworkConnector is turned off.
    When i have this problem and i try to run an online match the online match works fine
     
  4. ShelbyJ

    ShelbyJ

    Unity Technologies

    Joined:
    Apr 24, 2023
    Posts:
    8
    Hey!

    Does the NetworkConnector hook into your grabbing functionality at all? Depending on the multiplayer framework, sometimes "singleplayer" may just be handled as an offline multiplayer game, causing some issues if you disable certain scripts.
     
  5. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    problem solved
     
    ShelbyJ likes this.