Watson Developer Cloud Unity SDK
1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
|
This object handles input on a widget. More...
Public Member Functions | |
Input (string name, Type dataType, string receiverFunction, bool allowMany=true) | |
Constructs an input object for a Widget. More... | |
override string | ToString () |
<exclude> More... | |
bool | AddOutput (Output output) |
Add output to input. More... | |
bool | RemoveOutput (Output output) |
Remove the output. More... | |
virtual void | Start (Widget owner) |
Start this Input. More... | |
virtual void | ReceiveData (Data data) |
Receives input and forwards that input onto the assigned delegate. Optionally, the user may inherit from Input and override the ReceiveData() function. More... | |
Properties | |
Widget | Owner [get, set] |
A reference to the widget that contains this input, this is initialized when the Widget starts. More... | |
string | OwnerName [get] |
The name of the owning widget. More... | |
string | InputName [get] |
The name of this input. More... | |
string | FullInputName [get] |
The fully qualified name of this input. More... | |
Type | DataType [get] |
The type of data this input accepts. More... | |
bool | AllowMany [get] |
If true, then more than one output may connect to this input. More... | |
Output[] | Connections [get] |
The array of outputs connected to this input. More... | |
string | DataTypeName [get] |
The name of the data type. More... | |
string | ReceiverFunction [get] |
The name of the receiver function. More... | |
OnReceiveData | DataReceiver [get] |
The delegate to the receiver function, this is set when Start() is called on this input. More... | |
OnOutputAdded | OnOutputAdded [get, set] |
Gets or sets the on output added callback More... | |
OnOutputRemoved | OnOutputRemoved [get, set] |
Gets or sets the on output removed callback More... | |
This object handles input on a widget.
|
inline |
Constructs an input object for a Widget.
name | The name of the input. | ||
dataType | The type of data the input takes. | ||
receiverFunction | The name of the function to invoke with the input. The input function must match
|
|
inline |
Add output to input.
output |
|
inlinevirtual |
Receives input and forwards that input onto the assigned delegate. Optionally, the user may inherit from Input and override the ReceiveData() function.
data | The received data object. |
|
inline |
Remove the output.
output |
|
inlinevirtual |
Start this Input.
owner | The owning widget. |
|
inline |
<exclude>
|
get |
If true, then more than one output may connect to this input.
|
get |
The array of outputs connected to this input.
|
get |
The delegate to the receiver function, this is set when Start() is called on this input.
|
get |
The type of data this input accepts.
|
get |
The name of the data type.
|
get |
The fully qualified name of this input.
|
get |
The name of this input.
|
getset |
Gets or sets the on output added callback
The on output added.
|
getset |
Gets or sets the on output removed callback
The on output removed.
|
getset |
A reference to the widget that contains this input, this is initialized when the Widget starts.
|
get |
The name of the owning widget.
|
get |
The name of the receiver function.