Can I make a screen saver with Unity?
For Android screen saver (known as Daydream but not VR platform), I made these files:
- Assets/
- Plugins/
- Android/
- AndroidManifest.xml
- UnityPlayerDreamService.kt
- UnityPlayerDream.kt
- Android/
- Plugins/
This Daydream can close itself by C# managed code. For example, see Quit() method on Assets/QuitTimerScript.cs.
I made a screen saver launcher for Windows on ExternalPrograms/Windows/UnityScreenSaverLauncher.
How to build:
- Prepare your Visual Studio with ".NET desktop development" feature.
- Open this Unity project on Unity and build it in Build/Windows.
- Open ExternalPrograms/Windows/UnityScreenSaverLauncher/UnityScreenSaverLauncher.sln.
- Publish the solution. Launcher.exe will be put in Build/Windows.
- Rename Launcher.exe "(your Unity project name).scr"
- Complete!
When you use the solution with your Unity project, make sure:
- Put on a folder 3-level below the Unity project root. (for example: /ExternalPrograms/Windows/UnityScreenSaverLauncher/UnityScreenSaverLauncher.sln)
- There is a project in the solution. Change the project's name as same as the Unity Project's product name.
MIT