사용자의 정확한 위치 데이터를 Google에 전달하는 경우 Google 게시자 정책에 따라 동의 요건 및 알림이 제공됩니다.
이 정책이 적용되는 경우 다음 예에서는 제목, 메시지, 버튼 텍스트를 설정하여 사용자에게 데이터 공유를 알립니다.
[SerializeField, Tooltip("Canvas panel for the location consent overlay.")]privateGameObject_consentOverlay;[SerializeField, Tooltip("Title text for the location consent overlay.")]privateText_titleText;[SerializeField, Tooltip("Message text for the location consent overlay.")]privateText_messageText;[SerializeField, Tooltip("OK button for the location consent overlay.")]privateButton_okButton;[SerializeField, Tooltip("OK button text for the location consent overlay.")]privateText_okButtonText;/// <summary>/// Presents the location consent overlay to the user./// </summary>publicvoidPresentConsentOverlay(){if(_consentOverlay==null){return;}_titleText.text="TITLE";_messageText.text="MESSAGE_TEXT";_okButtonText.text="BUTTON_TEXT";_okButton.onClick.RemoveAllListeners();_okButton.onClick.AddListener(()=>
{_consentOverlay.SetActive(false);// TODO: Add any consent gathering logic.Debug.Log("CONSENT_RECEIVED_LOG_MESSAGE");});_consentOverlay.SetActive(true);}
다음을 바꿉니다.
TITLE: 동의 대화상자의 제목입니다(예: Location data).
MESSAGE_TEXT: 동의 대화상자의 텍스트입니다(예:
We may use your location and share with third parties for the
purposes of personalized advertising, analytics, and attributions. To learn
more, visit our privacy policy at example.com.
BUTTON_TEXT: 동의 대화상자 버튼의 텍스트입니다(예: OK).
CONSENT_RECEIVED_LOG_MESSAGE: 사용자가 동의할 때 기록할 로그 메시지입니다(예: Consent received).
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-11-12(UTC)"],[],[]]