Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[VRTK] [Multiplayer] Can't interact with object on client

Discussion in 'AR/VR (XR) Discussion' started by unity_Cn_9LZVSq85wBA, Jun 19, 2019.

  1. unity_Cn_9LZVSq85wBA


    Apr 30, 2019
    Hello everyone,
    I started develop a multiplayer VR game. For network I use Mirror package and for VR I use VRTK.

    What I want to do is : Run the test scene on 2 machines and 2 players can grab the cube and throw.

    In this test scene I have a cube with network identity and network transform.
    I also have a player prefab which is based on VRTK.

    My situation : Only the host player can grab the cube. When the host player throw the cube the client see the cube's position change, but the client player can't grab the cube.

    My question : What I need to do in order to allow the client player grab the cube ?
    In the main scene I want to have many objects like this cube, that is, objects that exist already in scene and aren't spawned dynamically by code.

    Thank you very much.
    Last edited: Jun 19, 2019
    GOKULAVELAN likes this.
  2. Air2


    Jul 26, 2022
    For network I use Mirror package and for VR I use VRTK. host player can‘t grab cube , the client can’t grab cube .can you show your code?Thank you!