コード例 #1
0
 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);
 }
コード例 #2
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");
 }
コード例 #3
0
 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);
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public void Setup(INodeParameters _node, ILogger _logger)
 {
     sender = _node.GetSender();
     _node.AddOutput(true, "Ray on update");
     value = new Variable();
     value.Set("Ray");
 }
コード例 #6
0
 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();
 }
コード例 #8
0
 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();
 }
コード例 #9
0
 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");
 }
コード例 #10
0
 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);
 }
コード例 #11
0
ファイル: Tan.cs プロジェクト: UnforeseenOcean/Constellation
 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");
 }
コード例 #12
0
 public void Setup(INodeParameters _node)
 {
     _node.AddInput(this, true, "X");
     VarX   = new Ray(0);
     sender = _node.GetSender();
     _node.AddOutput(false, "Tan of X");
 }
コード例 #13
0
ファイル: LateUpdate.cs プロジェクト: rhl2073/Constellation
 public void Setup(INodeParameters _node)
 {
     sender = _node.GetSender();
     _node.AddOutput(true, "Ray", "Ray on lateUpdate");
     value = new Ray();
     value.Set("Ray");
 }
コード例 #14
0
        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();
        }
コード例 #15
0
 public void Setup(INodeParameters _node)
 {
     _node.AddInput(this, true, "Var");
     Var1   = new Variable(0);
     sender = _node.GetSender();
     _node.AddOutput(false, "Next power of two");
 }
コード例 #16
0
 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");
 }
コード例 #17
0
 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);
 }
コード例 #18
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");
        }
コード例 #19
0
 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");
 }
コード例 #20
0
 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");
 }
コード例 #21
0
        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);
        }
コード例 #22
0
ファイル: Value.cs プロジェクト: rhl2073/Constellation
        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");
        }
コード例 #23
0
        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");
        }
コード例 #24
0
 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);
 }
コード例 #26
0
 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);
 }
コード例 #27
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");
        }
コード例 #28
0
 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);
 }
コード例 #29
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)
        }
コード例 #30
0
        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");
        }