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.Actions
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 the 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 the actions. |
OutputType | Output type. Specifies what kind of data the actions outputs. |
Methods
Name | Description |
---|---|
PostProcess(ref Output) | Use to modify the output after the 'Run' method is executed. Always executed on the main thread. |
PreProcess(ref Input) | Use to validate/modify the input before the 'Run' method is executed. Always executed on the main thread. |
Run(Input) | Abstract execution method. When creating a new Action, this method implementation will hold all the processing code. Executed on a background thread if IsAsync is true. |