/// <summary> /// Update the screen position if it has moved /// </summary> private void SetScreenLocation() { if (PositionChanged()) { _launchedScreenInfo.Position = _launchedScreen.transform.position; _launchedScreenInfo.Rotation = _launchedScreen.transform.rotation; MLResult result = MLScreens.UpdateScreenInfo(_launchedScreenInfo); if (!result.IsOk) { Debug.LogErrorFormat("Error: ScreensExample failed for id {0}. Reason {1}.", _launchedScreenInfo.Id, result); return; } } }