Sample_ControllableObject
In this example, we demonstrate how to control a Cube object within Unity using a custom script that allows interaction via a dedicated mobile app controller.
The script establishes communication between the Unity scene and the app, enabling real-time manipulation of the Cube’s position, rotation, or other properties based on input from the app.
Is Controllable: Determines whether the object to which this script is attached can be moved using a joystick.
Share Object Movement: Determines whether the object is a networked entity shared among all users in the experience. Any user can move the object, and its position is updated in real-time for all connected players.
isControllable: Determines whether the object to which this script is attached can be moved using a joystick.
isNetObject: Determines whether the object is a networked entity shared among all users in the experience. Any user can move the object, and its position is updated in real-time for all connected players.



Last updated