Reply To: Easy Save Usage

FlowCanvas Forums Support Easy Save Usage Reply To: Easy Save Usage

#3042
asdfasdf
Participant

I have a node returning with what I want using a ParameterVariableNode. I am trying to figure out the other node types, attributes, and how they interact. I think it could be better. I have to specify the type of variable I am going to select from every type listed and I would like it to be one node in the search that, once on a graph, goes off of the dropdown selection of the variable chosen. Again, I am planning to use this as a unique, reproducible key for the “key” used by the easysave nodes.

[Name(“Get Name Of”)]
[Category(“Test/Variable”)]
[Description(“Returns the name of the selected blackboard variable.”)]
public class GetNameOf : ParameterVariableNode
{

[BlackboardOnly]
public BBParameter value;
public override BBParameter parameter => value;

public override string name
{
get { return string.Format(“{0} [{1}]”, base.name, value.ToString()); }
}
protected override void RegisterPorts()
{
AddValueOutput(“Name”, () => { return value.name; });
}
}

[Name(“Get ID Of”)]
[Category(“Test/Variable”)]
[Description(“Returns the ID of the selected blackboard variable.”)]
public class GetIDOf : ParameterVariableNode
{

[BlackboardOnly]
public BBParameter value;
public override BBParameter parameter => value;

public override string name
{
get { return string.Format(“{0} [{1}]”, base.name, value.ToString()); }
}
protected override void RegisterPorts()
{
AddValueOutput(“Name”, () => { return value.targetVariableID; });
}
}

 

 

 

Attachments:
  1. VariableExample.png