Sync GameObject?

Options
vimrzhang
vimrzhang
edited August 2022 in Fusion

press a button, grab an gameObject, and use it as a sub-object of the player. How to synchronize objects of this type GameObject?

Best Answer

Answers

  • Luke_Sta
    Options

    You can take a look at the Fusion Dragonhunters VR sample. It showcases a pickup mechanic for attaching grabbable objects to a players hand. The sample is specifically for VR but the same kind of logic should apply to non VR projects.

  • vimrzhang
    vimrzhang
    Answer ✓
    Options

    I find "NetworkBehavior" can sync at the  Fusion Dragonhunters VR sample.

    [Networked] public Highlightable CurrentlyGrabbedHighlight { get; private set; }