I figured it out, but it's kind of messy -- is there an easier way?
The parent RectTransform needs to be set to stretchXY and the RectTransform that follows the world object needs to be set to bottom left anchor (to match orientation of screen space).
The CanvasScaler was throwing it off (set to Scale with screen size, matching height -- if different, you might need a different solution), so I had to compensate. I couldn't find a 'current scale' variable in CanvasScaler, so that's what the...
Better way to convert world space to uGUI canvas space?
The parent RectTransform needs to be set to stretchXY and the RectTransform that follows the world object needs to be set to bottom left anchor (to match orientation of screen space).
The CanvasScaler was throwing it off (set to Scale with screen size, matching height -- if different, you might need a different solution), so I had to compensate. I couldn't find a 'current scale' variable in CanvasScaler, so that's what the...
Better way to convert world space to uGUI canvas space?