Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Azound · Sep 29, 2011 at 05:45 PM · editorwindoweditorguisplinegl

How do I draw curves in a custom editor window?

I'd like to create a custom editor window that needs to draw curves (Bezier splines most likely), but UnityEditor doesn't provide any curve/spline drawing utilities. I've noticed a number of editors in the asset store (like Playmaker) that draw curved lines. Are they just using the GL API directly, or are they using another windowing/drawing API other than Unity (like winforms)?

These assets work even on non-Pro licenses of Unity - assuming that they're using the GL API, does that mean that we can use the GL interface on a non-Pro license of Unity (in editor code only)? Or can an editor written with the Pro version work in any version even though the customer doesn't have access to write their own GL editors?

Thanks in advance!

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 Bunny83 · Sep 29, 2011 at 11:44 PM

Well, i've worked with Unity since version 2.6 and i had no problems using the GL class in the indy-version. I created some quadratic and cubic bézier-drawing functions and they work well even with the newest version. However the docs specifies that it's a pro-only feature. Maybe it's a wrong statement or they kinda forgot to make it pro only and you can't rely on it in future versions.

Personally i don't think they will remove it from the free version because it's not very performant and actually some kind of basic feature.

If you plan something really big you could try to contact the support to get a clear "yes" or "no" for the future.

I'm still working on a node-based-editor-framework and use a lot GL stuff (but actually only solid colors ;)).

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 Azound · Sep 30, 2011 at 01:28 AM 0
Share

Fantastic - I tried it out myself, and although GL is a Pro-only feature, it works fine in the indie version (at least in the Editor). I imagine it doesn't work in runtime code.

Thanks!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Gui Window Will not display 2 Answers

Show public GameObject prefab in EditorWindow 1 Answer

[SOLVED] Unity 2018.2.0f min game view scale is x1.25! 3 Answers

how to display custom [system.serializable ] class in editor window 3 Answers

Initialising List array for use in a custom Editor 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