Comments (8)
Indeed a good idea, I will add an option to customize the connections of an output. Though I think too much colors for one type are impractical. For boolean his may work, but not for a float;) Rather, I'd think of displaying the value on the connection itslef with a box label... I will try doing this in the best way possible;)
from node_editor_framework.
For floats
it may not make much sense, but I think it would still be nice if there was an easy way to override the default implementation for the colors (knobs and connections) without creating a new type and/or without tweaking with your code.
from node_editor_framework.
I think there need a more complex work than colorize lines. First of all, need to separate node building and rendering. Need to make a node skeleton, where are you can add components and stop thinking about what is in your script file, stop visualize elements hand by hand.
Than make some thing like a cascade style sheet, or just skin.
Skin is view, components is model.
After It we can talk about colorize lines and so on. Now very hard to make any change in code, because elements need to be coded manually, including rendering of nodes. Yes, it will cool on start, when you have only principe of rendering of nodes, now you need to start thinking to what it can be, what it can become.
from node_editor_framework.
You're right, it may seem hard at first to customize that. But, it's essentially just DrawNode, DrawKnobs, DrawConnections, etc. inside Node which you need to modify. I already made DrawNode virtual to make overriding possible, maybe doing that on the other ones, too.
I'm not exactly sure if I understood your Skin/Component model of doing things. It may have benefits, but in a final product, the Nodes probably would have a uniform style, either way. You could modify DrawKnobs right now to achive the kind of look as in, fE., NodeCanvas:
You're always free to implement that, so we can get a better idea of what you mean:)
from node_editor_framework.
I talk about that need to build a system that no need to write any script, and best solution for that I see trough a component/entity model. Skin - It's like a... skin >__<. Do you ever use a WinAmp?
I need a time to reply to you in details.
p.s. I'm sorry for my english, I'm not native speaker.
from node_editor_framework.
No problem, I'm no native english either;)
I understand, but I don't think it's really that useful, tbh. I will work on the system to make it more customizeable per type and make it possible to overwrite per node / connection. That might be the best option here. Because, there's really not much to tweak about Layout and skin of Nodes...
Layout includes just the base node (currently header+body, but can be overridden through DrawNode in Node), knob positioning (done with side, position and offset values), etc.
Skin is already covered by knob textures and color, and stuff in NodeEditorGUI.cs
What I think will help:
Per Connection Type:
- Option to display values on the connection (function)
- Color (optionally based on value)
- Draw Method (Straight line, Bezier Curve (default), Cubic line (like in the screen above), etc.)
Per Node:
- Overwrite everything from connection type per connection
- Placement of Knobs
- Body layout overwriting
But always feel free to comment and improve or implement your idea yourself:)
from node_editor_framework.
This will be adressed more closely soon, after the statemachine and action node is done. Atleast on my part, if anyone wants to do it, no problem:)
from node_editor_framework.
Part of connection refactoring in #74
from node_editor_framework.
Related Issues (20)
- The connections will miss when I add a new node. HOT 2
- GUIScaleUtility.cs Init Method NullReferenceException in Unity 2019.1.2f1 HOT 10
- Insane Bug from using RTEditorGUI.EnumPopup() HOT 3
- XML not saving node values HOT 10
- Is Project Active and Package Support? HOT 15
- `PlayModeStateChange' could not be found. Are you missing a using directive or an assembly reference? HOT 3
- [Solved] Context menu not showing up. HOT 2
- Multiple instances of node editors open at once HOT 1
- Toolbar is not showing up HOT 4
- All data is lost when I change the scene, even though I have extra saved as an asset file HOT 4
- How to input multiple outputs to a node? HOT 8
- Apple M1 computers not displaying Bezier curves HOT 3
- Added one node. Then it stoped working. (Remove the node, re-install, sitll not working) Unity 2020.2 LTS
- Implementation of a Logic Graph HOT 7
- XML import issue on UWP
- I deleted the ScriptableObjects in Assets/DefaultEditorResources/Node_Editor_Framework HOT 3
- Making children of node drag along with parent HOT 5
- Functional Nodes that are not tied to the Node Editor Window HOT 6
- Loading canvas based on Selection.activeTransform? HOT 4
- seems undo pro doesnt work with unity 2022.2.8 not sure what version it stopped working at HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node_editor_framework.