Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 Fragmental · Jan 06, 2014 at 10:42 AM · guiwindowtabtoolkitdock

Are dockable windows possible in-game.

Is it possible, with the native gui, or any of the gui toolkits/system, to create a gui window that is dockable within the unity game engine(not the editor)? For example, dragging a window to the side of the screen and having it dock there.

This is kind of a second question, but if the first is possible, is it also possible to pull out a window from a tab(like pulling a tab out of chrome or firefox to make a new window)?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · Jan 06, 2014 at 11:11 AM

The answer is: Yes, it is possible with the native gui, or any of the gui toolkits/systems.

However you have to code it yourself. Don't expect someone to post a ready-to-use solution here. Such a system requires a lot fiddling and has to be adapded to your exact needs.

Also "docking / dockable" is a wide term and there are tons of different behaviors out there.

Comment
Add comment · Show 3 · 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 Fragmental · Jan 07, 2014 at 12:02 AM 0
Share

Ok. Thanks for the answer. I will still hold out hope that some kind and generous soul posts some example code(or a link to some).

avatar image fherbst · Jan 07, 2014 at 12:07 AM 0
Share

Just take a look at NGUI or any other GUI solution, they come with a lot of examples, and code, where necessary.

avatar image Fragmental · Jul 01, 2014 at 11:07 AM 0
Share

I think that ultimately I would want the ui to work similarly to the way unity editor works, customizable, with different layouts, windows that can be resized, windows that can be added or closed or maximized, and windows that can be docked with tabs, or dragged out to float freely. It would be nice if unity facilitated this more, but if it has to be remade, then that's just the way it is.

avatar image
1

Answer by Geo.Ego · Feb 11, 2014 at 03:25 PM

If you want to get started with a window you can drag around, I made a blog post outlining how to do that here.

Basically, you add a Collider to the element you want the user to click to drag, add the UIDragObject script on to that object, and drag the object you want to move around to the UIDragObject's "Target" parameter.

More complex behaviors and animations can be triggered with Colliders and Triggers, but as Bunny83 said, no-one's going to write them for you.

Comment
Add comment · Show 1 · 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 Fragmental · Jul 01, 2014 at 11:08 AM 0
Share

Thanks for that.

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.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Set the parent of an external application window to a Unity UI element (specifically, Panel) 1 Answer

how will i get every time values in table window? 0 Answers

Add EditorUI elements when a button is pressed 0 Answers

Center GUI wondow or box in windowed mode 3 Answers

how to get Gui in OnGUI function to resize with the window? 1 Answer


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