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
2
Question by unity.editor · Jul 09, 2012 at 09:48 AM · editornode

How to make a node based editor in Unity

I was wondering what's (generally) involved in constructing a node based tool for Unity such as Strumpy Shader Editor?

Is it entirely built using the Unity Editor classes? or would I need to code something in C++ or access the Unity codebase itself?

Thanks for any insight!

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

Answer by Bunny83 · Jul 09, 2012 at 10:43 AM

You would exclusively use managed code, so yes, it's just build with Unity's GUI system.

The question can't be straight answered, it's too general. It depends on many things how you would design the structure:

  • How do you want to store / serialize the data that is going to be edited?

  • You would probably create an EditorWindow for the editor, so most functionality would be in OnGUI.

  • You should have a great understanding of the GUI system (Event class, keyboard focus, ControlID, ...). You can use a .NET reflector to take a look into the UnityEngine.dll to see how the GUI controls are built.

  • For low-level drawing you could use the GL class

Besides that it's just up to you. To follow OOP rules you might want to create a base class and / or some common interfaces for message processing between "nodes" / elements.

There's nothing you can't build with Unity ;)

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 unity.editor · Jul 10, 2012 at 02:10 AM 0
Share

I'm starting to see that, thank you for the response!

avatar image
4

Answer by unimechanic · Jul 05, 2013 at 04:33 PM

Here is a minimal example for the GUI:

http://forum.unity3d.com/threads/189230-Simple-node-editor

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
avatar image
0

Answer by wrstscrnnm6 · Sep 30, 2012 at 01:28 AM

I came across this project which may be of interest to you and others.

http://forum.unity3d.com/threads/121708-The-Spaghetti-Machine-A-generic-graph-editor-RELEASED-v1.11

I haven't used it so I can't vouch for its quality or usability but it seems like a neat project.

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.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

drag line in node editor 1 Answer

Creating a software for drawing diagrams 4 Answers

How can I detect changes to GraphView, Nodes and Edges? 1 Answer

Blender Node Editor Texturing to Image for Unity? 2 Answers

Node View Can't Connect Other Node In UIElements 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