-
Notifications
You must be signed in to change notification settings - Fork 0
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.
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"
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.