Page 1 of 1

I hope the public value allow send to another node

Posted: 2015/11/22 02:39
by hazukiaoi
Demand:I think when the state end i can send the public value to another state node.It will be easy to transfer variable.

Re: I hope the public value allow send to another node

Posted: 2015/11/22 03:20
by caitsithware
Currently, it has enabled the transfer of variables without the need to be aware of the timing if you have a public of InputSlot and OutputSlot.
When it was requested that this matter is to be able to transfer without to be aware of the direction of input and output, it seems hard because the internal structure is complicated.

Re: I hope the public value allow send to another node

Posted: 2016/10/14 03:31
by lanslot
i wrote a script like this:
public class NewStateBehaviourScript : StateBehaviour {
public OutputSlot<GameObject> output;
}

but no graph
5.png
5.png (7.71 KiB) Viewed 10742 times

Re: I hope the public value allow send to another node

Posted: 2016/10/18 02:08
by caitsithware
Please use the inherited class because Generic class can not be serialized by the Unity of the specification.

Code: Select all

public class NewStateBehaviourScript : StateBehaviour {
    public OutputSlotGameObject output;
}

Re: I hope the public value allow send to another node

Posted: 2016/11/09 04:00
by lanslot
caitsithware wrote:Please use the inherited class because Generic class can not be serialized by the Unity of the specification.

Code: Select all

public class NewStateBehaviourScript : StateBehaviour {
    public OutputSlotGameObject output;
}
but there is no OutputSlotString&InputSlotString;
hope you can add both it,it's important;

Re: I hope the public value allow send to another node

Posted: 2016/11/09 04:24
by caitsithware
lanslot wrote: but there is no OutputSlotString&InputSlotString;
hope you can add both it,it's important;
It's definitely an important Slot, so I will add it.
Please wait a moment as I will prepare a patch.

Re: I hope the public value allow send to another node

Posted: 2016/11/09 04:48
by lanslot
caitsithware wrote:
lanslot wrote: but there is no OutputSlotString&InputSlotString;
hope you can add both it,it's important;
It's definitely an important Slot, so I will add it.
Please wait a moment as I will prepare a patch.
and,maybe it's my fault
but i still wanna know how to customize an OutputSlot
su mi ma se nn ;)

Code: Select all

[Serializable]
public class TestSlot : OutputSlot<Test> {
    
}
[Serializable]
public class Test {
    public int value;
}

Re: I hope the public value allow send to another node

Posted: 2016/11/09 05:21
by lanslot
In addtion,ParameterContainer also does not support string;
maybe you can add Component type and Object type;
i think it's important, too;
:D

Re: I hope the public value allow send to another node

Posted: 2016/11/09 05:55
by caitsithware
caitsithware wrote:Please wait a moment as I will prepare a patch.
I prepared a patch so please DL and import it.

http://caitsithware.com/assets/arbor/pa ... itypackage

Update contents
  • Added OutputSlotString and InputSlotString
  • Added FlexibleString
  • Added string to ParameterContainer
  • Implement processing with string parameter in CalcParameter
  • Implement transitions with string parameters in ParameterTransition
  • Implement text setting from string to UISetTextFromParameter.
lanslot wrote: and,maybe it's my fault
but i still wanna know how to customize an OutputSlot
su mi ma se nn ;)

Code: Select all

[Serializable]
public class TestSlot : OutputSlot<Test> {
    
}
[Serializable]


public class Test {
    public int value;
}
As for customizing Slot, please wait a moment as I will summarize it in the manual.
lanslot wrote:maybe you can add Component type and Object type;
i think it's important, too;
:D
Please wait until then as I will also implement it.
If you list the types you want to add, I will implement it as well.

Re: I hope the public value allow send to another node

Posted: 2016/11/10 07:47
by caitsithware
caitsithware wrote:As for customizing Slot, please wait a moment as I will summarize it in the manual.
"Customize Data Slot" was prepared in the manual.
http://arbor.caitsithware.com/en/manual ... /dataslot/

Also, we prepared a patch that displays slots properly without creating PropertyDrawer, so I think that if you import this unitypackage, it will be fine.
http://arbor.caitsithware.com/en/2016/1 ... e-2-0-5p3/