Send user data in Unity plugin?

In the 0.1 / 0.1.1 plugin, you’re right, this interface is not exposed at the CloudXRClient class level.

It is visible as CloudxrClientlibCsharp.cxrSendInputEvent in the CloudXrClientWrapper namespace, but to use that function, you’ll need the current CloudXR reciever handle, which is a private member of the CloudXRClient class.

I will add a note to expose this method. In the meantime, you can use this workaround:

  • remove the CloudXR package from your Unity project
  • unzip the package tarball
  • edit the CloudXRClient.cs class
  • add a wrapper method that uses the m_reciever private variable to call CloudxrClientlibCsharp.cxrSendInputEvent
  • in Unity Package Manager, “add from disk” and point to the directory where you unzipped/edited the package.
1 Like