Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Making a kiosk game in Windows

Discussion in 'Scripting' started by PostaTJ, May 7, 2018.

  1. PostaTJ

    PostaTJ

    Joined:
    Apr 10, 2018
    Posts:
    2
    We have a touchscreen game that we're looking to have run only in kiosk mode. It will not normally even have a keyboard, but we don't want a malicious user to be able to plug one in and start using windows shortcuts. Is there a way to disable these shortcuts in Unity? From what I've been seeing, there's no getting around CRTL+ALT+DEL even if we're looking for non-Unity solutions, but what about ALT+TAB, ALT+F4, Windows Key+, etc?

    I know Windows 10 has a kiosk mode, but we were hoping to do it in just Unity, since it sounds like if we update the exe, we might also have to update the Windows 10 kiosk mode, and we're looking to avoid that after the initial setup.

    Thanks!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,599
    Unity cannot stop (for instance) a hibernate key or a sleep key or the windows key. That is by Windows design.
     
  3. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    xVergilx likes this.
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,599
    "It's a trap!" - Just kidding, good to know this exists. :)
     
    MD_Reptile likes this.
  5. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    I must have been tired when I wrote that, I re-read and before I didn't see that you already knew about the kiosk mode, my mistake!

    Perhaps there is more to it though, I looked into it a bit more, and stumbled on this:
    https://docs.microsoft.com/en-us/wi...erapps/create-a-kiosk-app-for-assigned-access

    Perhaps there is a way to have a unity app run as a "lock screen app" which makes it the only available app on the system? Couldn't say for sure as I've never tried.
     
  6. PostaTJ

    PostaTJ

    Joined:
    Apr 10, 2018
    Posts:
    2
    Thanks for the replies. I guess we'll have to go for one of the non-Unity solutions.
     
  7. David_132

    David_132

    Joined:
    Dec 14, 2018
    Posts:
    6
    We are using MobiLock Windows 10 kiosk mode solution to run our app in Single app mode. Users can't exit the mode until Admin permission.