Accept privacy policy popup?

Hey,
I want to create a popup for my game where you have to accept the privacy policy. The popup should be opened at the start of the game and if you press Accept it should never be displayed again.
How can I best do that?

I would create a loader scene with minimum info in it - the privacy policy, splash images, and title menus, for example.

You’ll need a script that runs when this scene starts and checks to see if the privacy policy has been accepted or not. You can do this a few ways. The most simple would be to set a flag using the PlayerPrefs.
If this flag has NOT been set, you hold your game before the Main Menu, and bring up the UI for your Privacy Policy. I would do a full screen, semi-transparent, dark gray box that blocks mouse clicks for anything behind your Policy - a simple Modal Menu. Then, on top of that, I would put a smaller, opaque UI box with a block for the policy text (probably a scroll view, if the policy is lengthy), and two buttons: One to accept the terms, and one to close the game without accepting.
When the Accept button is clicked, it will need to set the flag in PlayerPrefs to true. Then, on future plays, your script will see that the flag is true, and move on to the main menu without bringing up the Privacy Policy.

Right now, as I understand it, you might want to use the Unity UI system, rather than the UIElements system to display your Privacy Policy, as the UIElements system is being used mostly within the UnityEditor. But this will change, too, in some of the upcoming versions of Unity.

Thank you so much! :slight_smile: