Skip to content

ChebanovDD/NodEditor

Repository files navigation

NodEditor

A cross-platform library that allows you to create your own node-based tools.

FlexNodEditor

FlexNodEditor

FlexNodEditor is a visual scripting tool for Unity, built on top of NodEditor and used in a StudyBox project.

Table of Contents

About

NodEditor helps you create node-based tools for all types of projects.

Build a visual scripting tool that gives you the ability to develop logic for games or applications with visual, drag-and-drop graphs instead of writing a code. Enable seamless collaboration between team members for faster prototyping and iteration.

How It Works

...

Flow Node

...

DataNode

...

Examples

Entry Node

[StartNode]
public class StartNode : FlowNode
{
    private readonly OutputFlowSocket _outputFlow = new();

    public StartNode() : base(nameof(StartNode))
    {
        AddOutputFlows(_outputFlow);
    }

    protected override void OnExecute()
    {
        _outputFlow.Open();
    }
}

Sum Node

public class SumNode : DataNode
{
    private readonly InputSocket<float> _input1 = new();
    private readonly InputSocket<float> _input2 = new();
    private readonly OutputSocket<float> _output = new();

    public SumNode(string name) : base(name)
    {
        AddInputs(_input1, _input2);
        AddOutput(_output);
    }

    protected override void OnExecute()
    {
        _output.Value = _input1.Value + _input2.Value;
    }
}

How To Use

...

License

Usage is provided under the MIT License.

About

Visual scripting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published