![]() |
PiXYZ Plugin for Unity
Scripting API Documentation
|
Public Member Functions | |
abstract Output | run () |
virtual string [] | getErrors () |
virtual string [] | getWarnings () |
virtual string [] | getInfos () |
virtual void | onBeforeDraw () |
void | initialize () |
object | invoke (object data) |
Public Attributes | |
override Type | inputType => null |
override Type | outputType => typeof(Output) |
bool | isInRuleEngine => !string.IsNullOrEmpty(menuPathRuleEngine) |
bool | isInToolbox => !string.IsNullOrEmpty(menuPathToolbox) && inputType == typeof(IList<GameObject>) && outputType == typeof(IList<GameObject>) |
Properties | |
abstract int | id [get] |
virtual string | menuPathRuleEngine [get] |
virtual string | menuPathToolbox [get] |
virtual string | tooltip [get] |
FieldInstance [] | fieldInstances [get] |
MethodInfo [] | helpersMethods [get] |
string | displayNameRuleEngine [get] |
string | displayNameToolbox [get] |
Inherit from this class to create an Action that returns some data. Can be used to create a RuleEngine Actions (starting points).
Output | Specifies what kind of data the actions outputs. (Eg: IList<GameObject>, IList<Material>, Mesh, string[], ...)</GameObject> |
|
virtualinherited |
Virtual method for Error checks before execution.
Returning a non null string array will display each string as an Error on the RuleEngine and Toolbox.
|
virtualinherited |
Virtual method for Info checks before execution.
Returning a non null string array will display each string as an Information on the RuleEngine and Toolbox.
|
virtualinherited |
Virtual method for Warning checks before execution.
Returning a non null string array will display each string as a Warning on the RuleEngine and Toolbox.
|
inherited |
Initialize parameters from RuleEngineParameters attributes.
|
inherited |
Runs the action through reflection
data |
Takes the generic type Builds an instance an run !
|
virtualinherited |
Virtual method for implementing operations before the Action gets drawn in the RuleEngine or the Toolbox.
|
pure virtual |
Abstract execution method.
When creating a new action, this method implementation will hold all the processing code.
override Type inputType => null |
Input type.
This is always null in the case of a Out-only Action.
|
inherited |
Returns true if this Action is available trough the RuleEngine.
|
inherited |
Returns true if this Action is available trough the Toolbox.
override Type outputType => typeof(Output) |
Output type.
Specifies what kind of data the actions outputs. (Eg: IList<GameObject>, IList<Material>, Mesh, string[], ...)
|
getinherited |
Returns the display name (without menu path).
|
getinherited |
Returns the display name (without menu path)
|
getinherited |
Eventual fields.
Fields can be added for an Action implementation thanks to the attribute PiXYZ.Plugin.Unity.Tools.UserParameter.
|
getinherited |
Eventual helper methods.
Helper methods can be added for an Action implementation thanks to the attribute PiXYZ.Plugin.Unity.Tools.HelperMethod.
|
getinherited |
The id of the Acton implementation.
This id should be unique and is readonly (written in code). The id is the actual reference if the Action is serialized (in a set of RuleEngine Rules for example), hence, this shouldn't be changed if possible when someone uses it.
|
getinherited |
The menu path for the RuleEngine.
Use forward slashes for submenus (ex:"Custom/My Custom Action") If left null or empty, this Action won't be listed in the RuleEngine.
|
getinherited |
The menu path for the Toolbox.
Use forward slashes for submenus (ex:"Custom/My Custom Action") If left null or empty, this Action won't be listed in the Toolbox.
|
getinherited |
Returns the tooltip.