I have a camera controller with a globe anchor that is a child of a georeference. I set both “Detect Transform Changes” and “Adjust Orientation for Globe when Moving” to true
before I enter play mode in the Unity editor, but when I exit play mode, both of these properties get set to false
but I can’t figure out what is causing them to be set to false!?
I thought it was my camera controller script that was doing something to cause these values to be set to false
, but if I disable that script, the issue persists.
The weird thing is, I have another GameObject with a globe anchor on it, and the properties are not set to false when leaving play mode. The only difference that I can see is the camera controller has an OriginShift component while the other GameObject doesn’t.
I also tried to debug this in Visual Studio to see what was causing the values to be set to false
, but there are 1000’s of terrain tiles, each with a globe anchor which also get this value set to false when exiting play mode. Trying to skip the breakpoint for 1000’s tiles was a bit problematic.
Any ideas what is forcing this value to to reset to false when exiting play mode?