Why does the XRControllerRecorder have internal get/set for the recording?

The XRControllerRecorder Class XRControllerRecorder | XR Interaction Toolkit | 2.0.4 has an internal getter and setter for the .recording variable.

I am in the process of creating a XR Interaction Test suite for our applications using the XRControllerRecorder, but I am unable to access the recording through code. I can only set it in inspector, but that seems unreasonable in a runtime test environment.

Is this a design decision or a slight oversight? Seems reasonable to expose it as public if the XRControllerRecorder also is for public use.

I can always just copy the content of XRControllerRecorder and make my own, but it is better to use the packaged code imho.

Thanks!

This is an oversight. We make use of it in our unit tests, but there’s no reason that property shouldn’t be made public since as you said it’s exposed in the Inspector window.

We will made that property public in a version 2.1.0 of the package. In the meantime, you can use reflection to assign it from your test suite until a version goes out to make it public.

Sweet! Thanks for the reply.