Skip to content

Simplifies some procedural stuff, useful for Technical artists.

License

Notifications You must be signed in to change notification settings

OVPavlov/VisualScriptingTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisualScriptingTool

Simplifies some procedural stuff, useful for Technical artists.

  • procedural animation
  • procedural generation
  • partial customization of your pipelines

Easy to add properties in the inspector of the graph

inspector

Nodes adapt to the type of your input

Types

Easy to add graph in your code in order to give designers more control over some stages of execution

public NodeDataInput InspectorValues; // if you want user to add properties in the inspector (optional)
public NodeData Data;
Node _inputNode;
Node _outputNode;

void Initialize()
{
    if (Data == null) return;

    // specify Nodes that must be input and output of your graph (optional)
    Data.BeginInputInit();
    _inputNode = Data.CteateInput(ValueType.Vector2, "Position");
    _outputNode = Data.CteateOutput(ValueType.Color, "Color");
    Data.EndInputInit();

    // if you want user to add properties in the inspector (optional)
    if (InspectorValues == null) InspectorValues = new NodeDataInput();
    InspectorValues.InitializeFrom(Data);
}

void Update(Vector2 position, out Color color)
{
    InspectorValues.SetTo(Data); // reload user created properties from the inspector (optional)
    Data.SetVector2(_inputNode, position);
    Data.Process();
    color = Data.GetColor(_outputNode);
}

Examples

procedural mesh.mp4
tiled fire texture.mp4
stardome.mp4

About

Simplifies some procedural stuff, useful for Technical artists.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages