Skip to content

Networked Object

ludos1978 edited this page Jun 28, 2018 · 4 revisions

NetXr requires all interactive objects to have the "Network Interactable Object" script attached.

This script allows to setup callbacks for all possible events such as Attach, Use, Touch, the numbered Events, Physical Hovering, Dragging and override of Drag functions.

There should be no use for "Default Inspector (Debugging)" except for debugging.

Default Grabbable Object

To create a grabbable Object you will need to setup the following callbacks.

  • On Attach Start Event -> define itself as object -> NetworkInteractableObject.DoAttachToController
  • On Attach Stop Event -> define itself as object -> NetworkInteractableObject.DoDetachFromController
  • Maybe set "Customize Drag" -> "Grab only first InteractableObject"

Your own Object

You should inherit your script from the "Network Interactable Object" if you want a networked object. Add your own functions and have them called by callback. You can find examples in the NetXr-Examples folder.

Clone this wiki locally