Age verification form

So…I’m trying to create an age verification form (“Please enter you date of birth”, etc.) since my game features supernatural violence, mutilation, among other offensive material. Does anybody know how I can script this in Unity? Any help, advice or suggestions on this would be much obliged.

In other words…
3602622--292543--upload_2018-8-19_19-15-10.jpeg

Use a UI input field, check for the input, subtract that input from the current date, check if the difference is higher than X, if it is, the user proceeds in the game, else, he doesn’t. You can use NET’s DateTime object but bear in mind it will check for the pc/device’s time.

2 Likes

Asking for a users date of birth counts as collecting personal information. If you are going to go this way, you have to jump through various privacy hoops. Its generally not worth it.

A general notice stating “you must be 18+ to proceed” is normally sufficient. One can just as easily lie about their birth date as they can lie and click yes.

You should also age gate your game on whatever stores you sell it on. Let the store worry about enforcing the age restrictions.

1 Like

Am having some issues with setting my age,
I can not set the month I was born in ,can I get some help from anybody