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
3
Question by AquaGeneral · Nov 25, 2010 at 12:28 PM · guieditor-scriptingplugin

Expanding the GUI

I have created numerous editor scripts but there is one thing I cannot understand. How do I go about creating different GUI elements such as the splines in the StrumpyShaderEditor? Or just anything that isn't native to Unity's built-in GUI?

alt text

I know that the developer created a C++ plugin so I have played around with the examples found on the manual, but here is where I am dumbfounded; how do you even start the code for creating something visual that isn't built-in the Unity's GUI? Are there any examples or documentation? Is it the equivalent of creating a standalone GUI from scratch?

If someone could please point me in the right direction I would greatly appreciate it.

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
1
Best Answer

Answer by ckfinite · Nov 30, 2010 at 03:20 AM

You might try this: http://unity3d.com/support/documentation/Components/gui-Extending.html

What I suspect that he did in StrumpyShaderEditor is draw Labels with Texture2D objects containing the the splines. He also used his own GUIStyle for the custom objects.

If you want to create your own GUI system, might want to disassemble the UnityEngine dll to see how the Unity people did their GUI objects. I learned a lot about UnityGUI looking through their code.

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 AquaGeneral · Nov 30, 2010 at 05:53 AM 0
Share

Thanks for the reply :)

It would make sense if he did use Texture2D objects. I was going to ask if the splines were actually 'pictures' earlier, but I ended up leaving that question out for whatever reason.

I have contacted the creator (stramit on the forums) and he directed me to his post here: http://www.strumpy.net/?p=23

He also said he might write a new blog post in the future explaining another topic.

I had no idea it was possible to disassemble a .dll file. That sounds like a great idea! I will look into it later.

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

No one has followed this question yet.

Related Questions

EditorGUI like light explorer window 1 Answer

Override Asset Preview Thumbnail 1 Answer

Advanced Scripting Features 2 Answers

How to display notification on notification bar using GCM in Unity? 1 Answer

Dragging GUI Item, get mouse to stay at part of box where drag began 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