• 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
0
Question by SrBilyon · Mar 21, 2011 at 09:16 PM · spritesystemwindowdrawgraphic

Drawing sprites/graphics on screen without the use of a window.

I know this is a long shot, but would it be possible to create a game that doesn't use a system window? Or would I just have to learn how to do this in OpenGL or something?

I wanted to program something like a desktop companion. Would it all be possible to make a window transparent, or make the the boarder invisible?

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

1 Reply

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

Answer by Statement · Mar 21, 2011 at 09:34 PM

OpenGL and other rendering apis render to a window. You can however create borderless windows and set transparency as well. I don't believe this is anything you can use Unity for though :/

Comment
Add comment · Show 4 · 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 SrBilyon · Mar 21, 2011 at 09:38 PM 0
Share

$$anonymous$$e sad :P I might just have to draw it in a small window. Is there a way to get rid of the top bar of the program? (where the game of the application and the close/$$anonymous$$/max buttons are?)

avatar image Statement · Mar 22, 2011 at 12:33 AM 0
Share

You might be able to set such preferences though pinvoke. See http://pinvoke.net/ for more info. Basically you'd need to use native win32 calls. Find the window handle and set preferences for it. http://www.csharphelp.com/2006/08/get-current-window-handle-and-caption-with-windows-api-in-c/

avatar image Statement · Mar 22, 2011 at 12:34 AM 0
Share

I am afraid you'll have to do some google work. I don't have this fresh in $$anonymous$$d but you could look for "win32 api remove window borders" or something.

avatar image Statement · Mar 22, 2011 at 12:36 AM 0
Share

The win32 api are C/C++ dlls you use. Use interop to make wrappers for those functions from the native dlls in C#. It might be possible in JS as well, I am just not that accustomed to it.

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

No one has followed this question yet.

Related Questions

Drawing a sprite box and then displaying text over it 0 Answers

2D Draw text at sprite position with script only 1 Answer

How to handle sprite hierarchy and pivots in ECS 0 Answers

Accessing local system ( File Browser ) 2 Answers

Can't change Image sprite because in rebuild loop? 2 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