• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by user-720 (yahoo) · Jan 02, 2010 at 11:06 AM · windowsapp

Screen Saver Development in Unity?

Hi

First of all, I'm neither a AAA 3d game title, nor i am in t$$anonymous$$s field. I am researc$$anonymous$$ng on different commercial Game engines that could be used for Screensaver development [easily] and I found out DX but i'm interested in Unity personally. So could you please guide in t$$anonymous$$s regard? Because I'm not sure if changing .exe to .scr will be much helpful. I want it to install in a screensaver manner and then become a default screensaver.

Any help will be $$anonymous$$ghly appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Ashkan_gc · Jan 02, 2010 at 01:58 PM

some engines might have special features for creating screen saver setups but you just need an executable that respond correctly to command line options. 1 create an app in unity. 2 in one of the Awake functions check for sent command line options. /s means you should show the screen saver. /c means you should show the settings dialog. /p means you should show the screen saver in the small preview window. it tells you the window handle but unity can not draw on any external window. to check for command line switches use Environment.GetCommandLineArgs() that returns an array of strings. the first one is the name and path of the app. you should create a installer that copies your app to %windir%\system32. you should change the file extension to scr as you said. unity indie can not be used easily because it will show the unity's screen before checking for command line arguments. you can create a small console application that checks for command line arguments and then if needed run the unity application. it's the way that most of screen savers do because the settings dialogs are in windows form in most of the time rather than in game GUI. unity GUI is powerful and you can use that for settings dialog.

using quest3d or DX might be easier in t$$anonymous$$s steps but creating the main application in unity is so easy. DX is generally a good product in t$$anonymous$$s situation but you should pay for that. the engine has some advantages against unity like it's weather system and some shaders like ocian shader. also you can build windows sidebars with DX. you can do that with unity too but it needs more work in your side. you need to create XML files and ... yourself. as i saw the web site of DX they don't have a screen saver exporting option but quest3d has one. as i know gamestudio can draw on external windows but i don't know if any other engine can do that or not.

t$$anonymous$$s code gets all command line arguments and shows them in a GUI

using UnityEngine;

using System; public class commandline : MonoBehaviour { private string[] args; void Start() { args = Environment.GetCommandLineArgs();

}

void OnGUI() { GUILayout.BeginArea(new Rect (30,30,600,6000)); foreach (string argument in args) { GUILayout.Label(argument); } GUILayout.EndArea(); }

}

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cecarlsen · Apr 16, 2013 at 08:32 AM 0
Share

I can't get this to work. The screen saver shows up in the control panels drop down list, but when I select it I get an error window saying "Data folder not found – There should be a '_Data' folder next to the executable". The problem is; there IS a data folder next to the screen saver executable, it is just not found. Any idea what the problem could be? Anyone?

avatar image cecarlsen · Apr 18, 2013 at 06:58 AM 0
Share

Ah! I just need to put the _Data folder in 'C:\Windows\SysWOW64'. http://social.msdn.microsoft.com/For...2-7fbdc3147521

avatar image
-2

Answer by jbishop 1 · Jan 02, 2010 at 12:20 PM

Since the iPhone suspends and locks after a period of inactivity, I'm not sure a screen saver is a viable product (if your iphone is inactive, it is in your pocket!).

That said, you could write an app that acts like a screen saver if you REALLY wanted to. In that case, unless you want 3D, you are much better off with cocos2D. It is free, natively 2D, has a very active and fairly experienced (more so than unity's) community.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jashan · Jan 02, 2010 at 01:18 PM 0
Share

I think the question was not about Unity iPhone ;-)

avatar image Ashkan_gc · Jan 02, 2010 at 04:40 PM 0
Share

he wants a windows screen saver because he said something about DX studio. DX is a windows only engine.

avatar image
0

Answer by jashan · Jan 02, 2010 at 01:23 PM

One t$$anonymous$$ng you might try: exe2scr w$$anonymous$$ch you find on t$$anonymous$$s site. Some people claim that you could simply create a screensaver by changing the extension from .exe to .scr; so that would be the first t$$anonymous$$ng I'd try. You'll probably also need some Installer packager software to ac$$anonymous$$eve the result you're looking for. And you may have to manually go into full-screen in the Unity application (that's very easy to do in code, so I wouldn't worry about that part).

Probably you could use Unity (the free editition) to give it a try with a very simple test-scene.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

submitting to windows app store 1 Answer

Can I create a game in Windows, then copy it to a mac to compile in xcode? 1 Answer

Unity and Windows Store apps problem 1 Answer

Creating multiplayer mode in my mobile game - how to? 1 Answer

Weird Screen when launching game for windows 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges