Main Camera can't be accessed any more in latest polyspatial 2.1.2

I updated my polyspatial to 2.1.2 and unity editor version to 6000.0.29f1

“cameraToLookAt.transform.rotation” I assign the main camera to cameraToLookAt by simply dragging the main camera object on the script, when I run the project, I keep getting this error “NullReferenceException: Object reference not set to an instance of an object.”

This approach works fine with polyspatial 2.0.0-pre11 and 6000.0.17

Any idea?

Thanks

Can you share the full callstack for the NullReferenceException?

NullReferenceException: Object reference not set to an instance of an object.
at AdjustOrbOpacity.Update () [0x00000] in <00000000000000000000000000000000>:0

and every line of code that’s referencing the main camera got this nullReferenceException