public void Setup(INodeParameters _nodeParameters) { _nodeParameters.AddInput(this, true, "Value"); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(false, "Value x Delta time"); deltaTimeVar = new Variable().Set(0); }
public void Setup(INodeParameters _node) { _node.AddInput(this, true, "X"); VarX = new Variable(0); sender = _node.GetSender(); _node.AddOutput(false, "Square Root of X"); }
public void Setup(INodeParameters _node) { sender = _node.GetSender(); _node.AddInput(this, false, "Object", "Constellation JSON"); _node.AddInput(this, false, "Const JSON"); GameObject = new Variable().Set(null as object); }
public void Setup(INodeParameters _nodeParameters, ILogger _logger) { _nodeParameters.AddInput(this, false, "Object", "Transform object"); _nodeParameters.AddInput(this, false, "Vec3 position"); _nodeParameters.AddInput(this, false, "Vec3 rotation"); _nodeParameters.AddInput(this, false, "Vec3 scale"); _nodeParameters.AddInput(this, true, "Send"); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(false, "Vec3 position"); _nodeParameters.AddOutput(false, "Vec3 rotation"); _nodeParameters.AddOutput(false, "Vec3 scale"); _nodeParameters.AddOutput(false, "Object", "Transform"); GameObject = new Variable().Set(null as object); Variable[] newPositionVar = new Variable[3]; newPositionVar[0] = new Variable().Set(0); newPositionVar[1] = new Variable().Set(0); newPositionVar[2] = new Variable().Set(0); Position = new Variable().Set(newPositionVar); Variable[] newRotationVar = new Variable[3]; newRotationVar[0] = new Variable().Set(0); newRotationVar[1] = new Variable().Set(0); newRotationVar[2] = new Variable().Set(0); Rotation = new Variable().Set(newRotationVar); Variable[] newScaleVar = new Variable[3]; newScaleVar[0] = new Variable().Set(0); newScaleVar[1] = new Variable().Set(0); newScaleVar[2] = new Variable().Set(0); Scale = new Variable().Set(newScaleVar); }
public void Setup(INodeParameters _node, ILogger _logger) { sender = _node.GetSender(); _node.AddOutput(true, "Ray on update"); value = new Variable(); value.Set("Ray"); }
public void Setup(INodeParameters _nodeParameters) { _nodeParameters.AddInput(this, false, "Object", "GameObject position"); _nodeParameters.AddInput(this, true, "Position to look at"); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(false, "Target rotation"); }
public void Setup(INodeParameters _node) { _node.AddInput(this, true, "File path"); _node.AddOutput(false, "The text"); _node.AddOutput(false, "Failure"); sender = _node.GetSender(); }
public void Setup(INodeParameters _nodeParameters) { _nodeParameters.AddInput(this, false, "Object", "The game object reference"); _nodeParameters.AddInput(this, true, "Vec3", "Vec3 to convert"); _nodeParameters.AddOutput(false, "Vec3", "The converted Vec3"); sender = _nodeParameters.GetSender(); }
public void Setup(INodeParameters _node) { sender = _node.GetSender(); _node.AddOutput(false, "1 if updated 0 if not"); _node.AddInput(this, false, "Any", "Check if node was updated since last frame"); _node.AddInput(this, true, "Any", "The updateCheck"); }
public void Setup(INodeParameters _node) { _node.AddInput(this, true, "Object", "GameObject"); sender = _node.GetSender(); _node.AddOutput(true, "Object", "Instantiated GameObject"); UnityObject = new Variable().Set(null as object); }
public void Setup(INodeParameters _node, ILogger _logger) { _node.AddInput(this, true, "X"); VarX = new Variable(0); sender = _node.GetSender(); _node.AddOutput(false, "Tan of X"); }
public void Setup(INodeParameters _node) { _node.AddInput(this, true, "X"); VarX = new Ray(0); sender = _node.GetSender(); _node.AddOutput(false, "Tan of X"); }
public void Setup(INodeParameters _node) { sender = _node.GetSender(); _node.AddOutput(true, "Ray", "Ray on lateUpdate"); value = new Ray(); value.Set("Ray"); }
public void Setup(INodeParameters _node, ILogger _logger) { var ifValue = new Variable(); ifValue.Set("$1==$2"); var thenValue = new Variable(); thenValue.Set("$1"); var elseValue = new Variable(); elseValue.Set("$2"); _node.AddInput(this, false, "$1"); _node.AddInput(this, true, "$2"); _node.AddInput(this, true, "$3"); sender = _node.GetSender(); _node.AddOutput(false, "then"); _node.AddOutput(false, "else"); _node.AddOutput(false, "any"); conditionAttribute = _node.AddAttribute(ifValue, Attribute.AttributeType.Conditionals, "ex: $1>$2"); thenAttribute = _node.AddAttribute(thenValue, Attribute.AttributeType.Then, "ex: $2"); elseAttribute = _node.AddAttribute(elseValue, Attribute.AttributeType.Else, "ex: $3"); var1 = new Variable(); var2 = new Variable(); var3 = new Variable(); }
public void Setup(INodeParameters _node) { _node.AddInput(this, true, "Var"); Var1 = new Variable(0); sender = _node.GetSender(); _node.AddOutput(false, "Next power of two"); }
public void Setup(INodeParameters _node) { sender = _node.GetSender(); _node.AddOutput(true, "Object", "Unity object"); UnityObject = new Ray().Set(null as object); nameValue = new Ray().Set("Default"); _node.AddParameter(nameValue, Parameter.ParameterType.Word, "Name in inspector"); }
public void Setup(INodeParameters _node, ILogger _logger) { _node.AddInput(this, false, "x"); _node.AddInput(this, true, "y"); sender = _node.GetSender(); _node.AddOutput(false, "Angle between the x-axis and a 2D vector starting at zero and terminating at (x,y)"); Variable = new Variable().Set(0); }
public void Setup(INodeParameters _node) { var newValue = new Variable().Set(0); sender = _node.GetSender(); _node.AddOutput(true, "The value"); value = _node.AddAttribute(newValue, Attribute.AttributeType.Value, "Number to set"); }
public void Setup(INodeParameters _nodeParameters) { _nodeParameters.AddInput(this, false, "Object", "The gameobject to activate"); _nodeParameters.AddInput(this, false, "1 = activate; 0 = disable"); _nodeParameters.AddInput(this, true, "send currend enabled state"); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(false, "get the current state"); }
public void Setup(INodeParameters _node, ILogger _logger) { sender = _node.GetSender(); _node.AddOutput(true, "Object", "Unity object"); UnityObject = new Variable().Set(null as object); nameValue = new Variable().Set("Default"); _node.AddAttribute(nameValue, Attribute.AttributeType.Word, "Name in inspector"); }
public void Setup(INodeParameters _nodeParameters) { var newValue = new Variable(); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(true, "1 on key down else 0"); key = _nodeParameters.AddAttribute(newValue, Attribute.AttributeType.Word, "Key code"); keyState = new Variable().Set(0); }
public void Setup(INodeParameters _node) { var newValue = new Ray().Set(0); sender = _node.GetSender(); _node.AddOutput(true, "The value"); value = _node.AddParameter(newValue, Parameter.ParameterType.Value, "Number to set"); }
public void Setup(INodeParameters _node, ILogger _logger) { var newValue = new Variable().Set("your word"); sender = _node.GetSender(); _node.AddOutput(true, "The Word"); value = _node.AddAttribute(newValue, Attribute.AttributeType.Word, "Word to set"); }
public void Setup(INodeParameters nodeParameters, ILogger logger) { nodeParameters.AddInput(this, false, "1 = on, 0 = off"); nodeParameters.AddInput(this, true, "Value to send"); sender = nodeParameters.GetSender(); nodeParameters.AddOutput(false, "Output if on"); switchValue = new Variable(0); }
public void Setup(INodeParameters _nodeParameters) { Sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(true, "Mouse position X"); _nodeParameters.AddOutput(true, "Mosue position Y"); XPosition = new Ray(UnityEngine.Input.mousePosition.x); YPosition = new Ray(UnityEngine.Input.mousePosition.y); }
public void Setup(INodeParameters _node, ILogger _logger) { _node.AddInput(this, false, "a"); _node.AddInput(this, true, "b"); sender = _node.GetSender(); _node.AddOutput(false, "true if +- the same"); VarToCompare = new Variable().Set(0); }
public void Setup(INodeParameters _nodeParameters) { var newValue = new Variable(); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(true, "Output 1 when key pressed"); key = _nodeParameters.AddAttribute(newValue, Attribute.AttributeType.Word, "The key"); }
public void Setup(INodeParameters _node) { _node.AddInput(this, false, "Angle a"); _node.AddInput(this, true, "Angle b"); sender = _node.GetSender(); _node.AddOutput(false, "Sortest difference between a and b"); variable = new Variable().Set(0); }
public void Setup(INodeParameters _node) { node = _node; var wordValue = new Variable(); sender = _node.GetSender(); //attribute = _node.AddAttribute(wordValue.Set("Constellation Name"), Attribute.AttributeType.ReadOnlyValue, "The default word");// setting an attribute (Used only for the editor) }
public void Setup(INodeParameters _nodeParameters, ILogger _logger) { var newValue = new Variable().Set("Name"); sender = _nodeParameters.GetSender(); _nodeParameters.AddOutput(true, "Object", "Gameobject name"); GameObjectName = _nodeParameters.AddAttribute(newValue, Attribute.AttributeType.Word, "Name"); }