Class ActionInOut<Input, Output>
Abstract class for In-Out Actions.
Inherit from this class to create an Action that returns some data from a given input.
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.UI
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public abstract class ActionInOut<Input, Output> : ActionBase
Type Parameters
Name | Description |
---|---|
Input | Specifies what kind of data enters your actions. |
Output | Specifies what kind of data the actions outputs. |
Remarks
Can be used to create a Toolbox Actions and/or RuleEngine Actions. Check ActionBase for more implementation details. If creating a Toolbox Action, the Input and Output must be of type IList<GameObject>.
Properties
Name | Description |
---|---|
inputType | Input type. Specifies what kind of data enters your actions. |
outputType | Output type. Specifies what kind of data the actions outputs. |
Methods
Name | Description |
---|---|
preProcess(Input, bool) | Used to validate/modify the input before the action is actually executed |
run(Input) | Abstract execution method. When creating a new action, this method implementation will hold all the processing code. |
runAsync() | Abstract execution method. When creating a new action, this method implementation will hold all the processing code. (should be run async) |